File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ def check
63
63
vprint_status ( 'Version retrieved: ' + version )
64
64
end
65
65
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' )
67
67
68
68
Exploit ::CheckCode ::Safe
69
69
end
@@ -129,8 +129,7 @@ def run
129
129
fail_with ( Failure ::UnexpectedReply , 'Unexpected server response received.' )
130
130
end
131
131
132
- body = res . body . to_s
133
- json_body = JSON . parse ( body )
132
+ json_body = res . get_json_document
134
133
135
134
result = json_body . find { |item | item [ 'DisplayName' ] . start_with? ( marker . to_s ) }
136
135
unless result
You can’t perform that action at this time.
0 commit comments