[–] red_hare 11y 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 11y ago ↗ Consider changing the headers to text/plain rather than text/html - then it will be perfection. [–] red_hare 11y ago ↗ Good call, fixed :)
[–] CatsoCatsoCatso 11y ago ↗ Consider changing the headers to text/plain rather than text/html - then it will be perfection. [–] red_hare 11y ago ↗ Good call, fixed :)
3 comments
[ 3.9 ms ] story [ 16.6 ms ] threadwhile true; do { echo -e 'HTTP/1.1 200 OK\r\n'; fortune -s | cowsay; } | nc -l 8080; done