Files
metasploit-gs/modules/payloads/singles/java/jsp_shell_bind_tcp.rb
T

44 lines
1.1 KiB
Ruby
Raw Normal View History

2009-12-30 22:24:22 +00:00
##
2014-10-17 11:47:33 -05:00
# This module requires Metasploit: http://metasploit.com/download
2013-10-15 14:52:12 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
2009-12-30 22:24:22 +00:00
##
require 'msf/core'
require 'msf/core/payload/jsp'
2009-12-30 22:24:22 +00:00
require 'msf/core/handler/bind_tcp'
require 'msf/base/sessions/command_shell'
2010-02-24 01:19:59 +00:00
require 'msf/base/sessions/command_shell_options'
2009-12-30 22:24:22 +00:00
2016-03-08 14:02:44 +01:00
module MetasploitModule
2009-12-30 22:24:22 +00:00
CachedSize = 1593
2013-08-30 16:28:54 -05:00
include Msf::Payload::Single
2013-12-31 08:27:37 -06:00
include Msf::Payload::JSP
2013-08-30 16:28:54 -05:00
include Msf::Sessions::CommandShellOptions
2009-12-30 22:24:22 +00:00
2013-08-30 16:28:54 -05: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 16:28:54 -05:00
'Arch' => ARCH_JAVA,
'Handler' => Msf::Handler::BindTcp,
'Session' => Msf::Sessions::CommandShell,
'Payload' =>
{
'Offsets' => { },
'Payload' => ''
}
))
end
2010-02-24 01:19:59 +00:00
2009-12-30 22:24:22 +00:00
2013-08-30 16:28:54 -05:00
def generate
2013-12-31 08:27:37 -06:00
return super + jsp_bind_tcp
2013-12-30 13:53:58 -06:00
end
2009-12-30 22:24:22 +00:00
end