识别SHIRO框架:
请求包里面发送:RememberMe=
响应头里面出现cookie rememberme
代码检测是否使用SHIRO框架:
import requests
import urllib3
urllib3.disable_warnings()
header={
'cookie':'rememberMe=1'
}
def check_shiro(url):
res=requests.get(url,verify=False,headers=header)
if 'rememberMe=deleteMe' in str(res.headers):
print('shiro:',url)
else:
print('no shiro')
fw=open(r'F:\daima\python\1.txt')
for a in fw.readlines():
url=a.split()[0]
check_shiro(url)
#url = 'https://bit.baidu.com'//单个检测
#check_shiro(url)