Site Tools


nc
принимающая:
nc -l 1234 | dd of=/tmp/image.img bs=4096
отдающая:
dd if=/dev/sda bs=4096 | nc 1.2.3.4 1234
out: nc localhost 12345 < /any/file
in: nc -l 12345 > any_file.img
nc -l 1234 | bzip2 -d|dd of=/tmp/image.img bs=4096
dd if=/dev/sda bs=4096| bzip2 -9 | nc 1.2.3.4 1234

Discussion

Constantin Conovaloff, 2018/12/19 18:35
передача файла
отправитель: tar -czvf - ./targetFolderOrFile | nc -w 3 192.168.1.55 998
получатель: nc -l -p 998 > file.tar.gz
You could leave a comment if you were logged in.
nc.txt · Last modified: 2011/09/17 00:00 (external edit)

Page Tools