You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cheap wins before brute-forcing: try AXFR and detect NSEC-walkable zones #85
A misconfigured authoritative server that allows zone transfer (AXFR) gives the complete answer in one query, versus millions of brute-force queries.
Zones signed with plain NSEC (not NSEC3) can be walked to list every name.
Checking both first is standard tradecraft (dnsrecon, fierce). It costs almost nothing, and it fits subenum's "minimize queries, trust the result" positioning.
Proposal
-axfr (or on by default with a notice):
Look up the target's NS records.
Attempt AXFR against each authoritative server.
On success, report the zone transfer as a finding and merge the names into the results, tagged source: axfr.
Detect NSEC versus NSEC3 and print a notice when the zone is walkable. Walking it could be a later -nsec-walk.
Charge these queries against -rate and -max-queries.
The zone-transfer half shipped in d256b7d as -axfr. NSEC-walkable detection is split into #234.
How it works
The target's NS records come from -dns-server.
Each name server (up to 8, two addresses each) is asked for an AXFR over TCP (internal/dns.Transfer, built on x/net's dnsmessage, so no new dependency and no miekg/dns migration).
A server that allows the transfer is reported on stderr and in the run-quality report (axfr_allowed, axfr_names).
The zone's names become candidates after the wordlist, and -permute seeds, through the same path as -ct. Each is still verified by a lookup, so a stale zone entry is never reported.
Refusals (REFUSED, NOTAUTH, NOTIMP, an ordinary answer, or a closed connection) are the correct configuration and stay quiet unless -v.
Accounting
The NS and address lookups and the transfers count in queries_sent.
They are not paced by -rate: there are a handful per target, before the scan.
Safety and resume
Simulation ignores -axfr, and lab mode refuses it, because a transfer would reach the zone's real name servers.
The resume state keeps the transferred names.
Done-when check: against a test server that allows AXFR, the CLI reports the transfer and the server, finds the zone's resolvable names, and counts the queries. Unit tests cover allow, refuse and timeout, and e2e tests cover allowed, refused, and lab/simulate refusal. CI is green on every job.
Activity
TMHSDigital commentedon Nov 13, 2026
The zone-transfer half shipped in d256b7d as
-axfr. NSEC-walkable detection is split into #234.How it works
-dns-server.internal/dns.Transfer, built on x/net'sdnsmessage, so no new dependency and no miekg/dns migration).axfr_allowed,axfr_names).-permuteseeds, through the same path as-ct. Each is still verified by a lookup, so a stale zone entry is never reported.-v.Accounting
queries_sent.-rate: there are a handful per target, before the scan.Safety and resume
-axfr, and lab mode refuses it, because a transfer would reach the zone's real name servers.Done-when check: against a test server that allows AXFR, the CLI reports the transfer and the server, finds the zone's resolvable names, and counts the queries. Unit tests cover allow, refuse and timeout, and e2e tests cover allowed, refused, and lab/simulate refusal. CI is green on every job.