Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
overfl0wd authored Jun 17, 2019
1 parent af9027a commit e69e9f4
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,30 @@
# secret-scan
This is a wrapper for Gittyleaks to add recursiveness and better output control.
This is a small wrapper for Gittyleaks to add recursiveness and better output control.

I wrote this because I had a need to scan multiple Git repositories w/ Gittyleaks. This script will iterate through the target directory, assuming each nested directory is a Git repo, and run GL on them. The output will then be written to the output directory, with the following format: <b>\<output dir>/\<scanned repo>_secrets.txt

If you couldn't tell, it requires [Gittyleaks](https://github.com/kootenpv/gittyleaks) to be installed.

## Usage
#### ./secretScan.sh \<target directory> \<output directory>

- ./secretScan.sh /repositories /repositories/secrets
<br />

### Assumed Directory Structure
>-> repositories/ <br />
----> repo1 <br />
----> repo2 <br />
----> repo3
<br />
### Example Output Structure
#### With command arguments: ./secretScan.sh /repositories /repositories/secrets
>-> repositories/ <br />
----> repo1 <br />
----> repo2 <br />
----> repo3 <br />
<b>----> secrets/ <br />
-------> repo1_secrets.txt <br />
-------> repo2_secrets.txt <br />
-------> repo3_secrets.txt <br />

0 comments on commit e69e9f4

Please sign in to comment.