NexaJS
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.
: Identifies API keys, JWT tokens, URLs, emails, and passwords in JavaScript files.
: Detects the usage of popular libraries like jQuery, React, AngularJS, and Vue.js, and checks for vulnerable versions.
: Identifies obfuscated JavaScript code.
: Measures the complexity of JavaScript code based on lines of code and control structures.
: Detects external API calls made from the JavaScript files.
: Identifies the usage of deprecated JavaScript APIs.
: Detects scripts related to GDPR and privacy compliance.
1.Clone the repository:
git clone https://github.com/Ly0kha/NexaJS.git
cd NexaJS
- Install the required dependencies:
pip install -r requirements.txt
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
--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
ortext
, 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.
python nexajs.py --url https://example.com --output report.json --format json --timeout 10 --retries 3 --exclude "example.com" --verbose
For any inquiries or issues, please open an issue on the GitHub repository