Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pycurl
- import StringIO
- import sys
- import time
- ip = "http://www.moorelandpartners.com/plugins/system/plugin_googlemap2_proxy.php"
- c = pycurl.Curl()
- b = StringIO.StringIO()
- c.setopt(pycurl.WRITEFUNCTION, b.write)
- c.setopt(pycurl.TIMEOUT, 1)
- c.setopt(pycurl.CONNECTTIMEOUT, 1)
- c.setopt(c.URL, ip)
- try:
- c.perform()
- except Exception:
- gg = 88
- print "No ",ip
- else:
- html = b.getvalue()
- if html == "Couldn't resolve host 'http'":
- print bcolors.OKGREEN + "[+] FOUND ", ip + bcolors.ENDC
- print '\a'
- else:
- print "do not works"
Advertisement
Add Comment
Please, Sign In to add comment