Quantcast
Channel: HACK4NET 🤖 Pentest Tools and News
Viewing all articles
Browse latest Browse all 541

GitLeaks - Searches full repo history for secrets and keys 🔑

$
0
0
Alt Text

Installing

go get -u github.com/zricethezav/gitleaks

Usage and Explanation

Alt Text
./gitleaks [options] <url/path>
Gitleaks audits local and remote repos by running regex checks against all commits.

Options

usage: gitleaks [options] <URL>/<path_to_repo>

Options:
-u --user Git user mode
-r --repo Git repo mode
-o --org Git organization mode
-l --local Local mode, gitleaks will look for local repo in <path>
-t --temp Clone to temporary directory
-v --verbose Verbose mode, will output leaks as gitleaks finds them
--report-path=<STR> Save report to path, gitleaks default behavior is to save report to pwd
--clone-path=<STR> Gitleaks will clone repos here, default pwd
--concurrency=<INT> Upper bound on concurrent diffs
--since=<STR> Commit to stop at
--b64Entropy=<INT> Base64 entropy cutoff (default is 70)
--hexEntropy=<INT> Hex entropy cutoff (default is 40)
-e --entropy Enable entropy
-h --help Display this message
--token=<STR> Github API token
--stopwords Enables stopwords

Exit Codes

codeexplanation
0Gitleaks succeeded with no leaks
1Gitleaks failed or wasn't attempted due to execution failure
2Gitleaks succeeded and leaks were present during the audit
Use these codes to hook gitleaks into whatever pipeline you're running

Examples

gitleaks
Run audit on current working directory if .git is present
gitleaks --local $HOME/audits/some/repo
Run audit on repo located in HOME/audits/some/repo if .git is present
gitleaks https://github.com/some/repo
Run audit on github.com/some/repo.git and clone repo to
gitleaks --clone-path=$HOME/Desktop/audits https://github.com/some/repo
Run audit on github.com/some/repo.git and clone repo to $HOME/Desktop/audits
gitleaks --temp https://github.com/some/repo
Run audit on github.com/some/repo.git and clone repo to $TMPDIR (this will remove repos after audit is complete)
gitleaks --temp -u https://github.com/some-user
Run audit on all of some-user's repos. Again, --temp flag will clone all repos into $TMPDIR after be removed after audit


Viewing all articles
Browse latest Browse all 541

Trending Articles


Vimeo 10.7.1 by Vimeo.com, Inc.


Presence Quotes – Positive Quotes


Girasoles para colorear


Love Quotes Tagalog


EASY COME, EASY GO


5 Tagalog Relationship Rules


“Mali man na ikaw ay ibigin ko, akoy iibig padin sayo”


RE: Mutton Pies (frankie241)


Vimeo 10.7.0 by Vimeo.com, Inc.


FORECLOSURE OF REAL ESTATE MORTGAGE


UPDATE SC IDOL: TWO BECOME ONE


Pokemon para colorear


Sapos para colorear


OFW quotes : Pinoy Tagalog Quotes


Tropa Quotes


“BAHAY KUBO HUGOT”


Re:Mutton Pies (lleechef)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Long Distance Relationship Tagalog Love Quotes


HOY PANGIT, MAGBAYAD KA!



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>