Nicer error message when passing a non-existent file to msfpescan
git-svn-id: file:///home/svn/framework3/trunk@4278 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
51be740744
commit
4d2e6eb3e8
|
@ -108,6 +108,9 @@ ARGV.each do |file|
|
||||||
rescue Rex::PeParsey::FileHeaderError
|
rescue Rex::PeParsey::FileHeaderError
|
||||||
next if $!.message == "Couldn't find the PE magic!"
|
next if $!.message == "Couldn't find the PE magic!"
|
||||||
raise $!
|
raise $!
|
||||||
|
rescue Errno::ENOENT
|
||||||
|
$stderr.puts("File does not exist: #{file}")
|
||||||
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if (param['imagebase'])
|
if (param['imagebase'])
|
||||||
|
|
Loading…
Reference in New Issue