• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Phyton [Python] HTTP Proxy Checker 1.0

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎13 Years of Service‎
24%
DESCRIPTION:




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"
 
Status
Not open for further replies.
Back
Top