Skip to main content

Find secrets in js files from a given url

Project description

jsSecrets

jsSecrets it is a tool that goes to a given url and scan the html code in order to find any js file to seek for nasty secrets within them.

Installation

PyP

 pip install jssecrets

verify

jssecrets --help

From GitHub

git clone https://github.com/diegoespindola/jsSecrets.git
cd jsSecrets
pip install -r requirements.txt

verify

python3 jssecrets --help

Usage

jssecrets --help

usage: jsSecrets [-h] [-u URL] [-r REQ] [-v VERBOSE]

search for secrets in Js files

options:
-h, --help            show this help message and exit
-u, --url URL         Url to hunt for js files and scan the secrets within, ie: https://brokencrystals.com/
-r, --req REQ         Raw request File Path
-v, --verbose VERBOSE

Raw Request File usage

In order to reuse the cookies and other configuration you can use a raw request file to connect to the url.

Instead of use the -u option, you can use the -r option with a raw request file, like the request in caido, or burpsuite

the raw request file must look similar to this:

GET / HTTP/1.1
Host: brokencrystals.com
Connection: keep-alive
sec-ch-ua: "Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Linux"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br, zstd
Accept-Language: en-US,en;q=0.9
Cookie: connect.sid=MLefXrUukm1SAKlCMfxeE7ZkUoG7flj3.c6qWoC5p%2FL6RMPEzs4FPOhLgseH5T0KC9c%2FRCojRf1Y
If-None-Match: W/"bd7-196cf51b668"
If-Modified-Since: Wed, 14 May 2025 15:02:41 GMT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jssecrets-1.0.6.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jssecrets-1.0.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file jssecrets-1.0.6.tar.gz.

File metadata

  • Download URL: jssecrets-1.0.6.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jssecrets-1.0.6.tar.gz
Algorithm Hash digest
SHA256 9fadf2b400275cf2d78e469caefb52c9a1e4e58f41a4907e07c2e2b9eee8f77d
MD5 9b49b356e7fd9ecb64b69d6c4cdb792a
BLAKE2b-256 7a9082f50e5854e036d9cfb3af37dd3f00bb66fbb2c67c62c848c4a5c9512c3e

See more details on using hashes here.

File details

Details for the file jssecrets-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: jssecrets-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jssecrets-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 65cd7ae3f053299618f3694b2dc9a79307703f6d9380dd2cff6a3dddea12e2c8
MD5 65a8db87558d30dd3b30ebc45f3d1c3b
BLAKE2b-256 29be4616dcb630f03bf742e2f460cc813ca12a8d0d904385657191216daf4b20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page