logo
DATABASE RESOURCES PRICING ABOUT US

Jsleak - A Go Code To Detect Leaks In JS Files Via Regex Patterns

Description

[![](https://1.bp.blogspot.com/-fMvlStr5Pkk/YRvgsg3WiFI/AAAAAAAAqtM/aROefZ6A8ycBvdLqdeAd6IoAhWV8bOHNACNcBGAsYHQ/s16000/jsleak.png)](<https://1.bp.blogspot.com/-fMvlStr5Pkk/YRvgsg3WiFI/AAAAAAAAqtM/aROefZ6A8ycBvdLqdeAd6IoAhWV8bOHNACNcBGAsYHQ/s583/jsleak.png>) jsleak is a tool to identify sensitive data in JS files through regex patterns. Although it's built for this, you can use it to identify anything as long as you have a regex pattern for it. **How to install** Directly: {your package manager} install pkg-config libpcre++-dev go get github.com/0xTeles/jsleak/v2/jsleak Compiled: [release page](<https://github.com/0xTeles/jsleak/releases/tag/jsleak_v2.1> "release page" ) **How to use** Usage of jsleak: -json string [+] Json output file -pattern string [+] File contains patterns to test -verbose [+] Verbose Mode **Demo** cat urls.txt | jsleak -pattern regex.txt [+] Url: http://localhost/index.js [+] Pattern: p([a-z]+)ch [+] Match: peach **To Do** * Fix output * Add more patterns * Add stdin * Implement [JSON](<https://www.kitploit.com/search/label/JSON> "JSON" ) input * Fix patterns * Implement PCRE **Regex list** * <https://github.com/odomojuli/RegExAPI> * <https://github.com/KaioGomesx/JSScanner/blob/main/regex.txt> **Inspired by** * Necessity * <https://github.com/0x240x23elu/JSScanner> * <https://github.com/KaioGomesx/JSScanner> **Thanks** [@fepame](<https://twitter.com/Highustavo> "@fepame" ), [@gustavorobertux](<https://twitter.com/gustavorobertux> "@gustavorobertux" ), [@Jhounx](<https://github.com/Jhounx> "@Jhounx" ), [@arthurair_es](<https://twitter.com/arthurair_es> "@arthurair_es" ) **[Download Jsleak](<https://github.com/0xTeles/jsleak> "Download Jsleak" )**