Adding a random string to the "stop censorship" message.

This is intended to bypass log grouping by creating (almost) unique messages, thus maximizing the visibility.
This commit is contained in:
Rodolphe Breard 2015-04-29 14:48:40 +02:00
parent b177158e96
commit 91fb3d7695

3
.zshrc
View file

@ -91,6 +91,7 @@ stop_censorship() {
msg="Halte à la censure administrative du web !" msg="Halte à la censure administrative du web !"
for ip in "90.85.16.50" "90.85.16.51" "90.85.16.52" for ip in "90.85.16.50" "90.85.16.51" "90.85.16.52"
do do
curl -s -o /dev/null --get --data-urlencode "msg=$msg" -H "Host: $msg" --user-agent "$msg" --referer "$msg" "http://$ip/" randmsg="$msg $(base64 </dev/urandom | tr -dc 'a-zA-Z0-9' | head -c10)"
curl -s -o /dev/null --get --data-urlencode "msg=$randmsg" -H "Host: $randmsg" --user-agent "$randmsg" --referer "$randmsg" "http://$ip/"
done done
} }