6 ms·
Reminds me of a simple proxy in bash that I once wrote: mkfifo buffer; while true; do cat buffer | nc -lp 80 | tee -a client.txt | nc domain.com 80 | tee buffe
by no_gravity 11y ago
Reminds me of a simple proxy in bash that I once wrote:
mkfifo buffer; while true; do cat buffer | nc -lp 80 | tee -a client.txt | nc domain.com 80 | tee buffer >> server.txt ; done
Useful to analyze whats going on between the browser and the server. After running the oneliner, you can connect to domain.com via 127.0.0.1 and all data sent from your client will be logged in client.txt and all data received from the server will be logged in server.txt
In Firefox, you have to set network.http.max-connections to one, so Firefox only sends one request at a time. This proxy can only handle one simultaneous connection :)