Closed AvnerCohen closed 7 years ago
@evilsocket, this is something dnssearch and dirsearch both share same issues so in xray as well, i guess you fixed that in xray, but this is something u can see, to allow scan the things for subdomain as well just not TLD.
The whole point of this tool is finding new subdomains given the domain.tld, if you provide an URL with a subdomain in it, your PR will make the tool leave the subdomain and therefore every scan will be for:
<subdomain>.<provided-subdomain>.domain.tld
Which is wrong.
Note: Of course that is wrong for domains like www.google.com etc, which are the majority of what ppl feed the tool with.
@AvnerCohen Maybe a new command line option to enable/disable this behaviour would make both of us happy? :)
Issue: ./dnssearch -domain env.tld.com
Will search through tld.com instead of env.tld.com
As a user of the lib, I really felt like I want to be protected from empty string, but beyond that, I want to have full control on the domain pattern I want to run my search over.