JavaScript analysis for the Klyrek ecosystem
Project description
klyrek-js
JavaScript analysis. Pure text analysis — takes an already-fetched JS source string (from
klyrek-http/klyrek-crawler) rather than making its own requests, so this package has no
network dependency at all.
endpoints— extracts API-shaped path and URL string literals referenced in the source ("/api/v1/users","https://api.target.com/graphql") asEndpointrecords.secrets— regex-based detection of hardcoded credentials (AWS keys, Stripe live keys, Slack tokens, GitHub PATs, private key blocks, genericapi_key/secretassignments), asFindingrecords with the matched value masked (sk_l...3f9a) rather than stored in full.sourcemap— detects a//# sourceMappingURL=reference, which (if the.mapfile is publicly reachable) can reconstruct original unminified source.
Third-party SDK/library detection (Stripe.js, Sentry, Google Analytics, ...) deliberately isn't
duplicated here — klyrek-tech's signature-based fingerprint() already works on any response
body, JS included.
from klyrek_js.analyze import analyze_js
result = analyze_js(js_source, js_url="https://target.com/static/app.js")
print(result.endpoints, result.findings)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klyrek_js-0.1.0.tar.gz.
File metadata
- Download URL: klyrek_js-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
863141ae1d797b7cdefadd65757c2d3018e5108211f35528b94a7589c7fff94e
|
|
| MD5 |
9496a018acc6205a3fd003fd418acf02
|
|
| BLAKE2b-256 |
86fb6d206ec32560b4bf270ad5ba62ca1f67e980861a90f4f5d9e30dfbdda9ae
|
File details
Details for the file klyrek_js-0.1.0-py3-none-any.whl.
File metadata
- Download URL: klyrek_js-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9156fd3d10a56d73bbc136dbe5d15db350625cc2d53ffa786669981a98dd7f3
|
|
| MD5 |
ee18d6d96ef20089e5511ee22d92dfd4
|
|
| BLAKE2b-256 |
e5fad2a004864b99f19c08cfcc0a30237fd269823c6c503dc90f562c027e5332
|