Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active January 13, 2022 17:49
Show Gist options
  • Save amcginlay/ccea672fcf02b60d39c29c7e7684d067 to your computer and use it in GitHub Desktop.
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)
# 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