Documentation
¶
Index ¶
- Constants
- func AddJobCounter()
- func AddTaskCounter()
- func ClearTaskCounter()
- func FinishOutput(toWhere int32)
- func GetCounterSingle(which int8) int64
- func InitOutput(globInfo *fuzzTypes.Fuzz, toWhere int32)
- func Log(log string, toWhere int32)
- func LogOnce(log string, toWhere int32)
- func ObjOutput(obj *ObjectOutput, toWhere int32)
- func ScreenClose()
- func SetJobCounter(total int64)
- func SetTaskCounter(total int64)
- func WaitForScreenQuit()
- type ObjectOutput
Constants ¶
View Source
const ( // OutToFile 输出到文件 OutToFile = 1 // OutToScreen 输出到屏幕(termui) OutToScreen = 2 // OutToNativeStdout 直接输出到stdout OutToNativeStdout = 4 // CntTask 获取task个数 CntTask = 0 // TotalTask 获取task总数 TotalTask = 1 // CntJob 获取job个数 CntJob = 2 // TotalJob 获取job总数 TotalJob = 3 )
Variables ¶
This section is empty.
Functions ¶
func FinishOutput ¶
func FinishOutput(toWhere int32)
FinishOutput 在写完文件(当前任务写完之后下一个任务不使用和当前一样的文件)之后调用
func GetCounterSingle ¶
func InitOutput ¶
InitOutput 初始化输出。此函数不能在多协程调用
func ScreenClose ¶
func ScreenClose()
func WaitForScreenQuit ¶
func WaitForScreenQuit()
Types ¶
type ObjectOutput ¶
type ObjectOutput struct {
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"`
}
Click to show internal directories.
Click to hide internal directories.