Check nil

bug/bundler_fix
wchen-r7 2015-11-16 13:54:36 -06:00
parent 44948a2ace
commit 740cacb4c0
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ class Metasploit3 < Msf::Auxiliary
# read the file data from the socket that we opened
response_data = sock.read(1024)
unless response_data
print_error("#{file_path} not found")
return
end
if response_data.length == 0 or ! (res =~ /^150/ )
print_status("File (#{file_path})from #{peer} is empty...")
return