Skip to content

Instantly share code, notes, and snippets.

@eveevans
Forked from jordelver/gist:5806460
Created December 5, 2013 20:43
Show Gist options
  • Save eveevans/7813523 to your computer and use it in GitHub Desktop.
Save eveevans/7813523 to your computer and use it in GitHub Desktop.

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