fix debug target, adjust File reference

git-svn-id: file:///home/svn/framework3/trunk@11469 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2011-01-04 16:55:58 +00:00
parent be1ee243bf
commit 152eb80710
1 changed files with 2 additions and 1 deletions

View File

@ -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'