Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
server-administration:netcat-over-ssh [2011-04-18 21:20:01] garrett.plasky Approved |
server-administration:netcat-over-ssh [2012-07-20 18:44:21] garrett.plasky Approved |
||
---|---|---|---|
Line 34: | Line 34: | ||
=====Using DD over Netcat===== | =====Using DD over Netcat===== | ||
<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 < | ||
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 39: | Line 41: | ||
<sxh plain>nc -l 19000|bzip2 -d|dd bs=16M of=/ | <sxh plain>nc -l 19000|bzip2 -d|dd bs=16M of=/ | ||
- | This tells netcat to listen on port 19000 for incoming data, and then pipe that data to bzip for decompression, | + | This tells netcat to listen on port 19000 for incoming data, then pipe that data to bzip for decompression, |
Once we have this listening (you won't see any output after you hit Enter), we can move on to starting the data transfer on serverA: | Once we have this listening (you won't see any output after you hit Enter), we can move on to starting the data transfer on serverA: |