Advertisement
Guest User

target-server

a guest
Mar 18th, 2018
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. var net = require("net");
  2. console.log("waiting");
  3. var server = net.createServer(function(socket){
  4. socket.on("data", function(d){
  5. console.log("[*] we are taliking to somebody");
  6. console.log("[*] data")
  7. console.log(d);
  8. var buf = new Buffer(10);
  9. d.copy(buf);
  10. console.log("[*] buffer:")
  11. console.log(buf);
  12. console.log(" ");
  13. var data = JSON.parse(d);
  14. console.log(data.method);
  15. console.log(data.user);
  16. console.log(data.pas);
  17. socket.write("Server !O! is online!");
  18. });
  19. });
  20. server.listen(1111);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement