Nicer error message when passing a non-existent file to msfpescan

git-svn-id: file:///home/svn/framework3/trunk@4278 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2007-01-16 17:09:41 +00:00
parent 51be740744
commit 4d2e6eb3e8
1 changed files with 3 additions and 0 deletions

View File

@ -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'])