Sub404

A python tool to check subdomain takeover vulnerability
Alternatives To Sub404
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Reconftw4,321
2 days ago24gpl-3.0HTML
reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
Vulnx1,636
4 days ago2June 04, 201919gpl-3.0Python
vulnx 🕷️ an intelligent Bot, Shell can achieve automatic injection, and help researchers detect security vulnerabilities CMS system. It can perform a quick CMS security detection, information collection (including sub-domain name, ip address, country information, organizational information and time zone, etc.) and vulnerability scanning.
Dnstake727
4 months ago5April 15, 20228mitGo
DNSTake — A fast tool to check missing hosted DNS zones that can lead to subdomain takeover
Subzy676
19 days ago4April 23, 20213gpl-2.0Go
Subdomain takeover vulnerability checker
Garud577
10 months agomitShell
An automation tool that scans sub-domains, sub-domain takeover, then filters out XSS, SSTI, SSRF, and more injection point parameters and scans for some low hanging vulnerabilities automatically.
Aort556
5 months ago8October 12, 20224gpl-3.0Python
All in One Recon Tool for Bug Bounty
Sub404257
5 months ago1gpl-3.0Python
A python tool to check subdomain takeover vulnerability
Cazador_unr119
4 months ago
Hacking tools
Takeover V191
4 months ago1gpl-3.0Shell
Takeover script extracts CNAME record of all subdomains at once. TakeOver saves researcher time and increase the chance of finding subdomain takeover vulnerability.
Firebase85
4 years agomitPython
Exploiting misconfigured firebase databases
Alternatives To Sub404
Select To Compare


Alternative Project Comparisons
Readme

Sub404: A Fast Tool To Check Subdomain Takeover Vulnerability

Banner

What is Sub 404

Sub 404 is a tool written in python which is used to check possibility of subdomain takeover vulnerability and it is fast as it is asynchronous.

Why

During recon process you might get a lot of subdomains(e.g more than 10k). It is not possible to test each manually or with traditional requests or urllib method as it is very slow. Using Sub 404 you can automate this task in much faster way. Sub 404 uses aiohttp/asyncio which makes this tool asynchronous and faster.

How it works

Sub 404 uses subdomains list from text file and checks for url of 404 Not Found status code and in addition it fetches CNAME(Canonical name) and removes those URL which have target domain name in CNAME. It also combines result from subfinder and sublist3r(subdomain enumeration tool) if you don't have target subdomains as two is better than one. But for this sublist3r and subfinder tools must be installed in your system. Sub 404 is able to check 7K subdomains in less than 5 minutes.

Key Features:

- Fast (as it is asynchronous)
- Uses two more tools to increase efficiency
- Saves result in a text file for future reference
- Umm thats it, nothing much !

How to use:

Note: Only works on Python3.7+

Using docker

As an alternative, it is also possible to build a Docker image, so no prerequisites are necessary.

$ docker build -t sub404 .
$ docker run --rm sub404 -h

Usage example:

Note: If subfinder and sublist3r is installed.
This combines result from sublist3r and subfinder tool and checks for possibility of takeover.
$ python3 sub404.py -d anydomain.com

Example


- If subfinder and sublist3r is not installed, provide subdomains in text file
$ python3 sub404.py -f subdomain.txt

Example

Note:

This tool is mostly tested in linux but should works on other OS too.

Usage options:

$ python3 sub404.py -h

This will display help for the tool. Here are all the switches it supports.

Flag Description Example
-d Domain name of the taget. python3 sub404.py -d noobarmy.tech
-f Provide location of subdomain file to check for takeover if subfinder is not installed. python3 sub404.py -f subdomain.txt
-p Set protocol for requests. Default is "http". python3 sub404.py -f subdomain.txt -p https or python3 sub404.py -d noobarmy.tech -p https
-o Output unique subdomains of sublist3r and subfinder to text file. Default is "uniqueURL.txt" python3 sub404.py -d noobarmy.tech -o output.txt
-h show this help message and exit python3 sub404.py -h

Note:

This tool fetches CNAME of 404 response code URL and removes all URL which have target domain in CNAME. So chances of false positives are high.

Contributing to Sub 404:

- Report bugs, missing best practices
- DM me with new ideas
- Help in Fixing bugs

My Twitter:

Say Hello @hackw1thproxy

Credits:

Ice3man543 - Projectdiscovery's subfinder tool is used to enumerate subdomains
aboul3la - aboul3la's sublist3r tool is used to enumerate subdomains

Current version is 1.0

Popular Vulnerabilities Projects
Popular Subdomain Projects
Popular Security Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Vulnerability
Pentesting
Subdomain
Vulnerability Scanners