Add a check

unstable
sinn3r 2012-12-21 16:23:31 -06:00
parent 1323081bce
commit ca72132fc0
1 changed files with 9 additions and 0 deletions

View File

@ -49,7 +49,16 @@ class Metasploit3 < Msf::Exploit::Remote
OptString.new('PASSWORD', [ true, 'The password for the specified username', 'password' ]),
OptString.new('FOLDER', [ true, 'The folder to write to for Windows target', 'C:\\Windows\\Temp\\'])
], self.class)
end
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
return Exploit::CheckCode::Safe
end
end
def execute_command(cmd, opts)