AnalyticsRelationships - 通过查看 Google Analytics ID 获取相关域/子域
2021-06-02 10:44:56 Author: mp.weixin.qq.com(查看原文) 阅读量:75 收藏


文章来源:Khan安全攻防实验室

此脚本尝试通过查看 URL 中的 Google Analytics ID 来获取相关域/子域。首先在网页中搜索Google Analytics的ID,然后使用ID请求builtwithhackertarget

->  "www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+"-> GTM-[A-Z0-9]+->  "UA-\d+-\d+"

Python安装

> git clone https://github.com/Josue87/AnalyticsRelationships.git> cd AnalyticsRelationships/Python> sudo pip3 install -r requirements.txt

Python

> python3 analyticsrelationships.py -u https://www.example.com

或者将输出重定向到文件(横幅或信息消息被发送到错误输出):

python3 analyticsrelationships.py -u https://www.example.com > /tmp/example.txt

Python

输出重定向到文件 /tmp/example.txt:

没有重定向:

Go安装

> git clone https://github.com/Josue87/AnalyticsRelationships.git> cd AnalyticsRelationships/GO> go build -ldflags "-s -w"

Go

>  ./analyticsrelationships --url https://www.example.com

或者将输出重定向到文件(横幅或信息消息被发送到错误输出):

>  ./analyticsrelationships --url https://www.example.com > /tmp/example.txt
没有重定向:


文章来源: http://mp.weixin.qq.com/s?__biz=MzAxMjE3ODU3MQ==&mid=2650513184&idx=3&sn=919087613fd874bb5427ca16984aee44&chksm=83bafac4b4cd73d29b0ad9db8c43de7ba178d2a3c7be04fcb6d745f5ef83b496d8684c4a7ded#rd
如有侵权请联系:admin#unsafe.sh