
Git 저장소에서 흥미로운 문자열을 스캔하는 파이썬 스크립트
Reposcanner는 API 키와 같은 흥미로운 문자열을 찾기 위해 Git 저장소의 커밋 기록을 검색하는 Python 스크립트입니다. truffleHog에서 영감을 받았습니다.
Python Git 모듈이 필요합니다 (Debian에서는 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