Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byt3hx/jsleak
jsleak is a tool to find secret , paths or links in the source code during the recon.
https://github.com/byt3hx/jsleak
Last synced: 3 months ago
JSON representation
jsleak is a tool to find secret , paths or links in the source code during the recon.
- Host: GitHub
- URL: https://github.com/byt3hx/jsleak
- Owner: byt3hx
- Created: 2023-03-29T12:09:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-09T16:45:33.000Z (over 1 year ago)
- Last Synced: 2024-05-22T06:12:59.244Z (6 months ago)
- Language: Go
- Size: 7.59 MB
- Stars: 449
- Watchers: 4
- Forks: 41
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- On-Chain-Investigations-Tools-List - JSleak
README
### Description
I was developing jsleak during most of my free time for my own need.It is easy-to-use command-line tool designed to uncover secrets and links in JavaScript files or source code. The jsleak was inspired by [Linkfinder](https://github.com/GerbenJavado/LinkFinder) and regexes are collected from multiple sources.
### Features:
- Discover secrets in JS files such as API keys, tokens, and passwords.
- Identify links in the source code.
- Complete Url Function
- Concurrent processing for scanning of multiple Urls
- Check status code if the url is alive or not### Installation
If you are using old version of golang (go 1.15, 1.16) , use the following command to install jsleak.
```
go get github.com/channyein1337/jsleak
```If you are using latest version of go (1.17+) , use the following command to install.
```
go install github.com/channyein1337/jsleak@latest
```### Usage
To display help message
```
jsleak -h
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/help.png)
Secret Finder
```
echo http://testphp.vulnweb.com/ | jsleak -s
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/secret.png)
Link Finder
```
echo http://testphp.vulnweb.com/ | jsleak -l
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/linkfinder.png)
Complete Url
```
echo http://testphp.vulnweb.com/ | jsleak -e
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/completeURL.png)
Check Status
```
echo http://testphp.vulnweb.com/ | jsleak -c 20 -k
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/status_code.png)
You can also use multiple flags
```
echo http://testphp.vulnweb.com/ | jsleak -c 20 -l -s
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/multipleFlags.png)
Running with Urls
```
cat urls.txt | jsleak -l -s -c 30
```![](https://raw.githubusercontent.com/channyein1337/jsleak/main/images/file.png)
### To Do
- Scan secret on completeURL with 200 response.
- Add Version flag.
- Support scanning local files.
- Support scanning apk files.
- Update Regex.
- Support mulitple user agents.
- Support color output### Credit and thanks to all the following resources
- https://github.com/GerbenJavado/LinkFinder
- https://github.com/0xsha/GoLinkFinder