发布时间:2019-09-26 07:25:30编辑:auto阅读(2464)
简单版http host头***漏洞POC,没有对异常进行处理,没有对意外情况进行处理,所以是简单版!代码如下:
from urllib import request
import sys
import re
url=sys.argv[1]
header={'Host' : 'www.eth10.com'}
req=request.Request(url,headers=header)
u = request.urlopen(req)
resp = u.read()
if re.match('.*www.eth10.com',str(resp)):
print('漏洞存在')
else:
print('不存在该漏洞')
使用语法:python3 host.py URL,URL格式为:http://xx.xx.xx
上一篇: Python3 安装 numpy 科学库
下一篇: python3基础学习(base64编码
51275
50719
41321
38135
32596
29502
28353
23222
23189
21512
1587°
2306°
1918°
1860°
2185°
1901°
2591°
4333°
4187°
2984°