jsfuzzer is a fast, concurrency-enabled CLI tool written in Go that scans JavaScript files for:
- ๐ API keys, tokens, secrets
- ๐ Endpoints and paths
- ๐ง Interesting strings (IPs, JWTs, etc.)
- โ Scan a single URL or a list of URLs
- โ Read URLs from piped input
- โ Extract secrets and endpoints using built-in regex
- โ
Custom regex support with
-regex - โ Add custom HTTP headers (e.g., Authorization)
- โ Prepend base URLs to relative endpoints
- โ Return Email Adress
- โ Seaarch for 3rd party links (Google API, Stripe, Sentry, etc)
- โ Output to file or stdout
- โ
Fully deduplicated output, easy to pipe to
anew,notify, etc.
go install github.com/byteoverride/jsfuzzer@latestjsfuzzer [flags]| Task | Command Example |
|---|---|
| Scan single JS URL | jsfuzzer -u https://site.com/main.js |
| Scan from file | jsfuzzer -l jsurls.txt |
| Scan with piped input | cat jsurls.txt | jsfuzzer |
| Use custom regex | jsfuzzer -u https://site.com/main.js -r '^/api/' |
| Add custom headers | jsfuzzer -u https://site.com/js --headers "Authorization:Bearer X,User-Agent:Hacker" |
| Prepend base to endpoints | jsfuzzer -u https://site.com/js --base https://site.com |
| Save results to file | jsfuzzer -u https://site.com/main.js -o results.txt |
- The --base is used to append the base url to the endpoint output
- Take the IPs found with a grain of Salt its regex isnt perfect verfy the IP by searching it in the JS and confirm
| Flag | Description |
|---|---|
-u, --url |
Single JavaScript URL to scan |
-l, --list |
File containing list of JS URLs |
-o, --output |
Output file to write results |
-r, --regex |
Custom regex to filter output (e.g. ^/api/) |
--headers |
Custom HTTP headers: Header1:Value1,Header2:Value2 |
--base |
Base URL to prepend to relative endpoints |
-h, --help |
Show help message |