CollectJuices is a powerful tool designed to automate the process of fetching, analyzing, and recursively processing JavaScript files to discover URLs and secrets. Leveraging the capabilities of the JSluice tool and advanced Python libraries, CollectJuices is an essential tool for cybersecurity professionals.
Before using CollectJuices, ensure you have the following:
- Operating System: Linux, macOS, or Windows (with minor adjustments).
- Python 3.x: Required for running the script.
- JSluice Tool: Required for analyzing JavaScript files.
- Linux:
sudo apt-get update sudo apt-get install python3 python3-pip
- macOS:
brew install python3
- Windows: Download and install Python from the official website.
Install the necessary Python packages:
pip3 install aiohttp argparse
- Clone the JSluice repository:
git clone https://github.com/exfil0/collectjuices.git
- Navigate to the JSluice directory and follow the installation instructions provided in the repository.
-
Run the Script:
echo "https://example.com/script.js" | python3 CollectJuices.py
This command processes the specified URL, runs CollectJuices, and outputs the results.
-
Modes of Operation:
- To analyze URLs only:
echo "https://example.com/script.js" | python3 CollectJuices.py -m endpoints
- To analyze secrets only:
echo "https://example.com/script.js" | python3 CollectJuices.py -m secrets
- To analyze both URLs and secrets (default):
echo "https://example.com/script.js" | python3 CollectJuices.py -m both
- To analyze URLs only:
-
Verbose Mode: Enable verbose output for detailed processing information:
echo "https://example.com/script.js" | python3 CollectJuices.py -v
-
Using a File: You can process multiple URLs by providing a file containing the URLs:
cat urls.txt | python3 CollectJuices.py
-
Manual Input: You can manually input URLs by echoing them into the script:
echo -e "https://example.com/script1.js https://example.com/script2.js" | python3 CollectJuices.py
-
URLs:
- The script outputs a sorted list of discovered URLs when run in
endpoints
orboth
mode.
- The script outputs a sorted list of discovered URLs when run in
-
Secrets:
- The script outputs discovered secrets when run in
secrets
orboth
mode. Secrets are sorted by severity and uniqueness.
- The script outputs discovered secrets when run in
Using this script responsibly is critical. Unauthorized access or interception of data may violate legal regulations. Always obtain proper authorization before conducting any form of scanning or data analysis on external systems.
This manual provides a comprehensive guide for installing, configuring, and using the CollectJuices script. By following these instructions, you can efficiently analyze JavaScript files for URLs and secrets, making this tool a valuable asset in your cybersecurity toolkit.
For further assistance or advanced configurations, refer to the documentation of each tool or seek help from the cybersecurity community.