common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobOutSettings *fuzzTypes.OutputSettings

Functions

func AddJobCounter

func AddJobCounter()

AddJobCounter 将job计数器的个数加一

func AddTaskCounter

func AddTaskCounter()

AddTaskCounter 将task计数器的个数加一

func ClearTaskCounter

func ClearTaskCounter()

func FormatObjOutput

func FormatObjOutput(obj *OutObj, format string, color bool) []byte

FormatObjOutput 根据格式将OutObj输出

func GetCounter

func GetCounter() []int64

GetCounter 获取计数器的数据

func GetCounterSingle

func GetCounterSingle(which int8) int64

GetCounterSingle 获取单个计数器数据

func GetCurrentRate

func GetCurrentRate() int32

GetCurrentRate 获取当前的速率

func GetTimeLapsed

func GetTimeLapsed() time.Duration

GetTimeLapsed 获取自计数开始的时间

func SetJobCounter

func SetJobCounter(total int64)

SetJobCounter 设置job计数器的总数

func SetTaskCounter

func SetTaskCounter(total int64)

SetTaskCounter 设置task计数器的总数

Types

type OutObj

type OutObj 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"`
}

OutObj 用于输出的结构体

Jump to

Keyboard shortcuts

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