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,
|
|
|
|
},
|
|
|
|
'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-16 07:32:11 +00:00
|
|
|
#puts "raw:"
|
|
|
|
#puts Rex::Text.to_c(payload.raw)
|
|
|
|
#puts "encoded:"
|
|
|
|
#puts Rex::Text.to_c(payload.encoded)
|
|
|
|
|
2005-07-15 23:46:05 +00:00
|
|
|
sock.put(payload.encoded)
|
|
|
|
|
|
|
|
handler
|
2005-07-14 07:32:11 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|