
Automated Python scanner to detect hardcoded secrets (Private Keys, API Tokens) in client-side JavaScript files.
JS Secret Hunter is an advanced Python tool designed for security researchers to automate the detection of hardcoded secrets in client-side JavaScript.
Unlike simple scanners, V2 includes a dynamic crawler that parses the HTML of the target website to extract all loaded JavaScript files automatically, ensuring comprehensive coverage.
<script src> tags automatically.config.js).git clone [https://github.com/SohelYousef/JS-Secret-Hunter.git](https://github.com/SohelYousef/JS-Secret-Hunter.git)
cd JS-Secret-Hunter
pip install requests beautifulsoup4
## Features
- 🔍 **Regex-Based Detection:** Scans for Ethereum Private Keys, AWS Keys, Google API Keys, and generic tokens.
- ⚡ **Fast Scanning:** Checks common file paths automatically.
- 🛡️ **Safe:** Identifies secrets without exploiting them.
## Installation
```bash
git clone [https://github.com/SohelYousef/JS-Secret-Hunter.git](https://github.com/SohelYousef/JS-Secret-Hunter.git)
cd JS-Secret-Hunter
pip install requests
python3 scanner.py --url [https://target-website.com](https://target-website.com)
Disclaimer
This tool is for educational purposes and authorized security assessments only. The author is not responsible for any misuse.