options

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: 6 Imported by: 0

Documentation

Overview

Package options banner

Package options 命令行接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowBanner

func ShowBanner()

ShowBanner is used to show the banner to the user

Types

type Options

type Options struct {
	Target          multiStringFlag   // 目标URL列表
	TargetFile      string            // 包含目标的文件路径
	Output          string            // 输出文件路径
	ProxyURL        string            // 代理服务器URL
	TimeOut         int               // 请求超时时间(秒)
	JSON            bool              // 是否输出JSON格式
	RateLimit       int               // 每秒请求限制数
	FPTemplates     string            // 指纹模板路径
	AdvTemplates    string            // 漏洞模板路径
	ListVulTemplate bool              // 是否列出漏洞模板
	CheckVulTargets bool              // 检查漏洞模板是否正确
	AIAnalysis      bool              // 是否启用AI分析
	AIHunyuanToken  string            // AI服务的认证令牌
	AIDeepSeekToken string            // deepseek的认证令牌
	LocalScan       bool              // 一键检测本地
	WebServer       bool              // 是否启用WebSocket服务器
	WebServerAddr   string            // WebSocket服务器地址
	Headers         multiStringFlag   // HTTP请求头
	Language        string            // 语言
	Callback        func(interface{}) `json:"-"` // 回调函数
}

Options 定义了程序的所有配置选项

func ParseOptions

func ParseOptions() *Options

ParseOptions 解析命令行参数并返回配置选项

func (*Options) SetCallback added in v0.0.6

func (options *Options) SetCallback(callback func(interface{}))

SetCallback 设置回调函数

Jump to

Keyboard shortcuts

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