OJ / gobuster

Directory/File, DNS and VHost busting tool written in Go
Apache License 2.0
9.34k stars 1.16k forks source link

i/o timeout when use dns mode to enumerate subdomains #416

Closed JYThomas closed 8 months ago

JYThomas commented 1 year ago

Hello! thanks for this amazing tool! Here is the problem when I use gobuster in python script through subprocess, Below is the output, any idea about this problem???

=============================================================== Gobuster v3.5 by OJ Reeves (@TheColonial) & Christian Mehlmauer (@firefart)

[+] Domain: gxsx.cn [+] Threads: 50 [+] Show IPs: true [+] Timeout: 1s [+] Wordlist: ../../dicts/subnames_5000.txt

2023/05/09 21:04:14 Starting gobuster in DNS enumeration mode

2023/05/09 21:04:16 [-] Unable to validate base domain: gxsx.cn (lookup gxsx.cn: i/o timeout) Progress: 4989 / 4990 (99.98%)

2023/05/09 21:05:56 Finished

sk0x1234 commented 1 year ago

https://github.com/OJ/gobuster/blob/c3fed5e2f2c4d4b1f3b2643a55d8f0692f49e95d/gobusterdns/gobusterdns.go#L97

its a warning not an error. Looks like ir err!= nil it throws the warning, can be resolved if you know the actual response you get from error captures properly. Try using dig and paste the response.

sk0x1234 commented 1 year ago

I'm looking for a option in gobuster dns for do only Type A query not AAAA, is that available yet? like only get ipv4 IP's not IPv6.

image

firefart commented 8 months ago

if your dns requests time out you can try to lower the threads