From 152eb80710b6f5ebfa7ea4a3b00cf0ae1bd6a3ce Mon Sep 17 00:00:00 2001 From: Joshua Drake Date: Tue, 4 Jan 2011 16:55:58 +0000 Subject: [PATCH] fix debug target, adjust File reference git-svn-id: file:///home/svn/framework3/trunk@11469 4d416f70-5f16-0410-b530-b9f4589650da --- .../windows/fileformat/ms11_xxx_createsizeddibsection.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/exploits/windows/fileformat/ms11_xxx_createsizeddibsection.rb b/modules/exploits/windows/fileformat/ms11_xxx_createsizeddibsection.rb index 65d347c0df..974f2da658 100644 --- a/modules/exploits/windows/fileformat/ms11_xxx_createsizeddibsection.rb +++ b/modules/exploits/windows/fileformat/ms11_xxx_createsizeddibsection.rb @@ -99,6 +99,7 @@ class Metasploit3 < Msf::Exploit::Remote # crash on a deref path to heaven. [ 'Crash Target for Debugging', { + 'Offset' => 1337, 'Ret' => 0xdac0ffee } ] @@ -116,7 +117,7 @@ class Metasploit3 < Msf::Exploit::Remote print_status("Creating '#{datastore['FILENAME']}' file ...") - out = File.expand_path(File.join(datastore['OUTPUTPATH'], datastore['FILENAME'])) + out = ::File.expand_path(::File.join(datastore['OUTPUTPATH'], datastore['FILENAME'])) stg = Rex::OLE::Storage.new(out, Rex::OLE::STGM_WRITE) if (not stg) raise RuntimeError, 'Unable to create output file'