Skip to content

This is a wrapper for Gittyleaks to add recursiveness and better output control.

Notifications You must be signed in to change notification settings

overfl0wd/secret-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cf9f51c · Jun 24, 2019

History

5 Commits
Jun 17, 2019
Jun 24, 2019

Repository files navigation

secret-scan

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: <output dir>/<scanned repo>_secrets.txt

If you couldn't tell, it requires Gittyleaks to be installed.

Usage

./secretScan.sh <target directory> <output directory>

  • ./secretScan.sh /repositories /repositories/secrets

Assumed Directory Structure

-> repositories/
----> repo1
----> repo2
----> repo3


Example Output Structure

With command arguments: ./secretScan.sh /repositories /repositories/secrets

-> repositories/
----> repo1
----> repo2
----> repo3
----> secrets/
-------> repo1_secrets.txt
-------> repo2_secrets.txt
-------> repo3_secrets.txt

About

This is a wrapper for Gittyleaks to add recursiveness and better output control.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages