models

package
v0.0.0-...-7a1a4d6 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheStatus

func CacheStatus() (count int, items map[string]cache.Item)

返回爆破结果的数目和详细内容

func DumpToFile

func DumpToFile(filename string) (err error)

将结果导出到一个 config 指定的 txt 文件中

func ResultTotal

func ResultTotal()

打印爆破的结果的状态信息,如爆破的用时、爆破得到的有效弱口令的总数

func SaveResult

func SaveResult(result TScanResult, err error)

将插件运行出的结果保存起来

func SaveResultToFile

func SaveResultToFile() error

将爆破结果保存到一个 DB 文件中,DB文件的格式为 go-cache 库定义的格式

Types

type TScanResult

type TScanResult struct {
	TargetsModel TargetsModel
	Result       bool
}

TScanResult 表示扫描结果,返回 bool

type TScanTasks

type TScanTasks struct {
	Ip       string
	Port     int
	Protocol string
}

TScanTasks 表示扫描的服务类型

type TargetsModel

type TargetsModel struct {
	Ip       string
	Port     int
	Protocol string
	Username string
	Password string
}

TargetsModel 用来传递从命令行接收到的目标参数

Jump to

Keyboard shortcuts

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