MCPcopy Index your code
hub / github.com/Josue87/AnalyticsRelationships

github.com/Josue87/AnalyticsRelationships @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
23 symbols 61 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AnalyticsRelationships

This script try to get related domains / subdomains by looking at Google Analytics IDs from a URL. First search for ID of Google Analytics in the webpage and then request to builtwith and hackertarget with the ID.


Note: It does not work with all websites. It is searched by the following expressions:

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

Available versions:

Installation:

Installation according to language.

Python

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

GO

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

Docker

> git clone https://github.com/Josue87/AnalyticsRelationships.git
> cd AnalyticsRelationships
> docker build -t analyticsrelationships:latest . 

Usage

Usage according to language

Python

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

Or redirect output to a file (banner or information messages are sent to the error output):

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

GO

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

Or redirect output to a file (banner or information messages are sent to the error output):

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

You can also pass a file as input

>  cat file.txt | ./analyticsrelationships 

Or a single URL

>  echo https://www.example.com | ./analyticsrelationships 

Docker

Only Python Version.

>  docker run -it  analyticsrelationships:latest https://www.example.com

Or redirect output to a file (banner or information messages are sent to the error output):

>  docker run -it  analyticsrelationships:latest https://www.example.com > /tmp/example.txt

Examples

Python

Output redirection to file /tmp/example.txt:

image

Without redirection:

image

GO

Without redirection:

image

Working with file redirection works just like in Python.

An example with a file:

image

Disclaimer!

This is a PoC. The author is not responsible for any illegitimate use.

Core symbols most depended-on inside this repo

info
called by 5
analyticsrelationships.go
getURLResponse
called by 4
analyticsrelationships.go
crash
called by 2
analyticsrelationships.go
warning
called by 2
analyticsrelationships.go
contains
called by 2
analyticsrelationships.go
start
called by 2
analyticsrelationships.go
get_domains
called by 2
Python/analyticsrelationships.py
show_data
called by 2
Python/analyticsrelationships.py

Shape

Function 23

Languages

Go65%
Python35%

Modules by API surface

analyticsrelationships.go15 symbols
Python/analyticsrelationships.py8 symbols

For agents

$ claude mcp add AnalyticsRelationships \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact