Land #1972, @wchen-r7's patch for [FixRM:#4704]
commit
6c2d99c2bc
|
@ -35,7 +35,17 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
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(['PASV', 'A*'], true) # Assigns PASV port
|
||||||
send_cmd(['PORT', 'A*'], true) # Rejected but seems to assign NULL to pointer
|
send_cmd(['PORT', 'A*'], true) # Rejected but seems to assign NULL to pointer
|
||||||
|
|
Loading…
Reference in New Issue