
Script Python per scansionare repository Git per stringhe interessanti
Reposcanner è uno script Python per cercare nella cronologia dei commit di repository Git stringhe interessanti come chiavi API, ispirato da truffleHog.
Il modulo Git di Python è richiesto (python3-git su Debian).
docker build -t reposcanner .
docker run -it --rm reposcanner -h
docker run -it --rm reposcanner -r <repository>
./reposcanner -r <repository>
Opzioni:
optional arguments:
-h, --help show this help message and exit
-r REPO, --repo REPO Repo to scan
-c COUNT, --count COUNT Number of commits to scan (default all)
-e ENTROPY, --entropy ENTROPY Minimum entropy to report (default 4.3)
-l LENGTH, --length LENGTH Maxmimum line length (default 500)
-b BRANCH, --branch BRANCH Scan a specific branch
-v, --verbose Verbose output
Esempio:
./reposcanner.py -r https://github.com/Dionach/reposcanner -v -a -c 30