Quantcast
Channel: Other – Michał Szałkowski – Blog
Viewing all articles
Browse latest Browse all 125

One line http server

$
0
0

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

Viewing all articles
Browse latest Browse all 125

Trending Articles