GithubHelp home page GithubHelp logo

soufianetahiri / httprquestplayer Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 21 KB

This small utility could help you to find authorization bugs.

C# 100.00%
pentest-tool authorization auth cookie http-client privileges roles permissions

httprquestplayer's Introduction

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\":\"[email protected]\"}"
            ]
         }
      }
   }
}

You can add as many headers as you want, the tool will parse and add them to the httpclient automatically.

Output sample

enter image description here

ToDo

  • Handle exceptions
  • Support more methods (POST PUT DELETE...)
  • Parse Burp requests
  • Add verbosity

httprquestplayer's People

Contributors

soufianetahiri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.