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

filter subs starts with hyphen #28

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Conversation

dogancanbakir
Copy link
Member

Closes #25.

Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !

@dogancanbakir , i think this might be happening because of empty payloads
ex: if pattern is {{sub}}-{{word}}.{{suffix}} . if any one of the variables is empty `` then i think this is causing the issue .

this solution works but can you just in case cross check as we can avoid some extra iterations/dedupes if that's the case

@dogancanbakir
Copy link
Member Author

@tarunKoyalwar,
I was unable to replicate the issue. Could you provide me with steps to reproduce it? Thanks!

Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echo _www.hackerone.com | ./alterx -silent | head -n 10
_www-cloud.hackerone.com
_www2018.hackerone.com
login._www.hackerone.com
dashboard._www.hackerone.com
_www.log.hackerone.com
_www.manager.hackerone.com
wordpress.hackerone.com
_wwwconf.hackerone.com
service-_www.hackerone.com
code-_www.hackerone.com

Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dogancanbakir ignore the above comment, it works fine with -

@ehsandeep ehsandeep merged commit 8ee0275 into main Oct 9, 2023
@ehsandeep ehsandeep deleted the filter_subs_starts_w_hyphen branch October 9, 2023 08:53
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

Successfully merging this pull request may close these issues.

Please remove subdomains that start with "-"
3 participants