Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server-administration:netcat-over-ssh [2012-07-20 18:44:21] garrett.plasky Approved |
server-administration:netcat-over-ssh [2013-01-31 22:40:11] shaun.reitan [Using DD over Netcat] |
||
---|---|---|---|
Line 35: | Line 35: | ||
<note warning> | <note warning> | ||
- | Further on the subject of the warning above: Because netcat does not use any sort of authentication mechanism, it is possible for someone who knows your netcat port (e.g. from a trivial portscan) to inject arbitrary data into the stream thereby corrupting your < | + | Further on the subject of the warning above: Because netcat does not use any sort of authentication mechanism, it is possible for someone who knows your netcat port (e.g. from a trivial portscan) to inject arbitrary data into the stream thereby corrupting your < |
We will assume for the purposes of this tutorial that you have the < | We will assume for the purposes of this tutorial that you have the < | ||
Line 47: | Line 47: | ||
<sxh plain>dd bs=16M if=/ | <sxh plain>dd bs=16M if=/ | ||
- | You again will not see any output after you've hit Enter, but do not fret! You can start another session (or launch the netcat in a screen session and back out), and run a tcpdump on port 19000 on serverB to ensure that traffic is indeed flowing. You'll get a DD output on both ends summarizing the read/write time and bytes transferred when the process is complete. In this case no additional configuration is needed. /dev/sdb is a mountable and readable block device that's ready for use! | + | You again will not see any output after you've hit Enter, but do not fret! You can start another session (or launch the netcat in a screen session and back out), and run a tcpdump on port 19000 on serverB to ensure that traffic is indeed flowing. You can also send a USR1 signal to dd and it will output it's current statistics. You'll get a DD output on both ends summarizing the read/write time and bytes transferred when the process is complete. |
{{tag> | {{tag> |