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

support to load provider keys from env #868

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Conversation

tarunKoyalwar
Copy link
Member

Proposed changes

  • it is now possible to load api keys of providers/sources from env by specifying them in provider-config.yaml file

example:

binaryedge:
  - $BINARY_EDGE_API_KEY
$ ./subfinder -pc ~/test-templates/testfile.yaml -d hackerone.com -s binaryedge -v

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/

		projectdiscovery.io

[INF] Current subfinder version v2.5.9 (latest)
[INF] Loading provider config from /Users/tarun/test-templates/testfile.yaml
[DBG] API key(s) found for binaryedge.
[DBG] Selected source(s) for this search: binaryedge
[INF] Enumerating subdomains for hackerone.com
[binaryedge] mta-sts.managed.hackerone.com
[binaryedge] mta-sts.hackerone.com
[binaryedge] mta-sts.forwarding.hackerone.com
[binaryedge] a.ns.hackerone.com
[binaryedge] b.ns.hackerone.com
[binaryedge] docs.hackerone.com
[binaryedge] go.hackerone.com
[binaryedge] info.hackerone.com
[binaryedge] links.hackerone.com
[binaryedge] support.hackerone.com
[binaryedge] api.hackerone.com
[binaryedge] www.hackerone.com
mta-sts.hackerone.com
mta-sts.forwarding.hackerone.com
a.ns.hackerone.com
docs.hackerone.com
go.hackerone.com
support.hackerone.com
api.hackerone.com
www.hackerone.com
mta-sts.managed.hackerone.com
b.ns.hackerone.com
info.hackerone.com
links.hackerone.com
[INF] Found 12 subdomains for hackerone.com in 997 milliseconds 794 microseconds

@tarunKoyalwar tarunKoyalwar requested a review from ehsandeep June 5, 2023 14:31
@tarunKoyalwar tarunKoyalwar linked an issue Jun 5, 2023 that may be closed by this pull request
@tarunKoyalwar tarunKoyalwar self-assigned this Jun 5, 2023
@ehsandeep ehsandeep merged commit 5be968f into dev Jun 5, 2023
@ehsandeep ehsandeep deleted the issue-865-loadkeyfrom-env branch June 5, 2023 14:51
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.

Reading keys from environment variables
2 participants