DNSX panics on CIDR mapping #500
Labels
Status: Completed
Nothing further to be done with this issue. Awaiting to be closed.
Type: Bug
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
dnsx version:
1.1.6
Current Behavior:
When scanning a list of domains for subdomains, using a wordlist I get the following panic error during ASN mapping.
Looks like the asnmap response returned when scanning may return invalid data which is not handled correctly. It looks to return a dataset with several missing fields.
This is on WIndows 11 64b, with go version go1.21.4 windows/amd64
Expected Behavior:
Previous versions has completed the same search correctly.
Steps To Reproduce:
.\dnsx\dnsx.exe -a -cname -mx -txt -asn -w .\datasets\wordlist-fqdn-sorted.txt -retry 1 -r 1.0.0.1,8.8.4.4,149.112.112.112 -json -t 1500 -o .\dnsx.json -d .\domains.txt
After adding an error print message on line 700
dnsx/internal/runner/runner.go
I got the following message, which shows that the start and end field of the asnmap.Response are missing.gologger.Error().Msgf("%s - %d results: %s", domain, len(results), results)
[ERR] interactintegrasjoner.DOMAIN- 1 results: [%!s(*asnmap.Response=&{ HOST_IPv4 ASN NUMBER COUNTRY_CODE ASNNAME Peering: ASN_EMAIL})]
Running DNSX looking just for this FQDN, ``, it runs okay and returns a better ASNmap.
.\dnsx.exe -a -cname -mx -txt -asn -w interactintegrasjoner -retry 1 -r 1.0.0.1,8.8.4.4,149.112.112.112 -json -t 1500 -d DOMAIN
[ERR] interactintegrasjoner.DOMAIN - 1 results: [%!s(*asnmap.Response=&{IP_NET_START IP_NET_END ASN NUMBER COUNTRY_CODE ASNNAME Peering: ASN_EMAIL})]
The text was updated successfully, but these errors were encountered: