Skip to content

Instantly share code, notes, and snippets.

@eldondev
Created February 24, 2015 20:42
Show Gist options
  • Save eldondev/07de01dd3f92d9e7016e to your computer and use it in GitHub Desktop.
Save eldondev/07de01dd3f92d9e7016e to your computer and use it in GitHub Desktop.
busybox http responder with nc
FROM busybox
COPY response.sh .
CMD nc -lp 8000 -e sh response.sh
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