Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Вариант №1
- # SRC:
- pv file|nc DST 666 -q0
- # DST:
- nc -lp 666 >/dev/sda
- # Вариант №2
- # SRC:
- nc -lp 666 -c "pv file"
- # DST:
- nc SRC 666 >/dev/sda
- # На включённой системе:
- # SRC:
- cd / && tar -zcv $(mount |awk '{if($3=="/")next;sub(/^\//,"",$3);printf " --exclude="$3"/*"}') -f - . |netcat dest_ip 666
- # DST:
- nc -lp666|tar zvx
- # Несколько прогресс-баров
- nc 10.24.24.24 666|pv -cNraw|xz|pv -cNxz > test-flycat3-sda-7GB-ubuntu.xz
- # Стащить файл с сервера (https://www.computerhope.com/unix/nc.htm)
- # On ‘server’ side:
- rm -f /tmp/f; mkfifo /tmp/f
- cat /tmp/f | cat file | nc -l 666 > /tmp/f
- rm -f /tmp/f
- # On ‘client’ side:
- nc host.example.com 666
Add Comment
Please, Sign In to add comment