Created
September 13, 2016 07:53
-
-
Save m4ce/f587b0203ea0bc2d9d1cbf13baa9497b to your computer and use it in GitHub Desktop.
/dev/tcp to the rescue
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
on box1: | |
cat < /dev/tcp/<IP>/<PORT> > file | |
on box2: | |
nc -v -l <PORT> < file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful if on box1 wget, nc, curl etc. are not available.