批量检测url存活

[codesyntax lang=”python”] import requests import re import urllib3 urllib3.disable_warnings() i=0 file = open (r”./1.txt”) for eachLine in file: eachLine=eachLine.rstrip(‘\n\r’) try: i=i+1 print i res = requests.get(eachLine+”uri”,verify=False,timeout=5) hehe=res.text status=ur’SUCCESS’ ip=re.findall(status,hehe) if ip: vul=requests.get(eachLine+”uri”,verify=False,timeout=5) money=vul […]

查看全部