def audit(target=[]):
        for element in target:
                try:
                        handle = urllib2.urlopen(element)
                        info = handle.info()
                        response_code = handle.getcode()
                        print "[+] (%s) - (%d)" %(element,response_code)

                except urllib2.HTTPError as h:
                        print "[-] (%s) - (%d)" %(element,h.code)

                except httplib.BadStatusLine:
                        print "[-] server responds with bad status !"
                        pass

# dump frontpage service and administrators password files if present
dataset/ETHPy150Open alias1/sparty/sparty_v_0.1.py/audit/original