Skip to content

Commit c20b1d8

Browse files
committed
minor fixes
minor fixes
1 parent 75627cc commit c20b1d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/auxiliary/admin/http/whatsup_gold_sqli.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def check
6363
vprint_status('Version retrieved: ' + version)
6464
end
6565

66-
return Exploit::CheckCode::Appears("Version: #{version}") if version <= Rex::Version.new('23.1.3')
66+
return Exploit::CheckCode::Appears("Version: #{version}") if Rex::Version.new(version) <= Rex::Version.new('23.1.3')
6767

6868
Exploit::CheckCode::Safe
6969
end
@@ -129,8 +129,7 @@ def run
129129
fail_with(Failure::UnexpectedReply, 'Unexpected server response received.')
130130
end
131131

132-
body = res.body.to_s
133-
json_body = JSON.parse(body)
132+
json_body = res.get_json_document
134133

135134
result = json_body.find { |item| item['DisplayName'].start_with?(marker.to_s) }
136135
unless result

0 commit comments

Comments
 (0)