Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 22nd, 2013  |  syntax: None  |  size: 2.13 KB  |  views: 2,980  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ## In order to use this script download the following link:
  2. ## http://lucifer.phiral.net/socks.py
  3. ## and put it in the same directory where you save this script.
  4. ## Enjoy, and may Charles Z /b/ with you.
  5.  
  6. import socks
  7. import socket
  8. socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9050, True)
  9. socket.socket = socks.socksocket
  10. import httplib
  11. import httplib2
  12. import urllib
  13. import urllib2
  14. from random import choice
  15. t = 0
  16.  
  17. useragent = [
  18.         'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',
  19.         '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',
  20.         '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',
  21.         'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0',
  22.         'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0',
  23.         'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',
  24.         'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36',
  25.         'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',
  26.         'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36',
  27.         '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'
  28. ]
  29.  
  30. referer = [
  31.         'http://www.google.com/?q="9gag"+"rules"',
  32.         'http://www.google.com/?q="jake"+"weaver"',
  33.         'https://twitter.com/jakeyweaver',
  34.         'http://facebook.com/kiss108',
  35.         'http://www.google.com/?q="Charles"+"z"+"disqualified"',
  36. ]
  37.  
  38.  
  39. for i in range(0, 300000): ##Change 300000 to desired amount of requests.
  40.         usr = choice(useragent)
  41.         ref = choice(referer)
  42.         headers = {
  43.                 'User-Agent': usr,
  44.                 'Referer': ref,
  45.         }      
  46.         request = urllib2.Request('http://www.z100.com/pages/contest/jonas-brothers/?4vz&day=after', "", headers)
  47.         urllib2.urlopen(request)
  48.         t = t + 1      
  49.         print("Time(s) you have voted: " + str(t))