/bash/

One line http server

2017-07-05 21:14:02

1. good as capture server to collect all request

#!/usr/bin/env bash
while true; do
  echo -e "HTTP/1.1 200 OK\n\n $(date)" | nc -l -p 8099 -q 1
done

2. be careful with this, this is crazy shit, it will list all files

python3 -m http.server 8099