Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx context.Context
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 ¶
Types ¶
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 SMap ¶
var HTTPBodyMap *SMap
HTTPBodyMap 存储 mitmproxy 的响应信息, 为什么不直接放到HttpHistory,是为了防止太多的请求/响应数据加载到前端,这样做只有前端点击每行数据时才会加载对应的数据到前端显示
Click to show internal directories.
Click to hide internal directories.