mh9692714-ctrl/Janassan
Über uns
Passive subdomain intelligence, historical evidence tracking, and chronological asset discovery for security researchers.
Sicherheit und DatenschutzWhat you can do
- Passive enumeration from Subfinder, crt.sh (Certificate Transparency), AlienVault OTX passive DNS, HackerTarget and, with an API key, SecurityTrails. Sources run concurrently and fail independently.
- Normalisation, de-duplication and scope checking (only proper subdomains of the target are kept; wildcards are discarded).
- Three clearly separated timestamps for every subdomain (see below).
- Persistent history across scans: new subdomains, last-seen updates and subdomains that stopped appearing.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
Janassan
Janassan is a command-line tool for passive subdomain enumeration, historical tracking and intelligence. It discovers subdomains of domains you are authorised to assess, stores every observation in a local SQLite database, attaches dated historical evidence where public datasets provide it, and presents the results in a sortable terminal table.
Use it only against targets covered by a bug bounty programme, a contract, or your own infrastructure. Janassan is passive: it queries third-party data sources and never contacts, resolves, scans, probes or brute-forces the discovered hosts.
Quick Start
Install Janassan on Kali Linux:
sudo apt update
sudo apt install -y git pipx
git clone https://github.com/mh9692714-ctrl/Janassan.git
cd Janassan
pipx install .
pipx ensurepath
Open a new terminal and verify the installation:
janassan --version
janassan --help
Run your first passive scan against an authorized domain:
janassan scan example.com --sort creation --order desc
For additional enumeration coverage, install Subfinder:
sudo apt install -y subfinder
Check available data sources:
janassan sources
Demo
Janassan in action — passive subdomain enumeration and chronological sorting.

