Effective Domain Management for Bug Bounty Programs Using SubScope

1 month ago 27
BOOK THIS SPACE FOR AD
ARTICLE AD

I want to add three domains to the tesla_wk program

./subscope.py domain add tesla.com tesla_wk
./subscope.py domain add teslamotors.com tesla_wk
./subscope.py domain add ts.la tesla_wk

Sometimes, you may want to add an out-of-scope domain to your program. In this case, you can use the --scope outscope option to add it. for example I want to add teslaenergy.services to tesla_wk program

./subscope.py domain add teslaenergy.services tesla_wk --scope outscope

You may have noticed that the --scope inscope option exists. This option is the default when you do not specify a scope in the command.

Now, I want to change the scope of one of the domains:

./subscope.py domain add ts.la tesla_wk --scope outscope

As you can see, the syntax for changing the scope is exactly the same as that for adding a domain

We have added four domains to the tesla_wk program. Now, I want to list information about a specific domain.

./subscope.py domain list tesla.com tesla_wk

To list all domains associated with tesla_wk, we can use the following command:

./subscope.py domain list \* tesla_wk

Why do the timestamps for the created_at and updated_at columns differ for ts.la? The timestamps differ because we changed the scope of ts.la. The updated_at timestamp reflects the time when this action was performed, which is useful for tracking changes.

If you want to list the in-scope domains, you can use the --scope inscope option to list these domains.

./subscope.py domain list \* tesla_wk --scope inscope

To list out-of-scope domains, you can use the --scope outscope option.

As a reminder, in the program section, we have two options: --brief for listing only the names of the domains, and --count for returning the total count of domains.

Note: When you use a filter (in this case, --scope), these options also work and return values based on the applied filter.

./subscope.py domain list \* tesla_wk --brief
./subscope.py domain list \* tesla_wk --count

./subscope.py domain list \* tesla_wk --scope inscope --brief
./subscope.py domain list \* tesla_wk --scope inscope --count

You can perform above actions on all domains across all programs by simply using an asterisk (*) instead of tesla_wk.

./subscope.py domain list \* \* --scope inscope --brief

To delete a specific domain from a program, you can use the following command:

./subscope.py domain delete ts.la tesla_wk

To delete out-of-scope domains from the tesla_wk program, you can use the following command:

./subscope.py domain delete \* tesla_wk --scope outscope

You can perform the above actions on all domains across all programs by using an asterisk (*) instead of tesla_wk. The following command will delete all domains from all programs:

./subscope.py domain delete \* \*
Read Entire Article