GithubHelp home page GithubHelp logo

xalgord / gxss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kathanp19/gxss

0.0 1.0 0.0 51 KB

A tool to check a bunch of URLs that contain reflecting params.

License: GNU General Public License v3.0

Go 100.00%

gxss's Introduction

Gxss v4.0

A Light Weight Tool for checking reflecting Parameters in a URL. Inspired by kxss by @tomnomnom.

Installation

go install github.com/KathanP19/Gxss@latest

Usage

                  
 _____ __ __ _____ _____ 
|   __|  |  |   __|   __|
|  |  |-   -|__   |__   |
|_____|__|__|_____|_____|
                         
        4.0 - @KathanP19

Usage of Gxss:
  -c int
        Set the Concurrency (default 50)
  -d string
        Request data for POST based reflection testing
  -h value
        Set Custom Header.
  -o string
        Save Result to OutputFile
  -p string
        Payload you want to Send to Check Reflection (default "Gxss")
  -u string
        Set Custom User agent. Default is Mozilla (default "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36")
  -v    Verbose mode
  -x string
        Proxy URL. Example: http://127.0.0.1:8080
  • Checking Single Url

    echo "https://target.com/some.php?first=hello&last=world" | Gxss -c 100

  • Checking List of Urls

    cat urls.txt | Gxss -c 100 -p XssReflected

  • Save Urls Which have Reflecting Params in a file for further analysis

    cat urls.txt | Gxss -c 100 -o Result.txt

  • For verbose mode -v

    cat urls.txt | Gxss -c 100 -o Result.txt -v

  • Send Custom Header -h

    cat urls.txt | Gxss -c 100 -p Xss -h "Cookie: Value"

  • Send Custom User-Agent -u

    cat urls.txt | Gxss -c 100 -p Xss -h "Cookie: Value" -u "Google Bot"

How It Works

  1. It takes Urls from STDIN
  2. It check for the reflected value on params one by one. (There are some tool like qsreplace which replace all params value but gxss checks payload one by one which makes it different from all those tools.)
For Example- 
Url is https://example.com/?p=first&q=second

First it will check if p param reflects
https://example.com/?p=Gxss&q=second

Then it will check if q param reflects
https://example.com/?p=first&q=Gxss
  1. If reflection for any param is found it tells which param reflected in response.

asciicast

Use Case or How to add to your workflow

echo "testphp.vulnweb.com" | waybackurls | httpx -silent | Gxss -c 100 -p Xss | sort -u | dalfox pipe

TODO

  • TimeOut Option.
  • Add Post Method Support.
  • Add Proxy Support.
  • Add an option for user to add there own headers
  • Add an option for User-Agent

Thanks To

  • Zoid for helping me out with code.
  • Parth Parmar for adding Custom Header and User-Agent Support.
  • Luska for adding proxy support and custom post data support

To Support Me

  • You Can Buy Me A Coffee

    Buy Me A Coffee

gxss's People

Contributors

kathanp19 avatar luskabol avatar hrishi1999 avatar hahwul avatar edoardottt avatar

Watchers

 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.