GetAltName – 从ssl证书中提取域名

华盟原创文章投稿奖励计划

GetAltName - 从ssl证书中提取域名

工具介绍

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

文章出处:黑客工具箱

始发于微信公众号: 黑白之道

本文来源黑白之道,经授权后由fox发布,观点不代表华盟网的立场,转载请联系原作者。

发表评论