Documentation ¶
Index ¶
- Variables
- func B64Decode(content string) string
- func GenrateFlowID() string
- func GetContainsWeight(keyword, content string) float32
- func GetNowTime() int64
- func IsB64(content string) bool
- func SimilarText(first, second string) float64
- func URLDecode(content string) (string, error)
- type Flow
- type FlowContext
- type Vuln
Constants ¶
This section is empty.
Variables ¶
View Source
var DB = &mgo.Database{}
View Source
var FlowCollect = &mgo.Collection{}
View Source
var Session = &mgo.Session{}
View Source
var VulnCollect = &mgo.Collection{}
View Source
var WSHandler = melody.New()
Functions ¶
func GetContainsWeight ¶
Simply calculate the proportion of keyword in content
func GetNowTime ¶
func GetNowTime() int64
func SimilarText ¶
Calculate text similarity using Jaccard, used to identify 404 page
Types ¶
type Flow ¶
type Flow struct { // UUID ID string `json:"id"` Session int64 `json:"session"` // Request HttpVersion string `json:"httpVersion"` // e.g. "HTTP/1.0" RemoteAddr string `json:"remoteAddr"` Scheme string `json:"scheme"` // e.g. "http" BasicAuth map[string]string `json:"basicAuth"` Host string `json:"host"` Port int `json:"port"` Method string `json:"method"` Path string `json:"path"` Query map[string]string `json:"query"` // GET parameter Fragment string `json:"fragment"` // URL HASH content URL string `json:"url"` // uri Headers map[string]string `json:"headers"` Cookies map[string]string `json:"cookies"` Form map[string]string `json:"form"` // GET/POST/PUT content PostForm map[string]string `json:"postform"` // POST content ContentLength int64 `json:"contentLength"` // MultipartForm *multipart.Form // MultipartForm, temporarily not processed // Response ResponseHttpVersion string `json:"responseHttpVersion"` // e.g. "HTTP/1.0" ResponseStatus string `json:"responseStatus"` // e.g. "200 OK" ResponseStatusCode int `json:"responseStatusCode"` // e.g. 200 ResponseHeaders map[string]string `json:"responseHeaders"` ResponseCookies map[string]string `json:"responseCookies"` ResponseBody string `json:"responseBody"` ResponseContentLength int64 `json:"responseContentLength"` // Other CreateTime int64 `json:"createTime"` RequestTime int64 `json:"requestTime"` ResponseTime int64 `json:"responseTime"` }
HTTPFlow information
func (Flow) GetSafeBaseURL ¶
Prevent other protocol, such as (ws/wss)
type FlowContext ¶
Click to show internal directories.
Click to hide internal directories.