This small script tries to detect subdomain takeovers from a list of domains. Fingerprints are taken from https://github.com/EdOverflow/can-i-take-over-xyz.
Project description
This small script tries to detect subdomain takeovers from a list of domains. Fingerprints are taken from https://github.com/EdOverflow/can-i-take-over-xyz.
Installation
pip install takeover.py
Usage
takeover blog.example.com
Using with other tools:
subfinder -d "example.com" -silent | takeover
Using in python:
import json, asyncio
from pathlib import Path
from takeover import takeover
home = str(Path.home())
# config is an dictionary. See ~/.config/takeover/config.json for structure
config = json.load(open(home + "/.config/takeover/config.json"))
# Do not forget to replace pointer to fingerprints with the valid data. See ~/.config/takeover/fingerprints.json for structure
config['fingerprints'] = json.load(open(home + "/.config/takeover/fingerprints.json"))
subdomains = ["blog.example.com", "services.example.com"]
asyncio.run(takeover(config).checkHost(subdomains))
How it Works
Matches CNAME against takeover-able services
If CNAME found, matches fingerprints in the body.
Note
The output is a lot verbose so it is recommended to use a discord webhook to get notified. I am planning to change it in a major update.
If you need some extra features, feel free to submit a new issue on GitHub.
License
Disclaimer
I make guns, I sell guns, I give away guns but I take no responsibility of who dies with the guns.
Legally speaking, What you do with this has nothing to do with me. I am not responsible for your actions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file takeover.py-0.0.3.tar.gz.
File metadata
- Download URL: takeover.py-0.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e3b0c01eb2b680154487c1c8bbbed88c246da5ca3531c7972cae6a45c4e05c
|
|
| MD5 |
847cd44c6f1fcc1e9a05e0a02aa8045f
|
|
| BLAKE2b-256 |
b0f60f0bfcfd8c056db9ab7ed14e697d8ede969df0268943b620ba5034ee9087
|