Linux/netcat: Difference between revisions
< Linux
(→proxy) |
(→proxy) |
||
Line 18: | Line 18: | ||
== proxy == | == proxy == | ||
<pre> | <pre> | ||
mkfifo pipe | |||
nc -l 7496 0<pipe | nc 192.168.111.20 7496 1>pipe | nc -l 7496 0<pipe | nc 192.168.111.20 7496 1>pipe | ||
tcpflow -p -i eth0 -c port 7496 | tcpflow -p -i eth0 -c port 7496 |
Revision as of 13:34, 11 December 2012
chat
nc <ip> <port>
netcat -l -p <port>
serve file
netcat -l -p <port> < file
proxy
mkfifo pipe nc -l 7496 0<pipe | nc 192.168.111.20 7496 1>pipe tcpflow -p -i eth0 -c port 7496 nc -l 7496 < pipe | tee outgoing.log | nc 192.168.111.20 7496 | tee pipe incoming.log
other
tail -f pipe | nc 192.168.111.20 7496
clone hdd
netcat -l -p <port> | dd of=/dev/sdb
dd if=/dev/sdb | nc <ip> <port>