Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # start tor service
- service tor start
- clear
- hash=6a4816f0bd49ad4fffee1f38e3ccb766
- pid=9794258
- nvotes=0
- nurl=http://polldaddy.com/n/${hash}/${pid}?
- while(true); do
- # Pass the hash, pid and unix time to obtain nonce file
- time="$(date +%s%N)"
- ms="$((${time}/1000000))"
- # Get the file containing the nonce
- curl -s --socks5 localhost:9050 --output nonce.txt ${nurl}${ms}
- # extract the nonce
- nonce="$(grep ${pid} ./nonce.txt | cut -c 15-28)"
- # Post URL
- purl=http://polls.polldaddy.com/vote-js.php?
- # Variables to pass
- p=7524645
- b=0
- # Answer ID
- a=44807873
- o=""
- va=16
- cookie=0
- url=http%3A//www.radiotimes.com/news/2017-07-23/radio-times-radio-and-podcast-champion-semi-final-3
- curl -s -X POST --socks5 localhost:9050 --output /dev/null "http://polls.polldaddy.com/vote-js.php?p=${p}&b=${b}&a=${a}&o=${o}&va=${va}&cookie=${cookie}&n=${nonce}&url=${url}"
- # Clean up
- #rm nonce.txt
- #Vote counter
- nvotes=$((nvotes + 1))
- printf "Total times voted: ${nvotes}\r"
- # Obtain new tor identity, MUST RUN AS SU
- #service tor restart
- pidof tor | xargs kill -HUP
- sleep 1
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement