GithubHelp home page GithubHelp logo

daemonsgiants / dump-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the-xentropy/dump-scripts

0.0 0.0 0.0 6 KB

Downloads all scripts on an external page to a local directory, with support for automatic deobfuscation/prettifying.

License: MIT License

Python 100.00%

dump-scripts's Introduction

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 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

dump-scripts's People

Contributors

the-xentropy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.