Skip to content

Instantly share code, notes, and snippets.

@gak
Created September 24, 2012 09:39
Show Gist options
  • Save gak/3775150 to your computer and use it in GitHub Desktop.
Save gak/3775150 to your computer and use it in GitHub Desktop.
poke firewall udp
#!/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