当前位置:首页 > 服务器技术 > IIS

使用Python编写IIS PUT 漏洞探测工具

准备
靶机win2003:192.168.1.134,开启IIS,并打开WebDAV服务。

编写代码

import requests
import sys

url = sys.argv[1]
r = requests.options('http://'+url)	//使用options请求方法
result = r.headers['Public']
if result.find('PUT') and result.find('MOVE'):
    print('存在IIS PUT漏洞')
else:
    print('不存在')

开始探测
使用Python编写IIS PUT 漏洞探测工具 - 文章图片
成功探测出IIS PUT漏洞


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!