Skip to content

Instantly share code, notes, and snippets.

@jordelver
Created June 18, 2013 15:41
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jordelver/5806460 to your computer and use it in GitHub Desktop.
Save jordelver/5806460 to your computer and use it in GitHub Desktop.
Sharing files using netcat

Sharing files using netcat

The receiver

nc -l 5566 > data-dump.sql

Listen on port 5566 and redirect output to data-dump.sql

The sender

nc <ip-address-of-the-receiver> 5566 < data-dump.sql

Connect to the listening receiver and redirect input from data-dump.sql

Source: Sharing files like a hacker by Jesse Storimer

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