Skip to content

Instantly share code, notes, and snippets.

@rtucker
Created January 3, 2016 03:23
Show Gist options
  • Save rtucker/b996107a822a79f4f093 to your computer and use it in GitHub Desktop.
Save rtucker/b996107a822a79f4f093 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -n Starting firewall.
while true; do
sleep 1
echo -n .
if [ $(($RANDOM%13)) -eq 2 ]; then
break;
fi
done
echo
echo Your system is now secure!
while true; do
sleep $(($RANDOM%53))
echo "Blocked attack from host $(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%256)).$(($RANDOM%255+1)) on port $(($RANDOM%65535+1))!!!"
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment