Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 458 Bytes

netcat to transfer files.md

File metadata and controls

18 lines (11 loc) · 458 Bytes

transmitter └─$ nc "ip-address" "port-number" -vv -q 0 < "file-name"

└─$ nc -v -w 2 "ip-address" "port-number" < "file-name"

to send folder tar -cf - . | nc -v "ip-address" "port-number" = goto folder & use this command

tar -cf - "folder-name" | nc -v "ip-address" "port-number"

receiver └─$ nc -lvnp "port-number" -vv > "file-name"

└─$ nc -v -w 30 -p "port-number" -l > "file-name"

to receive folder └─$ nc -lvnp 1234 | tar xfv -