Last active
March 13, 2025 05:50
-
-
Save saikocat/dd38c9c39af39f6814b27ee6ca2bbf38 to your computer and use it in GitHub Desktop.
netcat file transfer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar cvpf - . | pv | nc -l -w 5 -p 9999 | |
tar cvpf - . | pv | netcat -l -w5 -p 9999 | |
netcat -w 5 -q 5 192.168.1.253 9999 | pv | tar xvpf - | |
export GPG_PASSPHRASE="urpass" | |
tar cvpf - . | gpg --symmetric --cipher-algo AES256 --batch --passphrase "$GPG_PASSPHRASE" | pv | nc -l -w 5 -p 9999 | |
netcat -w 5 <ip> <port> | pv | gpg --decrypt --batch --passphrase <pass> | tar xvpf - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment