GetAltName – 从ssl证书中提取域名
网络工具
6 年前
0
1.25W
0
工具介绍
getaltname(或gan)是一种工具,可以直接从https网站提取ssl证书中的altname,这些名称可以为您提供dns名称(子域)或虚拟服务器。
使用方法
Installation with pipenv:
$ git clone https://github.com/franccesco/getaltname.git $ pipenv install
Installation with Pip:
$ git clone https://github.com/franccesco/getaltname.git $ pip install -r requirements.txt
For the copy&paste mechanism you will have to install xclip package. Debian/Ubuntu/Mint:
$ apt install xclip
usage: getaltname.py [-h] [-p PORT] [-s [timeout]] [-m] [-o OUTPUT]
[-f {json,text}] [-c {l,s}] [-d] [-V]
hostname
positional arguments:
hostname Host or Nmap XML to analyze.
optional arguments:
-h, --help show this help message and exit
-p PORT, --port PORT Destiny port (default 443)
-s [timeout], --search-crt [timeout] Retrieve subdomains found in crt.sh
-m, --match-domain Show match domain name only
-o OUTPUT, --output OUTPUT Set output filename
-f {json,text}, --format {json,text} Set output format
-c {l,s}, --clipboard {l,s} Copy the output to the clipboard as a
List or a Single string
-d, --debug Set debug enable -V, --version Print version information.
下载地址
https://github.com/franccesco/getaltname
张