Land #1972, @wchen-r7's patch for [FixRM:#4704]

unstable
jvazquez-r7 2013-06-17 23:16:29 -05:00
commit 6c2d99c2bc
1 changed files with 11 additions and 1 deletions

View File

@ -35,7 +35,17 @@ class Metasploit3 < Msf::Auxiliary
end
def run
connect_login
begin
c = connect_login
rescue Rex::ConnectionRefused
print_error("Connection refused.")
return
rescue Rex::ConnectionTimeout
print_error("Connection timed out")
return
end
return if not c
send_cmd(['PASV', 'A*'], true) # Assigns PASV port
send_cmd(['PORT', 'A*'], true) # Rejected but seems to assign NULL to pointer