def fingerprint_frontpage(name):
        enum_nix = ['_vti_bin/_vti_aut/author.exe','_vti_bin/_vti_adm/admin.exe','_vti_bin/shtml.exe']
        enum_win = ['_vti_bin/_vti_aut/author.dll', '_vti_bin/_vti_aut/dvwssr.dll','_vti_bin/_vti_adm/admin.dll','_vti_bin/shtml.dll']
        build_enum_nix = []
        build_enum_win = []

        for item in enum_nix:
                build_enum_nix.append( name + "/" + item)

        for entry in build_enum_nix:
                try:
                        info=urllib2.urlopen(entry)
                        if info.getcode() == 200:
                                print "[+] front page is tested as : nix version |  (%s) | (%d)" %(entry,info.getcode())

                except urllib2.HTTPError:
                        pass

        for item in enum_win:
                build_enum_win.append( name + "/" + item)

        for entry in build_enum_win:
                try:
                        info=urllib2.urlopen(entry)
                        if info.getcode() == 200:
                                print "[+] front page is tested as : windows version |  (%s) | (%d)" %(entry,info.getcode())

                except urllib2.HTTPError:
                        pass

        frontend_version = name + "/_vti_inf.html"
        try:
                version = urllib2.urlopen(frontend_version)
                printre.findall(r'FPVersion=(.*)',version.read()) %"[+] extracting frontpage version from default file : (%s):"

        except urllib2.HTTPError:
                print "[-] failed to extract the version of frontpage from default file!"
                pass

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

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



# dump sharepoint headers for version fingerprinting
dataset/ETHPy150Open alias1/sparty/sparty_v_0.1.py/fingerprint_frontpage/swapped operands of `%`