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)+")")
评论列表
文章目录