A Unix Utility You Should Know About: Netcat
catonmat.net
catonmat.net
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.
host destination
ProxyCommand ssh bastion nc -w 1 destination 22
Much cleaner, and easier to manage than tunnels.http://joncraton.org/files/nc111nt.zip
edit: They've fixed the link to actually point to securityfocus
Netcat is usually installed on linux systems these days, but it is seldom compiled with -DGAPING_SECURITY_HOLE like it should be. Those really were the good old days...
Sorry, waited too long to edit.