KeyHound is an advanced JavaScript secrets hunting tool that sniffs out sensitive information from JavaScript files across web applications. Like a trained hunting dog, it tracks down secrets through web archives and crawling results, specializing in detecting API keys, credentials, and other sensitive data.
- 🐾 Persistent tracking through waybackurls and katana
- 👃 Advanced pattern sniffing for sensitive data
- 🦮 Automatic path finding and tool installation
- 🎯 High-precision concurrent scanning
- 🦴 Discovered secrets including:
- API Keys & Tokens
- AWS Keys
- Private Keys
- Database Connection Strings
- Internal Endpoints
- JWT Tokens
- Credentials
- And more...
- Ensure Go 1.20 or later is installed:
go version
- Fetch KeyHound:
git clone https://github.com/elit3pwner/KeyHound.git
cd KeyHound
- Install dependencies:
go mod init keyhound
go mod tidy
- Train your hound:
go build -o keyhound
KeyHound will automatically fetch these tools, but you can manually install them:
- waybackurls:
go install github.com/tomnomnom/waybackurls@latest
- katana:
go install github.com/projectdiscovery/katana/cmd/katana@latest
- Release the hound:
./keyhound
-
Choose your hunting mode:
- Use pre-collected trails (existing waybackurls and katana files)
- Start a fresh hunt on a new domain
-
For a fresh hunt:
- Specify the target domain
- Set the number of concurrent hunting threads
-
KeyHound will:
- Track URLs using waybackurls and katana
- Sniff out JavaScript files
- Hunt for sensitive information
- Store its findings in the
output
directory
KeyHound organizes its findings in the output
directory:
waybackurls_domain.txt
: The tracked URL pathskatana_domain.txt
: Additional discovered trailsjsfiles_domain.txt
: Located JavaScript filessensitive_findings.txt
: The valuable discoveries
URL: https://example.com/assets/main.js
Pattern: api[_-]?key
Match: api_key: "abcd1234xyz"
---
URL: https://example.com/js/config.js
Pattern: mongodb(\+srv)?:\/\/[^\s<>"']+
Match: mongodb://admin:password@localhost:27017/db
KeyHound is designed for security research and educational purposes only. Always obtain proper authorization before unleashing KeyHound on any domains. The authors are not responsible for any misuse or damage caused by this tool.
Got ideas to make KeyHound a better hunter? Contributions are welcome! Feel free to submit a Pull Request.
KeyHound is licensed under the MIT License - see the LICENSE file for details.
- tomnomnom for waybackurls
- projectdiscovery for katana
Created with ❤️ by elit3pwner