diff --git a/msfpescan b/msfpescan index 57013ad608..723ba186df 100755 --- a/msfpescan +++ b/msfpescan @@ -108,6 +108,9 @@ ARGV.each do |file| rescue Rex::PeParsey::FileHeaderError next if $!.message == "Couldn't find the PE magic!" raise $! + rescue Errno::ENOENT + $stderr.puts("File does not exist: #{file}") + next end if (param['imagebase'])