信息收集系列之子域名发现(一)

admin 2021年10月25日07:39:02评论97 views字数 1481阅读4分56秒阅读模式

01

前言

上篇回顾,主要讲述了企业根域名的收集方法,如ICP、公司股权、DNS解析、whois数据、ssl证书等。本篇文章主要讲讲子域名发现。


信息收集系列之子域名发现(一)


02

我的子域名发现流程


信息收集系列之子域名发现(一)


03

通过第三方数据源收集


比较有名有VirusTotal、微步、SecurityTrails、Spyse、Censys等。


信息收集系列之子域名发现(一)


参考:https://gist.github.com/sidxparab/22c54fd0b64492b6ae3224db8c706228


04

子域名爆破


字典:https://raw.githubusercontent.com/joinsec/BadDNS/master/domaindict-170W.txt


优质的DNS服务ip:https://raw.githubusercontent.com/bp0lr/dmut-resolvers/main/resolvers.txt


爆破工具:https://github.com/d3mondev/puredns


05

排列组合


在我们渗透过程,总是会发现一些子域名带有已下关键词。


admin、alpha、api、backend、beta、dev、intra、prod、staging、staging、test、uat


以sso.huoxian.cn举例子,可能会有如下命名方式的子域名


sso-test.huoxian.cnsso.test.huoxian.cnssotest.huoxian.cntestsso.huoxian.cn


我们可以通过dnsgen这款工具生成子域名列表,再进行解析,来扩大攻击面。


echo 'sso.huoxian.cn' |  dnsgen -w alt.txt -


信息收集系列之子域名发现(一)


06

总结


本文主要给子域名发现文章系列开个头,很简要的阐述了下子域名收集的部分方法。例如利用dns域传递、crossdomain.xml、通过burp流量、CSP头、子域名递归爆破等都未能覆盖到。


07

参考


1. https://feei.cn/esd/2. https://xz.aliyun.com/t/39353. https://paper.seebug.org/10534. https://sec-in.com/article/6435. https://sec-in.com/article/7936. https://github.com/d3mondev/puredns7. https://github.com/shmilylty/OneForAll8. https://github.com/ProjectAnte/dnsgen9. https://github.com/projectdiscovery/subfinder10. https://github.com/bit4woo/domain_hunter11. https://www.freebuf.com/articles/191363.html12. https://sidxparab.gitbook.io/subdomain-enumeration-guide


信息收集系列之子域名发现(一)


【周度激励】


信息收集系列之子域名发现(一)


【相关精选文章】


关于sql注入的一些技巧以及问题

分享一次面试靶场笔记



火线Zone是[火线安全平台]运营的封闭式社区,社区成员必须在[火线安全平台]提交有效漏洞才能申请免费加入,符合要求的白帽子可联系[火线小助手]加入。


我们不希望出现劣币驱逐良币的结果,我们不希望一个技术社区变成一个水区!


欢迎具备分享精神的白帽子加入火线Zone,共建一个有技术氛围的优质社区!

信息收集系列之子域名发现(一)
信息收集系列之子域名发现(一)


本文始发于微信公众号(火线Zone):信息收集系列之子域名发现(一)

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2021年10月25日07:39:02
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   信息收集系列之子域名发现(一)https://cn-sec.com/archives/415266.html

发表评论

匿名网友 填写信息