Hi,
you have to use a pipe:
mknod tmp_pipe p
nc -l 1231 < tmp_pipe |nc hostname 80 > tmp_pipe
you can also search and replace for strings and copy the intermediate traffic to your file system:
nc -l 9080 < tmp_pipe |nc 10.100.0.219 9080 |tee original.txt |sed 's/HTTP\/1.1 771 Undefined/HTTP\/1.1 200 OK/' |tee modified.txt > tmp_pipe
best Regards,
Romeo
---------------
Romeo Kienzler
r o m e o . k i e n z l e r ( a - t ) g m a i l . c o m
you have to use a pipe:
mknod tmp_pipe p
nc -l 1231 < tmp_pipe |nc hostname 80 > tmp_pipe
you can also search and replace for strings and copy the intermediate traffic to your file system:
nc -l 9080 < tmp_pipe |nc 10.100.0.219 9080 |tee original.txt |sed 's/HTTP\/1.1 771 Undefined/HTTP\/1.1 200 OK/' |tee modified.txt > tmp_pipe
best Regards,
Romeo
---------------
Romeo Kienzler
r o m e o . k i e n z l e r ( a - t ) g m a i l . c o m