Last active
January 13, 2022 17:49
-
-
Save amcginlay/ccea672fcf02b60d39c29c7e7684d067 to your computer and use it in GitHub Desktop.
Demo shows how to send text across a network over TCP (/dev/tcp)
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
# inspired by https://www.youtube.com/watch?v=ZYr8Uc3PJJQ | |
sudo yum install -y nc | |
# 172-31-36-245: | |
sudo nc -l -p 8080 | |
# 172-31-36-246: | |
echo "hello" > /dev/tcp/172.31.36.245/8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment