13 Years of Service
24%
DESCRIPTION:
A http proxy checker I quickly made for moralexploit one day
A http proxy checker I quickly made for moralexploit one day
Code:
>################################
## HTTP Proxy Checker ##
## Made By CodedNinja ##
## http://www.codedninja.com ##
################################
import urllib2
#list of proxys one proxy per line like so 129.214.133.111:8080
proxylist = open("input.txt", "r")
proxies = proxylist.read().split("n")
proxylist.close()
for proxy in proxies:
url = "http://www.samair.ru/proxy-service/proxyjudge.php?send=" + proxy
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor())
opener.addheaders = [('User-agent', 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)')]
urllib2.install_opener(opener)
open_url = urllib2.urlopen(url)
read_url = open_url.read()
open_url.close()
resluts = read_url.split('|')
try:
if (resluts[1] == "bad"):
print resluts[0] + " BAD!"
elif (resluts[1] == "elite"):
#If a elite proxy will write it to a file
#Note: This file has to be in same directory to add the proxies to it
output = open("elite.txt", "a")
output.write("%sn" % resluts[0])
output.close()
print resluts[0] + " Elite!"
elif (resluts[1] == "transparent"):
#Note: This file has to be in same directory to add the proxies to it
output = open("transparent.txt", "a")
output.write("%sn" % resluts[0])
output.close()
print resluts[0] + " transparent!"
else:
#Note: This file has to be in same directory to add the proxies to it
output = open("works.txt", "a")
output.write("%sn" % resluts[0])
output.close()
print resluts[0] + " Works but might be CoDeeN or maybe Transparent!"
except IndexError:
print "Eh... Little bug here. No biggy"