Skip to main content

Enumeration sub domains(枚举子域名)

Project description

ESD(Enumeration Sub Domain)

PyPI PyPI - Python Version license

asciicast

优势

支持泛解析域名

基于独创的RSC(响应相似度对比)技术对泛解析域名进行枚举(受网络质量、网站带宽等影响,速度会比较慢,单个域名在一小时以内)

基于aioHTTP获取一个不存在子域名的响应内容,并将其和字典子域名响应进行相似度比对。 超过阈值则说明是同个页面,否则则为可用子域名,并对最终子域名再次进行响应相似度对比。

更快的速度

基于AsyncIO异步协程技术对域名进行枚举(受网络和DNS服务器影响会导致扫描速度小幅波动,基本在250秒以内)

基于AsyncIO+aioDNS将比传统多进程/多线程/gevent模式快50%以上。 通过扫描qq.com,共170083条规则,找到1913个域名,耗时163秒左右,平均1000+条/秒

更全的字典

融合各类字典,去重后共170083条子域名字典

  • 通用字典
    • 单字母、单字母+单数字、双字母、双字母+单数字、双字母+双数字、三字母
    • 单数字、双数字、三数字
  • 域名解析商公布使用最多的子域名
    • DNSPod: dnspod-top2000-sub-domains.txt
  • 其它域名爆破工具字典
    • subbrute: names_small.txt
    • subDomainsBrute: subnames_full.txt

更多的收集渠道

  • 收集DNSPod接口泄露的子域名
  • 收集页面响应内容中出现的子域名
  • 收集跳转过程中的子域名
  • 收集HTTPS证书透明度子域名
  • 收集DNS域传送子域名
  • 收集搜索引擎子域名

DNS服务器

  • 解决各家DNS服务商对于网络线路出口判定不一致问题
  • 解决各家DNS服务商缓存时间不一致问题

使用

仅在Python3下验证过

pip install esd

CLI命令行使用

# 扫描单个域名
esd qq.com

# debug模式扫描单个域名
esd=debug esd qq.com

# 扫描多个域名(英文逗号分隔)
esd qq.com,tencent.com

# 扫描单个域名且过滤子域名中单个特定响应内容
esd mogujie.com 搜本店

# 扫描单个域名且过滤子域名中多个特定响应内容
esd mogujie.com 搜本店,收藏店铺

# 扫描文件(文件中每行一个域名)
esd targets.txt

程序调用

from ESD.EnumSubDomain import EnumSubDomain
domains = EnumSubDomain('feei.cn').run()

后续

  • 提升扫描速度
  • 支持三级子域名,多种组合更多可能性

参考

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ESD-0.0.6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ESD-0.0.6-py3-none-any.whl (733.5 kB view details)

Uploaded Python 3

File details

Details for the file ESD-0.0.6.tar.gz.

File metadata

  • Download URL: ESD-0.0.6.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ESD-0.0.6.tar.gz
Algorithm Hash digest
SHA256 15fe000f94a9124149ac7bbc2106621e2ccc797fcb8a3d27e3af12abb8bf400d
MD5 b999a0bf2c4257cf2ad06cadccd56778
BLAKE2b-256 841878cf215fea9fb21538b9f2acb63a4b4498613cb5ad884582fb6dfa7b8637

See more details on using hashes here.

File details

Details for the file ESD-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ESD-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 733.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ESD-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e946f79c79ea59276eacdb35f22627b58bbb99ff3049202027699b725aa9ab44
MD5 1a44cec54cb344313eb8cd52721bf1a0
BLAKE2b-256 d31ddc32c4ff0f089993fea5afdb5101f3eee34378cfc141b9e05d49aa890761

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page