Linux/netcat: Difference between revisions
< Linux
(Die Seite wurde neu angelegt: „== chat == <pre> nc <ip> <port> </pre> <pre> netcat -l -p 1234 </pre>“) |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* http://ubuntuforums.org/showthread.php?t=828870 | |||
== chat == | == chat == | ||
<pre> | <pre> | ||
Line 5: | Line 8: | ||
<pre> | <pre> | ||
netcat -l -p | netcat -l -p <port> | ||
</pre> | |||
== serve file == | |||
<pre> | |||
netcat -l -p <port> < file | |||
</pre> | </pre> | ||
== proxy == | |||
<pre> | |||
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 | |||
</pre> | |||
== other == | |||
<pre> | |||
tail -f pipe | nc 192.168.111.20 7496 | |||
</pre> | |||
== clone hdd == | |||
<pre> | |||
netcat -l -p <port> | dd of=/dev/sdb | |||
</pre> | |||
<pre> | |||
dd if=/dev/sdb | nc <ip> <port> | |||
</pre> | |||
[[Category:Linux/Network]] | |||
[[Category:Linux]] |
Latest revision as of 13:55, 1 April 2017
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>