From 6fdd2f91ceed21e481f9c278bee3a6778aa77d19 Mon Sep 17 00:00:00 2001 From: aakerblom Date: Fri, 31 Jul 2015 13:54:29 -0700 Subject: [PATCH] rescue only Errno::ENOENT --- modules/exploits/windows/fileformat/homm3_h3m.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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