Code:
#code by darkinjection
import urllib2
from urllib import *
from httplib import *
from random import randint
import socket
cookie_size = 33
lcharset = ['a','b','c','d','e','f','g','h','i','j',
'k','l','m','n','o','p','q','r','s','t','x','w','y','z','1','2','3','4','5','6','7','8','9','0']
host = 'http://www.funserver.cc/getpoint.php?url=xtremetop100'
host = 'http://www.funserver.cc/getpoint.php?url=wow.top100arena'
host = 'http://www.funserver.cc/getpoint.php?url=gamesites200'
host = 'http://www.funserver.cc/getpoint.php?url=topgamesites'
host = 'http://www.funserver.cc/getpoint.php?url=gtop100'
def proxy_use(proxy):
socket.setdefaulttimeout(7)
cookie_hash = ''
print('[+]Trying proxy :' + str(proxy))
try:
HTTPConnection(proxy).connect()
print('[*]Proxy Seems To Work')
except(socket.timeout):
print('[x]Proxy Timed... Try Another')
return
except:
print('[x]Proxy Failed Using Annother...')
return
for l in range(0,int(cookie_size)):
cookie_hash += lcharset[randint(0,33)]
cod = randint(1000,9000)
for i in range(0,3):
vote(proxy,cookie_hash,cod)
def vote(prox,hash,ccode):
post_data = [('char',u_name),('code',ccode),('checkCode',ccode),('submit','vote+now')]
clen = str(len(post_data))
cookies = {'Cookie: PHPSESSID=':hash}
lsize = {'Content-Length:':clen}
uagent = {'User-Agent':'Mozilla/5.0'}
hoost = {'Host':'www.funserver.cc'}
keep = {'Connection':'Keep-Alive'}
p_support = urllib2.ProxyHandler({'http':prox})
try:
proxyfier = urllib2.build_opener(p_support)
except:
print('[x]Error In Build_Opener()')
urllib2.install_opener(proxyfier)
data = urlencode(post_data)
#print data
req = urllib2.Request(host,data,uagent,cookies,lsize)
try:
response = urllib2.urlopen(req).read()
except:
None
#print response
#response = urlopen(req)
#print response.read()
#try:
#req = Request(host,post_data,cookies)
#response = urlopen(req).read()
#except(URLError):
# print('Error')
# exit(1)
print'+-+-+-+-+-+-+-+-+-+-+-+-+-+'
print'|D|a|r|k|I|n|j|e|c|t|i|o|n|'
print'+-+-+-+-+-+-+-+-+-+-+-+-+-+'
print'+-+-+-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+-+-+'
print'|S|t|i|l|l| |B|e|t|t|a| |P|r|o|g|r|a|m|'
print'+-+-+-+-+-+ +-+-+-+-+-+ +-+-+-+-+-+-+-+'
u_name = raw_input('[+]Give The User Name :')
f_path = raw_input('[+]Give The Proxy File Path :')
words = open(f_path,'r').readlines()
for word in words:
word = word.replace('\r','').replace('\n','')
proxy_use(word)