rescue only Errno::ENOENT
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user