Skip to content
/ NexaJS Public

NexaJS is a Python script that scrapes and analyzes JavaScript files from websites. It detects sensitive information, API endpoints, and suspicious keywords, generating detailed reports in JSON or text format. Ideal for developers and security analysts, NexaJS helps identify vulnerabilities and ensure code quality.

Notifications You must be signed in to change notification settings

Ly0kha/NexaJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

NexaJS

Python License Contributions

NexaJS is a Python script designed to scrape and analyze JavaScript files from a specified website. It detects various patterns such as sensitive information, API endpoints, and suspicious keywords, and generates a comprehensive report in JSON or text format.

Features

  • Sensitive Information Detection : Identifies API keys, JWT tokens, URLs, emails, and passwords in JavaScript files.
  • Library Detection : Detects the usage of popular libraries like jQuery, React, AngularJS, and Vue.js, and checks for vulnerable versions.
  • Obfuscated Code Detection : Identifies obfuscated JavaScript code.
  • Code Complexity Measurement : Measures the complexity of JavaScript code based on lines of code and control structures.
  • External API Call Analysis : Detects external API calls made from the JavaScript files.
  • Deprecated API Detection : Identifies the usage of deprecated JavaScript APIs.
  • GDPR/Privacy Compliance : Detects scripts related to GDPR and privacy compliance.

Installation

1.Clone the repository:

    git clone https://github.com/Ly0kha/NexaJS.git
    cd NexaJS
  1. Install the required dependencies:
    pip install -r requirements.txt

Usage

Run the script with the necessary arguments:

python nexajs.py --url <website_url> --output <output_file> --format <output_format> --timeout <timeout> --retries <retries> --exclude <exclude_patterns> --verbose

Arguments

  • --url: The URL of the website to scrape.
  • --output: The output file for the report (default: report.json).
  • --format: The format of the output report (json or text, default: json).
  • --timeout: Timeout for network requests (default: 10 seconds).
  • --retries: Number of retries for network requests (default: 3).
  • --exclude: Patterns to exclude from analysis.
  • --verbose: Enable verbose output.

Example

python nexajs.py --url https://example.com --output report.json --format json --timeout 10 --retries 3 --exclude "example.com" --verbose

Contact

For any inquiries or issues, please open an issue on the GitHub repository

About

NexaJS is a Python script that scrapes and analyzes JavaScript files from websites. It detects sensitive information, API endpoints, and suspicious keywords, generating detailed reports in JSON or text format. Ideal for developers and security analysts, NexaJS helps identify vulnerabilities and ensure code quality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages