gwen001 / github-subdomains

Find subdomains on GitHub.
MIT License
653 stars 97 forks source link

Suggestion: exclude value of -d argument from search results #5

Open nikitastupin opened 3 years ago

nikitastupin commented 3 years ago

Hi @gwen001 ,

First of all thanks for this project, it looks like it's finding sub-domains that Amass isn't finding which is great! I have a suggestion to improve this project.

I've run github-subdomains with -d paypal.com argument and noticed that it uses "paypal.com" GitHub search query and scrapes first 1000 results (10 pages by 100 results each). Then I've used this query in https://github.com and noticed that most of these results are www.paypal.com or paypal.com:

Screen Shot 2020-12-12 at 13 49 28

We can exclude these uninteresting results using NOT keyword get more subdomains:

Screen Shot 2020-12-12 at 13 56 51

So I suggest to use "example.com" NOT "https://example.com" NOT "http://example.com" NOT "www.example.com" query instead of "example.com".