https://github.com/the-xentropy/dump-scripts
Downloads all scripts on an external page to a local directory, with support for automatic deobfuscation/prettifying.
https://github.com/the-xentropy/dump-scripts
cybersecurity hacking webpack
Last synced: about 2 months ago
JSON representation
Downloads all scripts on an external page to a local directory, with support for automatic deobfuscation/prettifying.
- Host: GitHub
- URL: https://github.com/the-xentropy/dump-scripts
- Owner: the-xentropy
- License: mit
- Created: 2021-11-04T10:47:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-04T16:03:27.000Z (over 3 years ago)
- Last Synced: 2023-10-10T17:07:56.108Z (over 1 year ago)
- Topics: cybersecurity, hacking, webpack
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 18
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dump-scripts
Dumps all scripts on a page to a local directory, including inline scripts.
## Usage
`usage: dump-scripts.py [-h] [--useragent USERAGENT] [--prettify] URL`
e.g.
`./dump-scripts.py https://reddit.com`
`python3 dump-scripts.py --useragent="haxbot v1337" https://wikipedia.com`
`python3 dump-scripts.py --prettify https://www.example.com`
After which you will have a folder called "scripts" underneath the directory the dump-scripts.py file resides in containing all scripts found on said page.
## Prettifying
dump-scripts relies on [js-beautify](https://github.com/beautify-web/js-beautify) for supporting prettifying all scripts through the `--prettify` flag (this also rudimentarily unminifies/unpacks them). If you want to use it, you have to install the `jsbeautifier` pip package, but I intentionally designed this script so that it will still work without it.
To install the package required:
`$ pip install jsbeautifier`