mirror of
https://github.com/Mr-xn/Penetration_Testing_POC.git
synced 2025-06-21 02:10:38 +00:00
add crt.sh证书收集
This commit is contained in:
parent
a673b4e707
commit
f02f578b38
@ -117,6 +117,7 @@
|
|||||||
- [WAF Bypass](https://chybeta.gitbooks.io/waf-bypass/content/)
|
- [WAF Bypass](https://chybeta.gitbooks.io/waf-bypass/content/)
|
||||||
- [命令注入总结](./tools/命令注入总结.md)
|
- [命令注入总结](./tools/命令注入总结.md)
|
||||||
- [隐藏wifi-ssid获取 · theKingOfNight's Blog](./tools/隐藏wifi-ssid获取%20·%20theKingOfNight's%20Blog.pdf)
|
- [隐藏wifi-ssid获取 · theKingOfNight's Blog](./tools/隐藏wifi-ssid获取%20·%20theKingOfNight's%20Blog.pdf)
|
||||||
|
- [crt.sh证书/域名收集](./tools/crt.sh证书收集.py)
|
||||||
|
|
||||||
## 说明
|
## 说明
|
||||||
|
|
||||||
|
26
tools/crt.sh证书收集.py
Normal file
26
tools/crt.sh证书收集.py
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# @Time : 2019-10-08 22:51
|
||||||
|
# @Author : Patrilic
|
||||||
|
# @FileName: SSL_subdomain.py
|
||||||
|
# @Software: PyCharm
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import re
|
||||||
|
|
||||||
|
TIME_OUT = 60
|
||||||
|
|
||||||
|
|
||||||
|
def get_SSL(domain):
|
||||||
|
domains = []
|
||||||
|
url = 'https://crt.sh/?q=%25.{}'.format(domain)
|
||||||
|
response = requests.get(url, timeout=TIME_OUT)
|
||||||
|
# print(response.text)
|
||||||
|
ssl = re.findall("<TD>(.*?).{}</TD>".format(domain), response.text)
|
||||||
|
for i in ssl:
|
||||||
|
i += '.' + domain
|
||||||
|
domains.append(i)
|
||||||
|
print(domains)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
get_SSL("baidu.com")
|
Loading…
x
Reference in New Issue
Block a user