diff --git a/modules/exploits/windows/fileformat/homm3_h3m.rb b/modules/exploits/windows/fileformat/homm3_h3m.rb index 75b8facb0e..bad1b3706e 100644 --- a/modules/exploits/windows/fileformat/homm3_h3m.rb +++ b/modules/exploits/windows/fileformat/homm3_h3m.rb @@ -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