Skip to content

Commit 17149db

Browse files
committed
code cleanup
code cleanup
1 parent c53e5d3 commit 17149db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/auxiliary/admin/http/idsecure_auth_bypass.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ def check
5151
end
5252

5353
return CheckCode::Unknown unless res&.code == 401
54-
54+
5555
data = res.get_json_document
5656
version = data['Version']
57-
return CheckCode::Unknown unless !version.nil?
57+
return CheckCode::Unknown if version.nil?
58+
5859
print_status('Got version: ' + version)
5960
return CheckCode::Safe unless Rex::Version.new(version) <= Rex::Version.new('4.7.43.0')
61+
6062
return CheckCode::Appears
6163
end
6264

0 commit comments

Comments
 (0)