这是indexloc提供的服务,不要输入任何密码
Skip to content

Filter the output based on a given scope #575

@forgedhallpass

Description

@forgedhallpass

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 pattern

Example 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.com

Metadata

Metadata

Labels

Priority: MediumThis issue may be useful, and needs some attention.Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Type: EnhancementMost issues will probably ask for additions or changes.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions