Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"--subs" flag not working correctly if input domain has trailing "." character #6

Open
sebd0 opened this issue Mar 4, 2021 · 0 comments

Comments

@sebd0
Copy link

sebd0 commented Mar 4, 2021

Heyo,

The --subs flag does not actually produce only subdomain variants when the input domain/subdomain has a trailing "." character. For example:

$ DNScewl -t fb.com. -p words.txt --subs --no-color --no-repeats | grep dev1
dev1fb.com.
dev1-fb.com.
dev1.fb.com.

I realise this might not be maintained anymore but that doesn't matter. It's a good tool that surely is still used. I've almost zero C++ knowledge and just looking at it hurts my brain so I can't point to the problematic line of code. I'm hoping this issue will help whoever might face the same problem in the future.

Easy fix is to clean your input file of any trailing "." characters like so:
$ sed -i 's/.$//' file.txt

Happy hunting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant