mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-10-20 15:21:30 +02:00
Every scan now runs a discovery phase, gated per seed type: - seed_resolution: expand ip / cidr / asn seeds into IpAddress assets (stdlib ipaddress, even-stride sampling + rfc1918 skip on big ranges) - reverse_dns: dnsx -ptr over discovered IPs - ip_enrichment: asn / org / country from cached bgp + whois - target_enrichment: consolidate cached whois/dns/bgp, refresh on miss/stale The engine framework grows a phase axis (discovery/expansion/depth) and per-stage applies_to gating so a stage skips cleanly when it doesn't apply to the seed; subdomain discovery is retagged as expansion. Adds the IpAddress model + migration.
10 lines
208 B
Python
10 lines
208 B
Python
from enum import Enum
|
|
|
|
|
|
class IpSource(Enum):
|
|
SEED = "seed"
|
|
CIDR_EXPANSION = "cidr_expansion"
|
|
ASN_EXPANSION = "asn_expansion"
|
|
DNS_RESOLUTION = "dns_resolution"
|
|
REVERSE_DNS = "reverse_dns"
|