Guest User

Untitled

a guest
Jan 28th, 2015
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. import pycurl
  2. import StringIO
  3. import sys
  4. import time
  5.  
  6.  
  7. ip = "http://www.moorelandpartners.com/plugins/system/plugin_googlemap2_proxy.php"
  8. c = pycurl.Curl()
  9. b = StringIO.StringIO()
  10. c.setopt(pycurl.WRITEFUNCTION, b.write)
  11. c.setopt(pycurl.TIMEOUT, 1)
  12. c.setopt(pycurl.CONNECTTIMEOUT, 1)
  13. c.setopt(c.URL, ip)
  14. try:
  15.     c.perform()
  16.    
  17. except Exception:
  18.     gg = 88
  19.     print "No ",ip
  20.  
  21. else:
  22.     html = b.getvalue()
  23.     if html == "Couldn't resolve host 'http'":
  24.         print bcolors.OKGREEN + "[+] FOUND ", ip + bcolors.ENDC
  25.         print '\a'
  26.     else:
  27.         print "do not works"
Advertisement
Add Comment
Please, Sign In to add comment