Credential Exposure Scan Script (masked, safe output)
Read-only scan of a folder, code repository or shared drive for passwords, API keys, tokens, private keys and connection strings left in files. Every value is masked (first 4 characters then ****), so the report itself never leaks a secret.
Windows (.bat)Linux (.sh)macOS (.sh) USD 3.00 for all versions · read-only · 1 hour 30 minutes to download
Pay via M-Pesa, Airtel Money and local mobile money across East Africa, or by Visa / Mastercard. How to pay
| Script | Credential Exposure Scan Script (masked, safe output) |
|---|---|
| Platform | Windows, Linux, macOS (folders, code, shared drives) |
| Audit area | Credential exposure |
| Purpose | Finds secrets stored in plain text so they can be rotated and moved to a secrets manager, without copying the secrets into the audit evidence. |
| Price | USD 3.00, all platform versions |
Prerequisites
- Read access to the folder to scan
- Windows: PowerShell 5.1 (built in). Linux/macOS: grep and awk (built in)
What the script checks
- Private keys, AWS access keys, Google API keys, GitHub and Slack tokens, Stripe/Paystack secret keys, JWTs
- Passwords inside URLs and connection strings
- Password, secret, token, API key and M-Pesa passkey assignments in code and config
- .env files and where they are
- Key files, database dumps and backups lying in the folder
- The full script for Windows, Linux, macOS
- How to open the correct console, and the permissions it needs (least privilege)
- Step-by-step instructions
- The expected output and how to interpret it
Also included in the zip as README-how-to-run.txt. Follow the audit process guide for scope, authorisation and evidence.
Safe by design
- Read-only: installs nothing and changes no settings.
- Sends nothing to our servers; results stay on your computer.
- Secrets are masked and password hashes are never printed.
- Plain text: open it in any editor and check every line before running it.
Also known as: credential exposure scan, secret scanning script, find passwords in files script, api key leak scan, hardcoded credentials check, private key search script, connection string scan, secrets in code audit.
Templates to use with this script
More audit scripts
Questions
Is the credential exposure scan script safe to run?
Yes. It only reads information and writes its results next to itself. It installs nothing, changes no settings and sends nothing to our servers. Secrets it finds are masked, and password hashes are never printed. It is plain text: open it in any editor to check every line before you run it.
How do I get the script?
Click "Get script", pay USD 3.00 through APOPS Pay (M-Pesa, Airtel Money, local mobile money across East Africa, or Visa / Mastercard payment), then download the Windows, Linux, macOS versions. One payment covers every operating system.
How long can I download it?
For 1 hour 30 minutes after payment, as often as you like. You are told this before you pay. Keep the zip: the script itself never expires.
Do I need administrator rights?
Some details need administrator or sudo rights. The steps say when.
What do I get after paying?
The full script for each platform, how to open the correct console, the permissions it needs, step-by-step instructions, the expected output and how to read the results. They are shown on this page and included as a README in the zip.