Created
September 24, 2012 09:39
-
-
Save gak/3775150 to your computer and use it in GitHub Desktop.
poke firewall udp
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
#!/bin/bash | |
PORT=$((RANDOM + 1024)) | |
HOST=$1 | |
poke() { | |
echo "Sleeping" | |
for i in `seq 10`; do | |
echo "netcat $HOST $PORT" | |
echo hihihi\n\n\n | nc -u -p $PORT $HOST $PORT | |
sleep 0.2 | |
done | |
} | |
poke & | |
echo "MOSH!" | |
mosh -p $PORT $HOST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment