Documentation
¶
Index ¶
- Constants
- Variables
- func AddJobCounter()
- func AddTaskCounter()
- func ClearTaskCounter()
- func FormatObjOutput(obj *OutObj, format string, color bool) []byte
- func GetCounter() []int64
- func GetCounterValue(which int8) int64
- func GetCurrentRate() int32
- func GetTimeLapsed() time.Duration
- func SetJobTotal(total int64)
- func SetTaskTotal(total int64)
- type OutObj
Constants ¶
View Source
const ( CntTask = 0 // CntTask 获取task个数 TotalTask = 1 // TotalTask 获取task总数 CntJob = 2 // CntJob 获取job个数 TotalJob = 3 // TotalJob 获取job总数 )
Variables ¶
View Source
var GlobOutSettings *fuzzTypes.OutputSettings
Functions ¶
func ClearTaskCounter ¶
func ClearTaskCounter()
func FormatObjOutput ¶
FormatObjOutput 根据格式将OutObj输出
func GetCounterValue ¶ added in v0.1.7
GetCounterValue 获取单个计数器数据
Types ¶
type OutObj ¶
type OutObj struct {
Id uint `json:"-" xml:"-" gorm:"primarykey"`
XMLName xml.Name `json:"-" xml:"output"`
Keywords []string `json:"keywords" xml:"keywords>keyword"`
Payloads []string `json:"payloads" xml:"payloads>payload"`
Request *fuzzTypes.Req `json:"request" xml:"request"`
Response *fuzzTypes.Resp `json:"response" xml:"response"`
Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
}
OutObj 用于输出的结构体
Click to show internal directories.
Click to hide internal directories.