burpSuite

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Done = make(chan bool)
View Source
var HttpHistory chan HTTPHistory

HttpHistory 接受 mitmproxy 代理信息

View Source
var Intercept bool
View Source
var InterceptBody string
View Source
var IntruderMap map[string]*SMap
View Source
var Proxy *proxy.Proxy
View Source
var RepeaterBodyMap map[string]map[int]*HTTPBody

RepeaterBodyMap Repeater 中回退、前进使用 todo前端还未实现

View Source
var Sum int // 每次 Wg.Add(1) 加一, 每次 Wg.Done() 减一

Functions

func Intruder

func Intruder(target string, req string, payloads []string, rules []string, attackType string, uuid string, ctx context.Context)

func Restart

func Restart(port int) string

Restart 更换监听端口

func Run

func Run(port int)

Types

type Burp

type Burp struct {
	proxy.BaseAddon
	// contains filtered or unexported fields
}

func (*Burp) Request

func (b *Burp) Request(f *proxy.Flow)

Request 这里可以拦截请求

func (*Burp) Requestheaders

func (b *Burp) Requestheaders(f *proxy.Flow)

func (*Burp) Response

func (b *Burp) Response(f *proxy.Flow)

func (*Burp) Responseheaders

func (b *Burp) Responseheaders(f *proxy.Flow)

type HTTPBody

type HTTPBody struct {
	TargetUrl string `json:"targetUrl"`
	Request   string `json:"request"`
	Response  string `json:"response"`
	UUID      string `json:"uuid"`
}
var HttpBodyInter *HTTPBody

type HTTPHistory

type HTTPHistory struct {
	Id        int    `json:"id"`
	Host      string `json:"host"`
	Method    string `json:"method"`
	URL       string `json:"url"`
	Params    string `json:"params"`
	Edited    string `json:"edited"`
	Status    string `json:"status"`
	Length    string `json:"length"`
	MIMEType  string `json:"mime_type"`
	Extension string `json:"extension"`
	Title     string `json:"title"`
	Comment   string `json:"comment"`
	TLS       string `json:"tls"`
	IP        string `json:"ip"`
	Cookies   string `json:"cookies"`
	Time      string `json:"time"`
}

type IntruderRes

type IntruderRes struct {
	Id      int      `json:"id"`
	Payload []string `json:"payload"`
	Status  string   `json:"status"`
	Length  string   `json:"length"`
}

type SMap

type SMap struct {
	sync.RWMutex
	Map map[int]*HTTPBody
}
var HTTPBodyMap *SMap

HTTPBodyMap 存储 mitmproxy 的响应信息, 为什么不直接放到HttpHistory,是为了防止太多的请求/响应数据加载到前端,这样做只有前端点击每行数据时才会加载对应的数据到前端显示

func (*SMap) ReadMap

func (l *SMap) ReadMap(key int) *HTTPBody

func (*SMap) WriteMap

func (l *SMap) WriteMap(key int, value *HTTPBody)

type Setting added in v0.8.5

type Setting struct {
	ProxyPort int      `json:"port"`
	Exclude   []string `json:"exclude"` // Exclude 排除显示的域名
	Include   []string `json:"include"`
}
var Settings *Setting

type SettingUI added in v0.8.5

type SettingUI struct {
	ProxyPort int    `json:"port"`
	Exclude   string `json:"exclude"` // Exclude 排除显示的域名
	Include   string `json:"include"`
}

SettingUI 前端映射使用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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