https://github.com/soufianetahiri/HttpRquestPlayer
This small utility could help you to find authorization bugs.
https://github.com/soufianetahiri/HttpRquestPlayer
auth authorization cookie http-client pentest-tool permissions privileges roles
Last synced: 4 months ago
JSON representation
This small utility could help you to find authorization bugs.
- Host: GitHub
- URL: https://github.com/soufianetahiri/HttpRquestPlayer
- Owner: soufianetahiri
- Created: 2021-02-11T16:38:34.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-12T15:14:55.000Z (over 4 years ago)
- Last Synced: 2024-11-21T11:38:29.230Z (12 months ago)
- Topics: auth, authorization, cookie, http-client, pentest-tool, permissions, privileges, roles
- Language: C#
- Homepage:
- Size: 20.5 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - soufianetahiri/HttpRquestPlayer - This small utility could help you to find authorization bugs. (C# #)
README
## What is it?
This utility could help you to find authorization bugs. Just edit *request.json* by providing for exmple a high and a low priviliged user's requests headers, paths to scan and thats it. The tool will proceed to requests with both headers and hilight diffirent http response.
For now, It supports GET and POST .
## requests.json sample
{
"baseUrl":"https://www.target.someurl.com",
"originalHeaders":[
"Host: www.target.someurl.com",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0",
"Accept: application/json",
"Accept-Language: en-US,en;q=0.5",
"Accept-Encoding: gzip, deflate, br",
"Referer: https://www.someurl.com",
"Authorization: Bearer AdminToken",
"Connection: keep-alive",
"Cookie: cookie1=random; cookie2=random"
],
"newHeaders":[
"Host: www.target.someurl.com",
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0",
"Accept: application/json",
"Accept-Language: en-US,en;q=0.5",
"Accept-Encoding: gzip, deflate, br",
"Referer: https://www.someurl.com",
"Authorization: Bearer SimpleUserToken",
"Connection: keep-alive",
"Cookie: cookie1=random2; cookie2=random2"
],
"requests":{
"get":[
"/api/v1/users/me/dashboard",
"/api/v1/campaigns/kpis/chart",
"/api/v1/users/4623",
"/api/v1/users/4622",
"/identity/.well-known/openid-configuration"
],
"withBodies":{
"post":{
"urls":[
"/api/v1/advertisers/3120/users/"
],
"bodies":[
"{\"isActive\":true,\"firstName\":\"httprequest\",\"lastName\":\"soufiane\",\"preference\":{\"culture\":\"en\"},\"roles\":[1],\"email\":\"soufianetahiri@gmail.com\"}"
]
}
}
}
}
You can add as many headers as you want, the tool will parse and add them to the httpclient automatically.
## Output sample

## ToDo
- [ ] Handle exceptions
- [ ] Support more methods (~~POST~~ PUT DELETE...)
- [ ] Parse Burp requests
- [ ] Add verbosity