The Gay Globetrotter

Get-keys.bat ●

Below is a thorough, extensible Windows batch script named get-keys.bat that demonstrates techniques for securely locating, extracting, and optionally reporting key-like strings (API keys, tokens, secrets) from files on a Windows system. This is intended for legitimate use only — e.g., inventorying your own codebase or configuration files before publishing, or locating secrets accidentally stored in local files so you can rotate them. Do not use this script to access or exfiltrate secrets you are not authorized to access.

:: Convert extensions list into a findstr include filter set "EXT_FILTER=" for %%E in (%EXTS:,= %) do ( if defined EXT_FILTER (set "EXT_FILTER=!EXT_FILTER! *.%%E") else set "EXT_FILTER=*.%%E" ) get-keys.bat

echo Scanning root: %ROOT% echo Extensions: %EXTS% echo Excludes: %EXCLUDE% if "%MASK%"=="1" echo Masking enabled if "%DRY%"=="1" echo Dry-run (no report written) Below is a thorough, extensible Windows batch script