rescue only Errno::ENOENT

This commit is contained in:
aakerblom
2015-07-31 13:54:29 -07:00
parent 6671df6672
commit 6fdd2f91ce
@@ -102,7 +102,7 @@ class Metasploit3 < Msf::Exploit::Remote
begin
buf << read_file(datastore['FILENAME'])
print_status('File ' + datastore['FILENAME'] + ' exists, will embed exploit if possible')
rescue
rescue Errno::ENOENT
print_warning('File ' + datastore['FILENAME'] + ' does not exist, creating new file from ' \
'default .h3m data')
buf << make_default_h3m