Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
702
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # start tor service
  4.  
  5. service tor start
  6. clear
  7.  
  8. hash=6a4816f0bd49ad4fffee1f38e3ccb766
  9. pid=9794258
  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=44807873
  34. o=""
  35. va=16
  36. cookie=0
  37. url=http%3A//www.radiotimes.com/news/2017-07-23/radio-times-radio-and-podcast-champion-semi-final-3
  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
Advertisement