plugin

package
v0.0.0-...-47e6808 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GoPlugins map[string][]GoPlugin

GoPlugins GO插件集

Functions

func GetPlugins

func GetPlugins() (plugins []map[string]interface{})

GetPlugins 获取插件信息

func Regist

func Regist(target string, plugin GoPlugin)

Regist 注册插件

func Scan

func Scan(task Task) (result []map[string]interface{})

Scan 开始插件扫描

Types

type GoPlugin

type GoPlugin interface {
	Init() Plugin
	Check(netloc string, meta TaskMeta) bool
	GetResult() []Plugin
}

GoPlugin 插件接口

type Plugin

type Plugin struct {
	Name       string     `json:"name"`
	Remarks    string     `json:"remarks"`
	Level      int        `json:"level"`
	Type       string     `json:"type"`
	Author     string     `json:"author"`
	References References `json:"references"`
	Request    string
	Response   string
}

Plugin 漏洞插件信息

type References

type References struct {
	URL  string `json:"url"`
	CVE  string `json:"cve"`
	KPID string `json:"kpid"`
}

References 插件附加信息

type Task

type Task struct {
	Type   string   `json:"type"`
	Netloc string   `json:"netloc"`
	Target string   `json:"target"`
	Meta   TaskMeta `json:"meta"`
}

Task 任务结构

type TaskMeta

type TaskMeta struct {
	System   string   `json:"system"`
	PathList []string `json:"pathlist"`
	FileList []string `json:"filelist"`
	PassList []string `json:"passlist"`
}

TaskMeta 任务额外信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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