by pwk · 17y ago · 0 comments
1. In a terminal, startup netcat as a listener:
nc -l -p9999
2. In your browser, configure the connection preferences to use manual proxy settings of host "localhost" and port "9999"3. Hit reload on the browser, and tell it "yup, send the POST data again"
4. Look at the output of netcat
(Don't forget to change your proxy settings back!)
or just use a sniffer like wireshark and let it reconstruct the tcp stream - http://www.wireshark.org/
I do think it's still useful to be aware of and play with tools like netcat, even when there are dedicated tools to accomplish most tasks. It's a bit like hacking in assembly... probably not practical in many cases, but you'll learn how stuff works underneath, and that understanding can still be really useful even when working at a higher level of abstraction.