-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.
Milestone
Description
There might be cases where the scope of a bug bounty program is limited to a certain set of subdomain. By adding a new flag to filter the results of subfinder based on this scope, we can reduce the amount of traffic to be passed into the next tools and only focus on in-scope items.
CLI Flag:
-m, -match match output based on the specified pattern
-f, -filter filter output based on the specified patternExample run:
subfinder -d example.com -match "*.api,*waf,login-*" -silent
subfinder -d example.com -match scope.txt -silent
Example scope.txt file (both exact matches and wildcards should be supported):
*.static.example.com
reg.example.com
*.static
*.api-*
reg
subfinder -d example.com -match scope.txt -silent
reg.example.com
69.48.148.215.static.example.com
69.48.134.63.static.example.com
69.48.129.64.static.example.com
69.48.129.82.static.example.com
69.48.134.12.static.example.com
69.48.142.18.static.example.com
69.48.134.23.static.example.com
69.48.134.137.static.example.com
69.48.134.201.static.example.com
69.48.129.155.static.example.com
69.48.129.130.static.example.com
69.48.142.22.static.example.comMetadata
Metadata
Assignees
Labels
Priority: MediumThis issue may be useful, and needs some attention.This issue may be useful, and needs some attention.Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.