Guest User

PollDaddy Script

a guest
Dec 12th, 2013
1,698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.09 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # start tor service
  4.  
  5. service tor start
  6. clear
  7.  
  8. hash=2cf47f9536f7c19f8ef40d7ed0f420e4
  9. pid=7524645
  10. nvotes=0
  11.  
  12. nurl=http://polldaddy.com/n/${hash}/${pid}?
  13.  
  14. while(true); do
  15.    
  16.     # Pass the hash, pid and unix time to obtain nonce file
  17.     time="$(date +%s%N)"
  18.     ms="$((${time}/1000000))"
  19.  
  20.     # Get the file containing the nonce
  21.     curl -s --socks5 localhost:9050 --output nonce.txt ${nurl}${ms}
  22.  
  23.     # extract the nonce
  24.     nonce="$(grep ${pid} ./nonce.txt | cut -c 15-28)"
  25.  
  26.     # Post URL
  27.     purl=http://polls.polldaddy.com/vote-js.php?
  28.  
  29.     # Variables to pass
  30.     p=7524645
  31.     b=0
  32.     # Answer ID
  33.     a=0
  34.     o=""
  35.     va=16
  36.     cookie=0
  37.     url=http%3A//www.tempe12.com/true-music-festival-contest/
  38.  
  39.     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}"
  40.    
  41.     # Clean up
  42.     rm nonce.txt
  43.    
  44.     #Vote counter
  45.     nvotes=$((nvotes + 1))
  46.     printf "Total times voted: ${nvotes}\r"
  47.  
  48.     # Obtain new tor identity, MUST RUN AS SU
  49.     #service tor restart
  50.     pidof tor | xargs kill -HUP
  51.     sleep 1
  52. done
Advertisement
Add Comment
Please, Sign In to add comment