Last active
December 20, 2015 09:19
-
-
Save saidler/6106844 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## In order to use this script download the following link: | |
| ## http://lucifer.phiral.net/socks.py | |
| ## and put it in the same directory where you save this script. | |
| ## written mainly by some random guy from /b/ | |
| import socks | |
| import socket | |
| socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9050, True) | |
| socket.socket = socks.socksocket | |
| import httplib | |
| import httplib2 | |
| import urllib | |
| import urllib2 | |
| from random import choice | |
| t = 0 | |
| useragent = [ | |
| 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', | |
| 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1', | |
| 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', | |
| 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0', | |
| 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0', | |
| 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', | |
| 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36', | |
| 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', | |
| 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36', | |
| 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36' | |
| ] | |
| referer = [ | |
| 'http://www.google.com/?q="9gag"+"rules"', | |
| 'http://www.google.com/?q="jake"+"weaver"', | |
| 'https://twitter.com/jakeyweaver', | |
| 'http://facebook.com/kiss108', | |
| 'http://www.google.com/?q="Charles"+"z"+"disqualified"', | |
| ] | |
| for i in range(0, 300000): ##Change 300000 to desired amount of requests. | |
| usr = choice(useragent) | |
| ref = choice(referer) | |
| headers = { | |
| 'User-Agent': usr, | |
| 'Referer': ref, | |
| } | |
| request = urllib2.Request('http://www.z100.com/pages/contest/jonas-brothers/?4vz&day=after', "", headers) | |
| urllib2.urlopen(request) | |
| t = t + 1 | |
| print("Time(s) you have voted: " + str(t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment