gobuster icon indicating copy to clipboard operation
gobuster copied to clipboard

Feature Request: Ability to add query string to each request

Open Paradoxis opened this issue 5 years ago • 2 comments
trafficstars

The issue

During a penetration test I was faced with an application which uses authentication inside the URL as a query parameter, I was using gobuster in dir mode to try to enumerate the endpoints however all of them seemed to return 401 if the parameter was not set.

Feature Request

Could it be possible to add a feature that lets users specify a query string to be added to the end of each request? This could be done with a -Q or --query parameter when calling gobuster

Example

$ gobuster dir -u http://example.com/api/v1/ -w wordlist.txt -Q 'secret=blargh'
$ gobuster dir -u http://example.com/api/v1/ -w wordlist.txt --query 'secret=blargh'

PS

Thanks for your work on the tool, it's one of my all time favorites

Paradoxis avatar May 26 '20 09:05 Paradoxis

Hello @Paradoxis. Thanks very much for the suggestion. I think it's a good idea and one what we should consider adding for sure.

Leave it with me and I'll have a think about what it might look like. I think what you've suggested for parameterisation is good.

Watch this space!

OJ avatar Jun 01 '20 22:06 OJ

hi there @OJ , if you dont mind or have no problem, i would like to work on this issue please

ghost avatar Feb 24 '21 05:02 ghost