Giter Site home page Giter Site logo

dombrute's Introduction

dombrute

A tool designed to help identify JavaScript parameters, which can be useful in detecting DOM XSS vulnerabilities. If a parameter is being handled by JavaScript and its value is being printed in the code, this tool will be able to detect it.

What it does

dombrute works by setting up a proxy in the Chrome browser and serving a wordlist to the tool via an HTTP server. The proxy server then receives the response from the target URL and adds some JavaScript before returning the response to the browser. The JavaScript will then send a request to the HTTP server to retrieve the wordlist, parse it, and add it to the URL. Finally, the tool checks if there is any parameter value in the content. If there is, it will save the URL and the parameter in a found.txt file.

Installation

To install the requirments, run the appropriate installation file based on your platform:

For Windows, execute install.ps1

For Linux, execute install.sh

You also need to install python-requirements: pip install -r requirements.txt

How to use

  • Run the tool: python3 dombrute.py -tf urls_file

  • Alternatively, you can pipe in a list of URLs: cat urls.txt | python3 dombrute.py -s

asciicast


Command line arguments

usage: dombrute.py [-h] [-v] [-s] [-tf Target-file] [-sp Port] [-pp Port] [-w Wordlist_location] [-c Cookie]

A script discover dom parameter

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -s, --stdin           Read url from stdin
  -tf Target-file, --target-file Target-file
                        URL file
  -sp Port, --server-port Port
                        Http server port default 8911
  -pp Port, --proxy-port Port
                        Proxy server port default 8912
  -w Wordlist_location, --wordlist Wordlist_location
                        Wordlist file
  -c Cookie, --cookie Cookie
                        Cookie
  -o Output, --output Output
                        Output result

Reference

Wordlist: https://github.com/s0md3v/Arjun

TODO

  • support multithreading

Contributing

Contributions are always welcome! If you have an idea or feature request, please feel free to open an issue or submit a pull request.

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.