runner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0, BSD-3-Clause, MIT, + 2 more Imports: 24 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 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) RunEnumeration

func (r *Runner) RunEnumeration()

RunEnumeration 开始扫描所有目标

func (*Runner) ShowFpAndVulList

func (r *Runner) ShowFpAndVulList(fps, 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