Skip to content

Instantly share code, notes, and snippets.

@eggman64
Last active November 26, 2018 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggman64/4e6a2840cfd886be1d7521e722b6444f to your computer and use it in GitHub Desktop.
Save eggman64/4e6a2840cfd886be1d7521e722b6444f to your computer and use it in GitHub Desktop.
Netcat grab file

On the receiving end running

nc -l -p 1234 > out.file

will begin listening on port 1234.

On the sending end running

nc -w 3 [destination] 1234 < out.file

will connect to the receiver and begin sending file.

Consider adding pv to check progress of really large files

@eggman64
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment