Clean up incoming file handling

MS-2855/keylogger-mettle-extension
Jon Hart 2017-11-21 17:54:02 -08:00
parent cfd06ab24a
commit b0d8b0a191
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 2 deletions

View File

@ -98,13 +98,13 @@ class MetasploitModule < Msf::Auxiliary
name = info[:file][:name] name = info[:file][:name]
data = info[:file][:data] data = info[:file][:data]
from = info[:from] from = info[:from]
return if not (name and data) return if not (name && data && from)
# Trim off IPv6 mapped IPv4 if necessary # Trim off IPv6 mapped IPv4 if necessary
from = from[0].dup from = from[0].dup
from.gsub!('::ffff:', '') from.gsub!('::ffff:', '')
print_status("Incoming file from #{from} - #{name} #{data.length} bytes") print_status("Incoming file from #{from} - #{name} (#{data.length} bytes)")
cisco_ios_config_eater(from, 4786, data) cisco_ios_config_eater(from, 4786, data)
end end