Giter Club home page Giter Club logo

authinspector's Introduction

AuthInspector

Apache-2.0 License Twitter Follow GitHub followers

AuthInspector is a Golang tool designed for hassle-free authorization and authentication checks. By extracting request details from BurpSuite export, it performs thorough authorization checks based on user-provided headers for each request with Goroutines in place for speedy processing, and provides results in a simple CSV file with all details.

Work flow

Installation

Easy Installation: You can download the prebuilt binary from the releases page.

Go Install: go install github.com/karma9874/AuthInspector@latest

Go Build: go get && go build

Usage

  1. Begin by capturing web requests using the high-level account.
  2. Once your website browsing is complete, export the requests by navigating to Target -> Site map -> selecting the URL -> Right Click and Save Selected Item.
  3. Create an init.yaml file with the following configurations:
    • source: Specify the name of the exported file from the previous step.
    • auth: Define the header responsible for authentication (e.g., Cookie, Authorization header, custom).
    • filterMimeType: Include requests containing the specified MIME type.
    • headers: Optionally provide global headers, influencing requests containing this header.

AuthInspector provides the following commands for customization:

-proxy    Set up a proxy for testing.
-respBody Include response body in the output
-reqBody  Include request body in the output.
-timeout  Set the timeout for requests.
-threads  Specify the number of concurrent threads.
-listmime Lists the available mimetypes from the burp exported file
-verbose  Verbose output

Running AuthInspector

AuthInspector.exe -respBody -reqBody

Config Template

# Burp XML file name to be used in the authentication testing process.
source: example.xml

# Headers with authentication information.
auth:
  - header_key: header_value
  - header_key: header_value
  - dummy_header: dummy_value  # Do not remove this header (use to check unauthenticated requests)

# Mime types(case sensitive, for more details list mime type check -listmime mode). The tool will focus on checking authentication issues only on specified mime types.
filterMimeTypes:
  - JSON
  - XML

# Global headers to be included in all requests.
headers:
  - User-Agent: "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
  - API-KEY: some_key

authinspector's People

Contributors

karma9874 avatar

Stargazers

 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.