Created
February 24, 2015 20:42
-
-
Save eldondev/07de01dd3f92d9e7016e to your computer and use it in GitHub Desktop.
busybox http responder with nc
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
FROM busybox | |
COPY response.sh . | |
CMD nc -lp 8000 -e sh response.sh |
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
DATE=`date` | |
sed -e "s/\$DATE/$DATE/" <<'END' | |
HTTP/1.1 200 OK | |
Date: $DATE | |
END | |
ifconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment