Skip to content

Instantly share code, notes, and snippets.

@m4ce
Created September 13, 2016 07:53
Show Gist options
  • Save m4ce/f587b0203ea0bc2d9d1cbf13baa9497b to your computer and use it in GitHub Desktop.
Save m4ce/f587b0203ea0bc2d9d1cbf13baa9497b to your computer and use it in GitHub Desktop.
/dev/tcp to the rescue
on box1:
cat < /dev/tcp/<IP>/<PORT> > file
on box2:
nc -v -l <PORT> < file
@m4ce
Copy link
Author

m4ce commented Sep 13, 2016

Useful if on box1 wget, nc, curl etc. are not available.

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