
سكربت بايثون لفحص مستودعات Git بحثًا عن سلاسل نصية مثيرة للاهتمام
Reposcanner هو سكربت بايثون للبحث في تاريخ الالتزامات (commit history) لمستودعات Git عن سلاسل نصية مثيرة للاهتمام مثل مفاتيح API، مستوحى من truffleHog.
وحدة Git الخاصة ببايثون مطلوبة (python3-git على دبيان).
docker build -t reposcanner .
docker run -it --rm reposcanner -h
docker run -it --rm reposcanner -r <repository>
./reposcanner -r <repository>
الخيارات:
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
مثال:
./reposcanner.py -r https://github.com/Dionach/reposcanner -v -a -c 30