forked from trufflesecurity/trufflehog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
making the package a callable libarry, and adding an org search script
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
Credit for this code goes to https://github.com/ryanbaxendale | ||
via https://github.com/dxa4481/truffleHog/pull/9 | ||
""" | ||
import requests | ||
import truffleHog | ||
|
||
def get_org_repos(orgname): | ||
response = requests.get(url='https://api.github.com/users/' + orgname + '/repos') | ||
json = response.json() | ||
for item in json: | ||
if item['private'] == False: | ||
print('searching ' + item["html_url"]) | ||
truffleHog.find_strings(item["html_url"]) | ||
|
||
get_org_repos("Netflix") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from truffleHog import find_strings |