EverythingJS
Overview
EverythingJS is a versatile CLI tool designed to extract JavaScript links from URLs or web pages, apply custom regex patterns to these files, and organize the results in a structured, easy-to-use JSON format. It is built for efficiency, with multi-threading support, the ability to filter irrelevant links, and customizable HTTP headers for requests. The tool also provides flexibility in saving results, whether in a JSON file, a database, or by monitoring JS files for changes.
Installation
Install EverythingJS via pip:
pip install everythingjs
Features
- Extract JavaScript links from a URL or a list of URLs using the
-iflag. - Automatically convert relative links into absolute URLs.
- Apply user-defined regex patterns to extract relevant matches from each JavaScript file with the
-sflag. - Filter out unwanted JS links using a predefined "nopelist" file.
- Add custom headers for HTTP requests using the
-Hflag to handle server configurations or bypass restrictions. - Structure the results in a clean JSON format, categorizing JavaScript links and their associated regex matches, with the
-oflag to save them. - Speed up processing by running tasks concurrently for multiple URLs using multi-threading.
- Save the extracted JavaScript links and matches to a JSON file or database using the
-oor-storeflags. - Launch a simple web server to view and navigate through the extracted results using the
-fflag. - Send updates on the process to a Slack channel via a webhook with the
-slackflag. - Optionally save the JavaScript files locally for further analysis using the
-sjsflag. - Monitor JS files for changes and trigger actions like Slack notifications or updates to the database using the
-mflag.
Usage
Command-Line Arguments
usage: everythingjs [-h] [-i INPUT] [-db] [-f SERVER] [-o OUTPUT] [-v] [-H HEADER] [-s SECRETS_FILE] [-sjs SAVE_JS] [-store] [-m MONITOR] [-slack SLACK_WEBHOOK] [-j] [-silent]
Extract JS links from a URL or a list of URLs
options:
-h, --help show this help message and exit
-i INPUT, --input INPUT
URL or file containing URLs
-db, --from_db consume input from db, past results
-f SERVER, --server SERVER
Provide output to launch web server
-o OUTPUT, --output OUTPUT
Output JSON file to save results (optional, prints to CLI if not specified)
-v, --verbose Enable verbose logging
-H HEADER, --header HEADER
Add custom header (can be used multiple times)
-s SECRETS_FILE, --secrets_file SECRETS_FILE
Add your secrets.regex file containing compatible secrets file
-sjs SAVE_JS, --save_js SAVE_JS
Save JS files to specific location.
-store, --save_db Save contents to database in ~/.everythingjs/scan_results.db
-m MONITOR, --monitor MONITOR
Monitor the process at specified intervals (e.g., 2s, 2m, 1d, 4w)
-slack SLACK_WEBHOOK, --slack_webhook SLACK_WEBHOOK
Pass the slack webhook url where you want to post the message updates
-j, --jsonl print output in jsonl format in stdout
-silent, --silent dont print anything except output
Example Usage
1. Extract JavaScript links from a single URL:
everythingjs -i https://example.com
2. Extract JavaScript links from a file of URLs:
everythingjs -i urls.txt
3. Save the output to a JSON file:
everythingjs -i https://example.com -o results.json
4. Enable verbose logging:
everythingjs -i https://example.com -v
5. Add custom headers:
everythingjs -i https://example.com -H "User-Agent: CustomAgent" -H "Authorization: Bearer TOKEN"
6. Save beautified javascript to a local directory:
everythingjs -i urls.txt -sjs ./saved_js
7. Launch a web server to navigate through results using a web ui (after generating output.json)
everythingjs -f output.json
WEB UI showing api endpoints, secrets, links, dom sinks, JS search.
search through the beautified JS files (works only if -sjs is used when running command)
8. Monitoring JS files for changes on a given input and send udpates to slack
everythingjs -i https://example.com -slack https://hooks.slack.com/services/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
9. Monitor JS files on all domains saved in DB and send updates to slack
everythingjs -db -slack https://hooks.slack.com/services/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
10. Monitor JS files on all domains saved in DB and print jsonl output
everythingjs -db jsonl
Output
- Outputs JSON in the format:
{
"https://example.com": {
"js_links": [
"https://example.com/static/script1.js",
"https://example.com/static/script2.js"
],
"regex_matches": {
"https://example.com/static/script1.js": ["match1", "match2"],
"https://example.com/static/script2.js": ["match3"]
}
}
}
- Domains without JavaScript links are excluded from the output.
Credits
- Borrowed templates from ProjectDiscovery nuclei templates (to all those who contributed to them)
- @GerbenJavado for inspring with Linkfinder and Regex expressions
License
MIT License
Metadata
Release files for everythingjs 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| everythingjs-0.2.6.tar.gz | 26.8 kB | Without provenance | Details for everythingjs-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| everythingjs-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for everythingjs-0.2.6-py3-none-any.whl |
Total release size: 52.2 kB
Release files / everythingjs-0.2.6.tar.gz
| Download URL | everythingjs-0.2.6.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
47b076ae2610b150563ca3c52601a8d5f8d4b544dbbc335f4439e2ba2fc815d9
|
|
BLAKE2b-256 checksum How to use checksums |
459776f58799d8895761434471cf9352cfaba3d1783a42d6d1512bf03894bb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / everythingjs-0.2.6-py3-none-any.whl
| Download URL | everythingjs-0.2.6-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75e336b8bcb2396cedbd808d175dc56938047f926f54d882429357539a6f824d
|
|
BLAKE2b-256 checksum How to use checksums |
688649bf4fa667777ae9160ca055ec1d3f3c873cd328bf68dd8b9ae94e3fd09f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for everythingjs 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.