[–] red_hare 12y ago ↗ The entire hack runs in one line of bash:while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; fortune -s | cowsay; } | nc -l 8080; done [–] CatsoCatsoCatso 12y ago ↗ Consider changing the headers to text/plain rather than text/html - then it will be perfection. [–] red_hare 12y ago ↗ Good call, fixed :)
[–] CatsoCatsoCatso 12y ago ↗ Consider changing the headers to text/plain rather than text/html - then it will be perfection. [–] red_hare 12y ago ↗ Good call, fixed :)
3 comments
[ 5.6 ms ] story [ 29.1 ms ] threadwhile true; do { echo -e 'HTTP/1.1 200 OK\r\n'; fortune -s | cowsay; } | nc -l 8080; done