cms_gathering.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:operative-framework 作者: graniet 项目源码 文件源码
def main(self):
        start = 0
        website = self.get_options('website')
        if "http//" in website:
            website = website.replace('http//','http://')
        print "* Checking for " + Fore.BLUE + website + Style.RESET_ALL
        if website[-1:] == "/":
            website = website[:-1]
        try:
            requests.get(website)
            print Fore.GREEN + "* url is stable" + Style.RESET_ALL
            start = 1
        except:
            print Fore.RED + "* url schema not correct" + Style.RESET_ALL
        if start == 1:
            for line in self.cms:
                print "* checking " + str(line)
                for path in self.cms[line]:
                    complet_url = website + path
                    req = requests.get(complet_url)
                    if req.status_code in self.status_code:
                        print Fore.GREEN + "* possible using " + str(line) + " with : " + str(complet_url) + Style.RESET_ALL
                        self.export.append(complet_url + " ("+str(line)+")")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号