一体化信息收集工具 - OSINT
如需查看我们的全部工具,请访问我们的网站 https://www.twelvesec.com/
编写者:
sudo pip3 install -r requirements.txt
___________ .__ _________
\__ ___/_ _ __ ____ | |___ __ ____ / _____/ ____ ____
| | \ \/ \/ // __ \| |\ \/ // __ \ \_____ \_/ __ \_/ ___\
| | \ /\ ___/| |_\ /\ ___/ / \ ___/\ \___
|____| \/\_/ \___ >____/\_/ \___ >_______ /\___ >\___ >
\/ \/ \/ \/ \/
GasMasK v. 2.0 - 一体化信息收集工具 - OSINT
GasMasK 是一个基于 GPLv3 协议的开源工具。
编写者:@maldevel, mikismaos, xvass, ndamoulianos, sbrb
https://www.twelvesec.com/
更多信息请访问 https://github.com/twelvesec/gasmask
用法: gasmask.py [-h] [-d DOMAIN] [-s NAMESERVER] [-x PROXY] [-l LIMIT]
[-i MODE] [-o BASENAME] [-k API-KEY] [-e SPYSE_API_KEY]
[-m MATCH] [-f FILTER] [--count] [-R REPORT]
[-B REPORT_BUCKET] [-1 CENSYS_API_ID] [-2 CENSYS_API_SECRET]
[-r] [-u] [-a ASN] [-c COUNTRY] [-O CERT_ORG]
[-I CERT_ISSUER] [-z CERT_HOST] [-S HTTP_SERVER]
[-t HTML_TITLE] [-b HTML_BODY] [-T TAGS] [-L LIMIT] [-D]
[-v] [-H]
[arguments [arguments ...]]
位置参数:
arguments Censys 查询
可选参数:
-h, --help 显示此帮助消息并退出
-d DOMAIN, --domain DOMAIN
要搜索的域名。
-s NAMESERVER, --server NAMESERVER
要使用的 DNS 服务器。
-x PROXY, --proxy PROXY
从搜索引擎获取结果时使用代理服务器(例如 '-x http://127.0.0.1:8080')
-l LIMIT, --limit LIMIT
限制搜索引擎结果数量(默认:100)。
-i MODE, --info MODE 限制信息收集类型(basic,nongoogle,whois,dns,revdns,vhosts,google,bing,yahoo,ask,dogpile,yandex,linkedin,twitter,youtube,reddit,github,instagram,crt,pgp,netcraft,virustotal,dnsdump,shodan,censys,spyse)。
-o BASENAME, --output BASENAME
同时输出四种主要格式(markdown、txt、xml 和 html)。
-k API-KEY, --shodan-key API-KEY
用于 Shodan 搜索的 API 密钥(MODE="shodan")
-e SPYSE_API_KEY, --spyse-key SPYSE_API_KEY
-m MATCH, --match MATCH
在现有查询结果中高亮显示一个字符串
-f FILTER, --filter FILTER
过滤每个结果要显示的 JSON 键,使用值 'help' 查看感兴趣的字段
--count 打印计数结果并退出
-R REPORT, --report REPORT
对给定字段进行统计(使用值 'help' 列出感兴趣的字段)'
-B REPORT_BUCKET, --report_bucket REPORT_BUCKET
报告模式中的桶长度(默认:10)
-1 CENSYS_API_ID, --censys_api_id CENSYS_API_ID
为 censys.io 搜索引擎提供认证 ID
-2 CENSYS_API_SECRET, --censys_api_secret CENSYS_API_SECRET
为 censys.io 搜索引擎提供秘密哈希值
-r, --read_api_keys 读取存储在 api_keys.txt 文件中的 API 密钥。(例如 '-i censys -r')
-u, --update_api_keys
更新存储在 api_keys.txt 文件中的 API 密钥。(例如 '-i censys -u')
-a ASN, --asn ASN 使用 ASN 过滤(例如 5408 对应 GR-NET AS)
-c COUNTRY, --country COUNTRY
使用国家过滤
-O CERT_ORG, --cert-org CERT_ORG
证书颁发给的组织
-I CERT_ISSUER, --cert-issuer CERT_ISSUER
证书由哪个组织颁发
-z CERT_HOST, --cert-host CERT_HOST
证书颁发给的主机名
-S HTTP_SERVER, --http-server HTTP_SERVER
Server 头部
-t HTML_TITLE, --html-title HTML_TITLE
按 HTML 页面标题过滤
-b HTML_BODY, --html-body HTML_BODY
按 HTML 正文内容过滤
-T TAGS, --tags TAGS 按特定标签过滤。例如:-T tag1,tag2,...(使用关键字 'list' 列出常用标签)
-L LIMIT, --Limit LIMIT
限制为 N 条结果
-D, --debug 调试信息
-v, --verbose 打印原始 JSON 记录
-H, --html 在浏览器中渲染 HTML 元素
基本模式
非 Google 模式
python gasmask.py -d example.com -i basic
python gasmask.py -d example.com -i dnsdump
python gasmask.py -d example.com -i shodan -k xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
python gasmask.py -d example.com -i whois,dns,revdns
python gasmask.py -d example.com -i basic,yahoo,github -o myresults/example_com_search_results
python gasmask.py -i censys --Limit 10 nessus
python gasmask.py -i censys -I SAP --report location.country.raw --report_bucket 10
python gasmask.py -i censys --html-title "Hacked By" --Limit 10 --html
python gasmask.py -i censys --tags heartbleed --report location.country.raw
python gasmask.py -i censys -S NGINX --count
python gasmask.py -i censys -d example.com
python gasmask.py -i censys -t "Internal Server Error" -S Apache -m "HTTP 500" --Limit 15
python gasmask.py -i censys -r
python gasmask.py -i censys -u