Skip to content

Commit

Permalink
making the package a callable libarry, and adding an org search script
Browse files Browse the repository at this point in the history
  • Loading branch information
dxa4481 committed Feb 28, 2017
1 parent c10d6b9 commit 512d8f4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions scripts/searchOrg.py
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")
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='truffleHog',
version='1.0.0',
version='1.0.1',
description='Searches through git repositories for high entropy strings, digging deep into commit history.',
url='https://github.com/dxa4481/truffleHog',
author='Dylan Ayrey',
Expand Down
1 change: 1 addition & 0 deletions truffleHog/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from truffleHog import find_strings

0 comments on commit 512d8f4

Please sign in to comment.