Guest User

Server-code

a guest
Mar 19th, 2018
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. I want to install a malware/backdoor on a server running this code
  3. */
  4.  
  5. var net = require("net");
  6. console.log("waiting");
  7. var server = net.createServer(function(socket){
  8. socket.on("data", function(d){
  9. console.log("[*] we are taliking to somebody");
  10. console.log("[*] data")
  11. console.log(d);
  12. var buf = new Buffer(10);
  13. d.copy(buf);
  14. console.log("[*] buffer:")
  15. console.log(buf);
  16. console.log(" ");
  17. var data = JSON.parse(d);
  18. console.log(data.method);
  19. console.log(data.user);
  20. console.log(data.pas);
  21. socket.write("Server !O! is online!");
  22. });
  23. });
  24. server.listen(1111);
RAW Paste Data