Linux/netcat: Difference between revisions

From Wiki
No edit summary
No edit summary
Line 11: Line 11:
<pre>
<pre>
netcat -l -p <port> < file
netcat -l -p <port> < file
</pre>
== clone hdd ==
<pre>
netcat -l -p <port> | dd of=/dev/sdb
</pre>
<pre>
dd if=/dev/sdb | nc <ip> <port>
</pre>
</pre>

Revision as of 13:07, 6 October 2012

chat

nc <ip> <port>
netcat -l -p <port>

serve file

netcat -l -p <port> < file


clone hdd

netcat -l -p <port> | dd of=/dev/sdb
dd if=/dev/sdb | nc <ip> <port>