红队作业 | 收集xxx.com域名的所有子域名

文章来源|MS08067 红队培训班 第5期

本文作者:AlexD(红队培训班5期学员)


按老师要求尝试完成布置的作业如下:

被动信息收集

0x01 利用DNS数据集收集子域

有很多第三方服务聚合了大量的DNS数据集,可以通过它们来检索子域名

(1)ip138:https://site.ip138.com/
(2)百度云观测:http://ce.baidu.com/index/getRelatedSites?site_address=xxx.com
(3)circl:https://www.circl.lu/services/passive-dns/#passive-dns
(4)hackertarget:https://hackertarget.com/find-dns-host-records/
(5)riddler:https://riddler.io/search?q=pld:xxx.com
(6)bufferover:https://dns.bufferover.run/dns?q=.xxx.com
(7)dnsdb:https://dnsdb.io/en-us/
(8)ipv4info:http://ipv4info.com/
(9)robtex:https://www.robtex.com/dns-lookup/
(10)chinaz:https://alexa.chinaz.com/
(11)netcraft:https://searchdns.netcraft.com/
(12)securitytrails:https://docs.securitytrails.com/v1.0/reference#get-domain
(13)dnsdumpster:https://dnsdumpster.com/
(14)sitedossier:http://www.sitedossier.com/
(15)threatcrowd:https://www.threatcrowd.org/
(16)siterankdata:https://siterankdata.com/
(17)findsubdomains:https://findsubdomains.com/

通过dnsdumpster检索子域名

6a3b2d05b5388a9e2d7edb724e4ffc79.png

通过findsubdomains检索子域名

14204d197b964ea2c6c3c937ffd627d8.png

0x02 基于SSL证书查询

   证书透明度(Certificate Transparency)是证书授权机构的一个项目,证书授权机构会将每个SSL/TLS证书发布到公共日志中。一个SSL/TLS证书通常包含域名、子域名和邮件地址。查找某个域名所属证书的最简单的方法就是使用搜索引擎搜索一些公开的CT日志。

常用证书查询的站点:

crtsh:https://crt.sh/
facebook:https://developers.facebook.com/tools/ct
entrust:https://www.entrust.com/ct-search/
certspotter:https://sslmate.com/certspotter/api/
spyse:https://spyse.com/search/certificate
censys:https://censys.io/certificates
google:https://google.com/transparencyreport/https/ct/

通过crtsh收集子域名,只需将目标域名填入后点击查询即可

a9d4869b48aeff30b72d17586c12cf15.png

0x03 利用搜索引擎发现子域

常用的搜索引擎有以下四个:

(1)google
(2)baidu
(3)bing
(4)sougou
查询语法:
根据域名搜集子域名:site:xxx.com

通过Google搜索子域名3f6e2d58f4bbd48d2d3a577e25d3a345.png


0x04 网络空间搜索引擎

(1)FOFA:https://fofa.so/
子域名查询语法:domain:xxx.com
(2)zoomeye:https://www.zoomeye.org/
子域名查询语法:site:xxx.com
(3)shodan:https://www.shodan.io/
子域名查询语法:hostname:xxx.com
(4)quanke:https://quake.360.

  • 2
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值