Target and subdomain names have been redacted for privacy.
Features
- Passive enumeration from Subfinder, crt.sh (Certificate Transparency), AlienVault OTX passive DNS, HackerTarget and, with an API key, SecurityTrails. Sources run concurrently and fail independently.
- Normalisation, de-duplication and scope checking (only proper subdomains of the target are kept; wildcards are discarded).
- Three clearly separated timestamps for every subdomain (see below).
- Persistent history across scans: new subdomains, last-seen updates and subdomains that stopped appearing.
- Rich terminal interface with progress, summary block, aligned table and pagination.
- Sorting and filtering that never treat a missing date as a real timestamp.
- CSV and JSON export, database backup, per-domain statistics.
The three dates
| Column | Meaning | Where it comes from |
|---|---|---|
| Creation Date | Earliest dated evidence that the name existed | Third-party datasets (CT logs, passive DNS) |
| Discovery Date | UTC time Janassan first recorded the subdomain | Janassan's own clock; never changes |
| Last Seen | UTC time Janassan last found the subdomain | Janassan's own clock; updated on each rediscovery |
Creation Date is not the DNS creation date. A certificate issued in 2021 only shows that the
name existed by 2021. Every evidence record is stored with its source, type, confidence and
retrieval time; the table shows the earliest one. When no source has dated evidence the column
shows Unknown; nothing is ever guessed.
| Evidence type | Source | Confidence | Why |
|---|---|---|---|
ct_log_entry_timestamp |
crt.sh | Medium | A certificate naming the host was publicly logged by then |
ct_certificate_not_before |
crt.sh | Medium | The CA's validity start; issuance is not DNS creation |
passive_dns_first_seen |
OTX | Low | When a sensor first saw it; the name may be far older |
High is reserved for a source that explicitly reports a creation date for the hostname. No free
source does this for arbitrary subdomains, so Janassan never reports High today.
Subfinder (optional but recommended)
Without Subfinder, Janassan still works with its built-in HTTP sources and reports Subfinder as skipped.
sudo apt install -y subfinder
# If your Kali repository does not carry it, use Go instead:
sudo apt install -y golang
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
sudo cp ~/go/bin/subfinder /usr/local/bin/
Subfinder reads its own provider keys from ~/.config/subfinder/provider-config.yaml. Janassan
does not manage that file. Run janassan sources to check what is available.
Dependencies
| Dependency | Purpose | Required |
|---|---|---|
| Python 3.11+ | Runtime | Yes |
| Rich | Terminal rendering | Yes (installed by pip) |
| Subfinder | Aggregated passive enumeration | No |
| pytest | Test suite | Development only |
Everything else is the Python standard library.
Configuration
Configuration is read from environment variables. No credentials are stored in the code.
| Variable | Purpose | Default |
|---|---|---|
JANASSAN_HOME |
Base directory for data, exports and backups | ~/.janassan |
JANASSAN_DB |
Database file (or use --db) |
$JANASSAN_HOME/data/janassan.db |
JANASSAN_SUBFINDER |
Path to the subfinder binary | found on PATH |
JANASSAN_HTTP_TIMEOUT |
HTTP timeout per request, seconds | 60 |
JANASSAN_SUBFINDER_TIMEOUT |
Overall Subfinder timeout, seconds | 300 |
JANASSAN_SECURITYTRAILS_KEY |
Enables the securitytrails source |
unset |
JANASSAN_OTX_KEY |
Optional AlienVault OTX key (higher rate limits) | unset |
export JANASSAN_SECURITYTRAILS_KEY='your-key'
Usage
janassan scan example.com # enumerate, store, show table
janassan scan example.com --sort creation # newest creation evidence first
janassan scan example.com --sort creation --order asc --filter evidence
janassan scan example.com --sources crtsh,otx # choose sources
janassan list example.com --filter new # stored results, no scan
janassan list example.com --source crtsh --search api
janassan export example.com --format csv
janassan export example.com --format json -o example.json
janassan export example.com --format json -o - # to stdout
janassan domains
janassan stats example.com
janassan backup
janassan sources
Example output (the data comes from the test servers used in Janassan's integration tests):
Target: example.com
Scan Status: Completed
Total Subdomains: 6
New Subdomains: 6 (initial scan)
Last Scan (UTC): 2026-11-27 11:25
Subdomain Creation Date Discovery Date Last Seen Source Confidence
──────────────────────────────────────────────────────────────────────────────────────────────────
+ old.example.com 2016-04-09 10:00 2026-11-27 11:25 2026-11-27 11:25 otx Low
+ vpn.example.com 2018-01-01 00:00 2026-11-27 11:25 2026-11-27 11:25 otx Low
+ www.example.com 2020-05-05 00:00 2026-11-27 11:25 2026-11-27 11:25 crtsh Medium
+ api.example.com 2023-02-11 08:00 2026-11-27 11:25 2026-11-27 11:25 crtsh Medium
+ blog.example.com Unknown 2026-11-27 11:25 2026-11-27 11:25 hackertarget Unknown
+ dev.example.com Unknown 2026-11-27 11:25 2026-11-27 11:25 subfinder Unknown
+ marks subdomains first found in the latest scan. Rows not seen in the latest scan are dimmed.
The Source column shows the source of the creation evidence, or the discovery sources when no
evidence exists. The table needs about 80 columns; dates wrap onto two lines below 110.
CLI reference
Global options (accepted before or after the command): -v/-vv (info/debug logging on stderr),
--db PATH, --no-color, --version.
| Command | Description |
|---|---|
scan DOMAIN |
Enumerate passively, update the database, show results. Options: --sources, --timeout, --no-table, plus the view options below |
list DOMAIN |
Show stored results without scanning |
export DOMAIN |
Export to --format csv|json (default csv) to -o PATH, or -o - for stdout |
domains |
List monitored root domains |
stats DOMAIN |
Totals, evidence coverage, per-source counts and recent scan history |
backup |
Write a consistent database copy (-o PATH, default ~/.janassan/backups/) |
sources |
List sources and whether each is available and why not |
View options (scan, list, export):
| Option | Values |
|---|---|
--sort |
discovery (default), creation, last-seen, alpha |
--order |
asc or desc. Default: newest first for dates, A to Z for alpha |
--filter |
all, new, known, evidence, unknown |
--source NAME |
Only subdomains found by, or evidenced by, that source |
--search TEXT |
Only subdomains containing the text |
--page-size N, --page N |
scan and list only. Default 50 per page, with prompting, on a terminal; everything when piped |
Sort keys map to the requested orderings: --sort creation (newest first) and
--sort creation --order asc (oldest first); likewise for discovery and last-seen.
Records without a date always come last, in either direction.
Exit codes: 0 success, 1 error (including a scan where no source returned results), 2 usage
error, 130 interrupted.
Database
SQLite, default ~/.janassan/data/janassan.db, WAL mode, foreign keys enforced, parameterised SQL
and one transaction per scan. Tables: domains, scans, subdomains, discovery_sources,
historical_evidence. first_seen is never modified once written. Evidence rows are unique per
subdomain, source, type and date, so rescans do not duplicate them. See docs/DESIGN.md for the
full schema.
not_seen status: after a scan in which no source failed, subdomains absent from the results are
marked not_seen. If any source failed, the status is left unchanged, because the failed source
may be the one that knows those hosts. Skipped sources (missing binary or key) do not block this.
Back up with janassan backup, which uses SQLite's online backup API and is safe while Janassan is
not running a scan.
Export
janassan export example.com --format csv|json. Columns: root_domain, subdomain,
creation_date, discovery_date, last_seen, evidence_source, confidence, evidence_type,
status, discovery_sources. All timestamps are ISO 8601 UTC (2026-11-27T11:25:20Z). Missing
values are Unknown in CSV and null in JSON. The JSON file also contains a metadata block
(tool, version, export time, record count, notes on what the dates mean) and, per subdomain, every
stored evidence record. Exports honour the same sort and filter options as list. Without
-o, files go to ~/.janassan/exports/.
Known limitations
- A hostname found only in a historical dataset is recorded as discovered even if its DNS record was deleted long ago. Janassan does not resolve names, so it cannot tell. Treat results as leads to verify within your scope.
- Creation Date is observational evidence. It is only as early as the datasets reach, and many subdomains have none.
- crt.sh is frequently slow or returns errors for large domains. Janassan retries and reports the failure; the other sources continue. Re-run the scan if crt.sh failed.
- HackerTarget's free tier is rate limited. OTX may need a key for heavy use.
- SecurityTrails' free API provides subdomain names but no dates; its historical DNS endpoints need a higher plan and are not used. Without a key the source is skipped.
- Subfinder results carry no dates, and Janassan records Subfinder as one source rather than Subfinder's individual providers.
Newmeans first seen in the latest scan. In a domain's first scan everything is new, which the summary labels "initial scan".- Only one scan should write to the same database at a time.
- Verified on Linux with Python 3.13 in a clean virtual environment. It has not been run on a physical Kali installation, and the live endpoints (crt.sh, OTX, HackerTarget, SecurityTrails) were tested only against local servers that mimic their response formats.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
[skip] subfinder ... not found on PATH |
Install Subfinder or set JANASSAN_SUBFINDER |
[fail] crtsh ... HTTP 502/503/timeout |
crt.sh is overloaded; retry later or raise --timeout |
[fail] ... Tunnel connection failed or proxy errors |
Set HTTPS_PROXY/SSL_CERT_FILE for your network; Janassan honours the standard variables |
No source returned results; nothing was recorded |
All sources failed or were skipped. Run janassan sources and -vv scan ... |
No stored data for example.com |
Run janassan scan example.com first |
Database schema version N is newer |
The database was written by a newer Janassan; upgrade |
| Table looks cramped | Use a terminal at least 80 columns wide or --no-color and --page-size |
| Need more detail | janassan -vv scan example.com prints debug logs to stderr |
Project layout
janassan/ package: cli, config, database, enumerator, historical, tracker,
sorting, display, exporter, validators, sources, http_client, models, timeutil
tests/ unit and integration tests (pytest)
docs/ DESIGN.md: architecture, evidence model and schema
data/ exports/ placeholders; runtime data lives under JANASSAN_HOME
Licence
MIT. See LICENSE.
Ähnliche Projekte entdecken
Wird geladen…