anton-yarchuk
10/17/2019 - 3:10 PM

Mock a server with netcat

while true; do (echo -e 'HTTP/1.1 200 OK\r\n'; echo -e "\n\tMy website has date function" ; echo -e "\t$(date)\n") | sudo nc -lp 80; done