proxymitm

package module
v0.0.0-...-59e28a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 16 Imported by: 0

README

CodeQL

sample proxy uing mitm

Usage

  1. create certificate
  2. server run
  3. do
    curl https://target -x localhost:18080 --cacert your_ca_path
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(certPath, keyPath string) (*http.Server, error)

Types

type ServerMux

type ServerMux struct {
	// contains filtered or unexported fields
}

func CreateMitmProxy

func CreateMitmProxy(certPath, keyPath string) (*ServerMux, error)

CreateMitmProxy load pem, and then it return MitmProxy

func (*ServerMux) ServeHTTP

func (mp *ServerMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL