Skip to content

abhi-recon/jssecretscanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

JS Secret Scanner

The JS Secret Scanner is a Python script designed to search for sensitive data patterns within javascript code obtained from a list of links. The script uses regular expressions to identify various types of sensitive information present in JavaScript files, such as API keys, access tokens, and other confidential data.

Table of Contents

Description

The JS Secret Scanner script fetches JavaScript content from provided links and searches for matches using a set of embedded regular expressions. If matches are found, it reports the sources of the matches and the type of sensitive information detected.

Key Features

  • Efficiently searches for various types of sensitive information in JavaScript files using regular expressions.
  • Provides descriptions for different types of sensitive data patterns.
  • Supports parallel processing using threading to speed up scanning.
  • Offers a verbose mode to display detailed progress and messages.

Usage

  1. Clone or download this repository to your local machine.

  2. Install the required Python libraries by running: pip install requests colorama tqdm argparse

  3. run the command: python jssecretscanner.py -i jslinks.txt

  4. The script will process the links, search for sensitive data patterns in JavaScript files, and display the results.

Prerequisites

  • Python 3.x installed on your system.
  • Internet connectivity to fetch content from the provided links.
  • Basic understanding of regular expressions and handling sensitive data.

Installation

  1. Clone this repository: git clone https://github.com/abhi-recon/jssecretscanner.git

  2. Change directory: cd jssecretscanner

  3. install requirements: pip install -r requirements.txt

Usage Example

Suppose you have a file named jslinks.txt containing the following links:

https://example.com/main1.js

https://example.com/main2.js

https://example.com/main3.js

To scan these links for sensitive data in JavaScript files, you can run the script with the following command:

python jssecretscanner.py -i jslinks.txt

The script will start processing the links, analyzing JavaScript content, and display any matches it finds.

Created By

Abhishek Karle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages