output

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

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 AddJobCounter

func AddJobCounter()

AddJobCounter job数加1

func AddTaskCounter

func AddTaskCounter()

AddTaskCounter task数加1

func ClearTaskCounter

func ClearTaskCounter()

ClearTaskCounter task数清0(不是总数)

func FinishOutput

func FinishOutput(toWhere int32)

FinishOutput 在写完文件(当前任务写完之后下一个任务不使用和当前一样的文件)之后调用

func GetCounterSingle

func GetCounterSingle(which int8) int64

func InitOutput

func InitOutput(globInfo *fuzzTypes.Fuzz, toWhere int32)

InitOutput 初始化输出。此函数不能在多协程调用

func Log

func Log(log string, toWhere int32)

func LogOnce

func LogOnce(log string, toWhere int32)

func ObjOutput

func ObjOutput(obj *ObjectOutput, toWhere int32)

ObjOutput 输出单个OutObj

func ScreenClose

func ScreenClose()

func SetJobCounter

func SetJobCounter(total int64)

SetJobCounter 设置job总数

func SetTaskCounter

func SetTaskCounter(total int64)

SetTaskCounter 设置task总数

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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