So I don't forget it.
A cheesy generic tcp proxy I found cruising the webs built out of
netcat, fifos, and tee:
$ mkfifo backpipe
$ sudo nc -l 80 0<backpipe | tee -a inflow | nc localhost 8080| tee -a outflow 1>backpipe
inflow and outflow to see what the actual contents were of the transaction.


![[Atom Enabled]](http://saladwithsteve.com/valid-atom.png)
1 Comments:
On Red Hat, with netcat verion 1.10-22 you will need a "-p" before the port :
nc -l -p 1234 0<backpipe | tee -a flow.txt | nc 194.89.89.89 4321 | tee -a flow.txt 1>backpipe
And using the same pipe for in and out, you get the request and responses in order in the same file.
See also tcpdump and tshark.
5:39 AM
Post a Comment
Links to this post:
Create a Link
<< Home