Guest User

Untitled

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