Skip to main content

Some helper subdomain_takeover_tools to validate subdomain takeovers

Project description

Subdomain Takeover Tools

Latest Package version Build status Supported versions

A set of tools to validate the initial outcome of subtake.

Installation

  1. Install using pip:

    pip install subdomain_takeover_tools

    for windows:

    py -m pip install subdomain_takeover_tools

    Alternatively, you can download or clone this repo and call pip install -e ..

Confirming takeovers

All scripts support the following two parameters:

  • --strict: only report as vulnerable if the issue is not also applicable on hostname.tld and www.hostname.tld.
  • --inverse: do inverse reporting, so report all subdomains that are not vulnerable

Confirming S3

Subtake has some false positives on Google Cloud buckets as S3 buckets, also some access denied's end up in the results.

The script confirm-s3.py will make sure that the bucket is actually vulnerable.

grep "\[s3 bucket: " subtake-output.txt | confirm_s3

Confirming ELB

Some patterns of elb are vulnerable while others are not, to filter them we can use our script:

grep "\[elasticbeanstalk: " subtake-output.txt | confirm_elb

Note: the parameter --strict is accepted here but will not lead to expected results.

Confirming Shopify

It seems that

grep "\[shopify: " subtake-output.txt | confirm_shopify

Separate tools

Extracting domain names

As part of my process I want to know the domains involved in my findings.

Example usage:

cut -f3 < subtake-output.txt | extract_domain_names | sort -u > involved.domains

Note that extract_domain_names also support groups, such as domain.(co.id|in.th|ph|vn), this will be expanded automatically.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subdomain_takeover_tools-0.10.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subdomain_takeover_tools-0.10.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file subdomain_takeover_tools-0.10.0.tar.gz.

File metadata

  • Download URL: subdomain_takeover_tools-0.10.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for subdomain_takeover_tools-0.10.0.tar.gz
Algorithm Hash digest
SHA256 9c11fdd86e55d22bbee3d7049a6fabb0d40f9c228b05c550b6c198040e24c8fb
MD5 9f487f78f68835616cfeaf3949db77c7
BLAKE2b-256 df9ffb137984e12b910482025495612beb6ee8db2e7b19e9b7e2ffb1f788ef5e

See more details on using hashes here.

File details

Details for the file subdomain_takeover_tools-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: subdomain_takeover_tools-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for subdomain_takeover_tools-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af5cd293afe2fa9260d504e0187c9eadf9262345dba62dcea76113ba61560fd1
MD5 b432179173fb51c0eeff16d02d4d8982
BLAKE2b-256 95695e9294d6215edb18e7bc3bf3e62bfe0b15ce6dfde7135ec6b2bacf52ee79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page