Skip to content

To use hackJS, specify a target URL that contains JavaScript files you want to analyze. The tool will fetch these JavaScript files, extract embedded links and subdomains.

Notifications You must be signed in to change notification settings

everythingBlackkk/hackJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hackJS

hackJS is a tool designed to analyze JavaScript files from a specified URL or a list of URLs to extract useful information such as links, subdomains, and sensitive data. It can also work with wordlists to search for specific keywords within JavaScript files. This tool helps in discovering hidden resources and potential security issues on websites.


Features

  • Extract Links: Finds and filters all links in JavaScript files.
  • Extract Subdomains: Identifies subdomains mentioned in JavaScript files.
  • Find Sensitive Data: Searches for sensitive words in JavaScript files using a provided or default wordlist.
  • Output Results: Saves results to a file and displays them on the console.
  • Handle Multiple URLs: Can process a single URL or multiple URLs from a file.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/everythingBlackkk/hackJS.git
  2. Navigate to the hackJS directory:

    cd hackJS
  3. Tool setup :

     chmod +x install_hackJS.sh
    ./install_hackJS.sh
  4. Run Tool :

     hackJS

Usage

 hackJS -u <URL>
 hackJS -l <file>
 hackJS -l url.txt -w sensitive-world-list.txt

Options

  • -u : Specifies the URL to scan.
  • -l : Specifies a file containing a list of URLs to scan.
  • -w : Specifies a custom wordlist file to search for sensitive data.

Output

The results are categorized and saved into a result directory. Each category includes:

Sample Output

===Links===
https://example.com/page1
https://example.com/page2
Total Links found: 2

===Subdomains===
sub.example.com
api.example.com
Total Subdomains found: 2

===JS Files===
https://example.com/script1.js
https://example.com/script2.js
Total JS Files found: 2

===Sensitive Data===
🔹 api_keyhttps://example.com/script1.js
🔹 tokenhttps://example.com/script2.js
Total Sensitive Data found: 2

Contact

For any questions or feedback, please contact: Name: Yassin Abd-elrazik GitHub: everythingBlackkk

Contributing

Contributions are welcome! Fork the repository, make your changes, and submit a pull request.

About

To use hackJS, specify a target URL that contains JavaScript files you want to analyze. The tool will fetch these JavaScript files, extract embedded links and subdomains.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published