Giter Club home page Giter Club logo

pegaxss's Introduction

example

Description:

For each url make a number of requests equal to the number of payloads supplied multiplied by header rows supplied (if the headers are passid directly instead of a file then it counts as one row).

During each request the specific payload is assigned to the headers in the header row.

All sent requests are saved in a local .json file (so you can grep them later for your reports, should the need arise).

I reccommend using xsshunter.com to generate your payloads.

For each URL:
  For each payload:
    For each header row:
      Assign payload to headers in current header row and perform request.

Install

git clone https://github.com/truffle-dog/pegaxss
cd pegaxss
pip install -r requirements.txt

Additionally add pegaxss.py to your .bashrc so you can use it system wide. You need to have a 'bin' folder in your home folder (or create another dir where you'd like to keep your executables and soft link it there).

ln -s $PWD/pegaxss.py ~/bin/pegaxss.py

Example usage:

  • for each url deliver payloads in the headers specified

$ pegaxss.py urls.txt -p payloads.txt -H "Origin"

  • same as above but using stdin

$ cat urls.txt | pegaxss.py -p payloads.txt -H "Origin"

  • for each url deliver payloads using header rows from file. Headers on each line should be separated by space, without quotes.

In the example below we are infecting header "Origin" with payload (first row) and then headers "Origin" and "Referer" with payload (second row).

$ pegaxss.py urls.txt -p payloads.txt -H headers.txt

Example: headers.txt

Origin
Origin Referer
  • specify custom delay and concurency level (number of processes)

$ pegaxss.py urls.txt -p payloads.txt -H "Origin" -d 1 3 -c 10

  • specify a custom file to save the details about sent requests (instead of the default file which is %s)

$ pegaxss.py urls.txt -p payloads.txt -H "Origin" -l "custom_datafile.json"

Disclaimer

This tool was made for legal usage in bug bounty pentests. Use responsibly and at your own risk and on websites where you have permission. The author declines any responsibility for how this tool is used.

pegaxss's People

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.