notes/scripts/netcat_tut.sh
2022-12-15 22:49:13 -08:00

6 lines
122 B
Bash
Executable file

#!/usr/bin/env bash
while :
do
echo -e "HTTP/1.1 200 OK\n\n$(echo '<h1>Hi there</h1>')" | nc -l -k -p 8080 -q 1
done