https://github.com/rix4uni/gxss
A tool to check a bunch of URLs that contain reflecting params.
https://github.com/rix4uni/gxss
bug-bounty bugbounty bugbountytips hacking infosec osint osint-resources osint-tool penetration-testing pentest-tool pentesting recon reconnaissance security security-tools threat-intelligence
Last synced: 8 months ago
JSON representation
A tool to check a bunch of URLs that contain reflecting params.
- Host: GitHub
- URL: https://github.com/rix4uni/gxss
- Owner: rix4uni
- Created: 2024-05-18T07:09:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T07:09:21.000Z (about 2 years ago)
- Last Synced: 2025-02-07T00:18:44.183Z (over 1 year ago)
- Topics: bug-bounty, bugbounty, bugbountytips, hacking, infosec, osint, osint-resources, osint-tool, penetration-testing, pentest-tool, pentesting, recon, reconnaissance, security, security-tools, threat-intelligence
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gxss v4.2
This tool's Original Created is: Kathan Patel [Gxss](https://github.com/KathanP19/Gxss), I just modified this tool according to my requirements.
Why i modified this tool beacause using Gxss in every parameter might kill regular url if the paramenter value is sensitive to certain values.
## What is add new
```
# rix4uni Gxss
echo "http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=12" | Gxss
http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=12 Reflected:[p=Gxss, pp=Gxss]
# -hr means check reflection parameter but don't print in terminal just Hide reflection details
echo "http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=12" | Gxss -hr
http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=12
# all other flags are same
# Kathan Patel Gxss
echo "http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=12" | Gxss
http://testphp.vulnweb.com/hpp/params.php?p=Gxss&pp=12
http://testphp.vulnweb.com/hpp/params.php?p=valid&pp=Gxss
```
A Light Weight Tool for checking reflecting Parameters in a URL. Inspired by [kxss](https://github.com/tomnomnom/hacks/tree/master/kxss) by [@tomnomnom](https://twitter.com/TomNomNom).
# Installation
`go install github.com/rix4uni/Gxss@latest`
* If the above step doesn't work then you can try pre-built binary file from here
https://github.com/rix4uni/Gxss/releases
# Usage
```
_____ __ __ _____ _____
| __| | | __| __|
| | |- -|__ |__ |
|_____|__|__|_____|_____|
4.2 - @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.
-hr
Hide reflection details
-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
```
3. If reflection for any param is found it tells which param reflected in response.
[](https://asciinema.org/a/84mXOOcDrxzZ3eyW16Ap3eHwX)
# 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`
* [Dalfox](https://github.com/hahwul/dalfox) is Xss Scanner by [@hahwul](https://twitter.com/hahwul)
# TODO
- [ ] TimeOut Option.
- [x] Add Post Method Support.
- [x] Add Proxy Support.
- [x] Add an option for user to add there own headers
- [x] Add an option for User-Agent
# Thanks To
* [Zoid](https://twitter.com/z0idsec) for helping me out with code.
* [Parth Parmar](https://twitter.com/Parth97531) for adding Custom Header and User-Agent Support.
* [Luska](https://github.com/LuskaBol) for adding proxy support and custom post data support
# To Support Me
* You Can Buy Me A Coffee
