runner

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0, BSD-3-Clause, MIT, + 2 more Imports: 27 Imported by: 0

Documentation

Overview

Package runner ipnet实现

Package runner 结果结构体

Package runner 实现运行器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAddresses

func IPAddresses(cidr string) ([]string, error)

IPAddresses returns all the IP addresses in a CIDR

func IPAddressesIPnet

func IPAddressesIPnet(ipnet *net.IPNet) (ips []string)

IPAddressesIPnet returns all IP addresses in an IPNet.

func Targets

func Targets(target string) chan string

Targets returns all the targets within a cidr range or the single target

Types

type CallbackProcessInfo added in v0.0.6

type CallbackProcessInfo struct {
	Current int `json:"current"`
	Total   int `json:"total"`
}

CallbackProcessInfo 进度信息结构

type CallbackReportInfo added in v0.0.6

type CallbackReportInfo struct {
	SecScore   int `json:"sec_score"`
	HighRisk   int `json:"high_risk"`
	MediumRisk int `json:"medium_risk"`
	LowRisk    int `json:"low_risk"`
}

CallbackReportInfo 报告信息结构

type CallbackScanResult added in v0.0.6

type CallbackScanResult struct {
	TargetURL       string           `json:"target_url"`
	StatusCode      int              `json:"status_code"`
	Title           string           `json:"title"`
	Fingerprint     string           `json:"fingerprint"`
	Vulnerabilities []vulstruct.Info `json:"vulnerabilities,omitempty"`
}

CallbackScanResult 扫描结果结构

type FpInfos added in v0.0.6

type FpInfos struct {
	FpName string                 `json:"name"`
	Vuls   []vulstruct.VersionVul `json:"vuls"`
	Desc   string                 `json:"desc"`
}

type HttpResult

type HttpResult struct {
	URL           string                 `json:"url"`            // Target URL
	Title         string                 `json:"title"`          // Page title
	ContentLength int                    `json:"content-length"` // Response content length
	StatusCode    int                    `json:"status-code"`    // HTTP status code
	ResponseTime  string                 `json:"response-time"`  // Request response time
	Fingers       []preload.FpResult     `json:"fingerprints"`   // Fingerprint detection results
	Advisories    []vulstruct.VersionVul `json:"advisories"`     // Vulnerability advisory information
	// contains filtered or unexported fields
}

HttpResult represents the HTTP scanning result structure HTTP扫描结果的结构体,包含了请求的详细信息和检测结果

func (*HttpResult) JSON

func (r *HttpResult) JSON() string

JSON converts HttpResult to JSON string 将HttpResult转换为JSON字符串格式

type Result

type Result interface {
	STR() string  // Returns result as string format
	JSON() string // Returns result as JSON format
}

Result defines an interface for result output 定义了结果输出的接口

type Runner

type Runner struct {
	Options *options.Options // 配置选项
	// contains filtered or unexported fields
}

Runner struct 保存运行指纹扫描所需的所有组件

func New

func New(options2 *options.Options) (*Runner, error)

New 初始化一个新的 Runner 实例

func (*Runner) Close

func (r *Runner) Close()

Close cleans up resources used by the Runner

func (*Runner) GetFpAndVulList added in v0.0.6

func (r *Runner) GetFpAndVulList() []FpInfos

GetFpAndVulList 获取指纹和漏洞列表

func (*Runner) RunEnumeration

func (r *Runner) RunEnumeration()

RunEnumeration 开始扫描所有目标

func (*Runner) ShowFpAndVulList

func (r *Runner) ShowFpAndVulList(vul bool)

ShowFpAndVulList displays the list of available fingerprints and vulnerabilities 显示指纹和漏洞列表

Jump to

Keyboard shortcuts

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