🔎
Subdah another subdomains scanner.
Installation
$ git clone https://github.com/traumatism/subdah
$ cd subdah
$ pip3 install -r requirements.txt
Running
$ python3.10 subdah.py [--debug] -d domain.com
Adding your own scanning module
- Add a Python module in the
modules/
folder. - Import the required modules
# Abstract classes.
from lib.common.abc import Module, Subdomain
# Manage the database.
from lib import database
- Create a subclass of
Module
class MyModule(Module):
def __init__(self, target: str):
self.target = target
def run(self):
pass
- Put your scanning code in the
run()
function
def run(self):
# this list should contain all the subdomains
# gathered after running module
subdomains: list[Subdomain] = [
Subdomain("s1.domain.com"),
Subdomain("s2.domain.com")
]
# add the found subdomains to the database
for subdomain in subdomains:
database.add_subdomain(subdomain)
- Add your module to the modules list in
subdah.py
from modules.mymodule import MyModule
modules = (…, MyModule)
- And you done!