plugin

package
v0.2.8-2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RelPathPlGen        = "payloadGenerators/"
	RelPathPlProc       = "payloadProcessors/"
	RelPathPreprocessor = "preprocessors/"
	RelPathRequester    = "requesters/"
	RelPathReactor      = "reactors/"
	RelPathIterator     = "iterators/"

	SelectIterIndex = 0
	SelectIterLen   = 1
)

Variables

View Source
var BaseDir = "./plugins/"
View Source
var ErrFuncTypeIncorrect = errors.New("plugin entry incorrect, make sure your plugin is built using fgpk")

Functions

func DoRequest added in v0.2.0

DoRequest 根据requestCtx发送请求,并接收响应

func IterIndex added in v0.2.0

func IterIndex(p fuzzTypes.Plugin, lengths []int, out []int)

IterIndex 外部调用这个函数时的arg列表如下 selectorIndex, ind, 用户自定义参数 windows上可以用jsons参数传递,这个可不行

func IterLen added in v0.2.0

func IterLen(p fuzzTypes.Plugin, lengths []int) int

IterLen 外部调用此函数时的参数列表如下 selectorIterLen, 0, ...(由于插件编译后参数列表不能改变,且一个插件实际上只有一个调用入口,参数被写死了,所以填充一个0)

func ParsePluginsStr

func ParsePluginsStr(pluginsStr string) ([]fuzzTypes.Plugin, error)

ParsePluginsStr 用来解析插件字符串,具体规则参考readme 解析结果为Plugin类型

func PayloadGenerator

func PayloadGenerator(p fuzzTypes.Plugin, outCtx *output.Ctx) []string

PayloadGenerator 返回插件生成的payload切片

func PayloadProcessor

func PayloadProcessor(p fuzzTypes.Plugin, outCtx *output.Ctx) string

PayloadProcessor 返回处理后的字符串

func PreLoad added in v0.1.7

func PreLoad(p fuzzTypes.Plugin, relPath string) (*convention.PluginInfo, error)

PreLoad 预加载插件,并尝试获取插件的信息

func Preprocess

func Preprocess(p fuzzTypes.Plugin, fuzz1 *fuzzTypes.Fuzz, outCtx *output.Ctx) *fuzzTypes.Fuzz

Preprocess 返回指向preprocessor处理后新生成的*Fuzz

func React

React 返回*reaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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