config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalCmdTimeout = 30 * 60 // 30 minutes

Variables

View Source
var DefaultAppDir = filepath.Join(homeDir, appName)

Functions

func CreateDefaultCfg

func CreateDefaultCfg(cfgPath string) error

Types

type CachexConfig

type CachexConfig struct {
	Enabled    bool `yaml:"enabled"`
	Threads    int  `yaml:"threads"`
	CmdTimeout int  `yaml:"cmd_timeout_in_second"`
}

type Config

type Config struct {
	Tools    ToolsConfig    `yaml:"tools"`
	Reporter ReporterConfig `yaml:"reporter"`
}

func DefaultConfig

func DefaultConfig() *Config

func LoadCfg

func LoadCfg(cfgPath string) (Config, error)

type GauConfig

type GauConfig struct {
	Enabled    bool `yaml:"enabled"`
	Threads    int  `yaml:"threads"`
	CmdTimeout int  `yaml:"cmd_timeout_in_second"`
}

type HTTPXConfig

type HTTPXConfig struct {
	Threads     int             `yaml:"threads"`
	TargetPorts HttxPortsConfig `yaml:"ports_to_scan"`
	ScreenShot  bool            `yaml:"screenshot"`
	CmdTimeout  int             `yaml:"cmd_timeout_in_second"`
}

type HttxPortsConfig

type HttxPortsConfig struct {
	Http  string `yaml:"http"`
	Https string `yaml:"https"`
}

type KatanaConfig

type KatanaConfig struct {
	Enabled            bool `yaml:"enabled"`
	Threads            int  `yaml:"threads"`
	CrawlDepth         int  `yaml:"crawl_depth"`
	ParallelismThreads int  `yaml:"parallelism_threads"`
	Headless           bool `yaml:"headless"`
	NoSandbox          bool `yaml:"no_sandbox"`
	CmdTimeout         int  `yaml:"cmd_timeout_in_second"`
}

type NucleiConfig

type NucleiConfig struct {
	Enabled          bool                   `yaml:"enabled"` // master switch disabled all nuclei scan
	Threads          int                    `yaml:"threads"`
	TemplateSettings NucleiTemplateSettings `yaml:"template_settings"`
	TemplatePaths    NucleiTemplatePaths    `yaml:"template_paths"`
	CmdTimeout       int                    `yaml:"cmd_timeout_in_second"`
}

type NucleiTemplatePathSet

type NucleiTemplatePathSet struct {
	Include         []string `yaml:"include"`
	Exclude         []string `yaml:"exclude"`
	ExcludeSeverity string   `yaml:"exclude_severity"`
}

type NucleiTemplatePaths

type NucleiTemplatePaths struct {
	Generic NucleiTemplatePathSet `yaml:"generic"`
	Dast    NucleiTemplatePathSet `yaml:"dast"`
	Cloud   NucleiTemplatePathSet `yaml:"cloud"`
}

type NucleiTemplateSettings

type NucleiTemplateSettings struct {
	Generic  bool `yaml:"generic"`
	Dast     bool `yaml:"dast"`
	Cloud    bool `yaml:"cloud"`
	Headless bool `yaml:"headless"`
}

type ReporterConfig

type ReporterConfig struct {
	Telegram TelegramConfig `yaml:"telegram"`
}

type SubfinderConfig

type SubfinderConfig struct {
	Enabled bool                  `yaml:"enabled"`
	Passive SubsPassiveEnumConfig `yaml:"passive"`
	Active  SubsActiveEnumConfig  `yaml:"active"`
}

type SubsActiveEnumConfig added in v0.6.0

type SubsActiveEnumConfig struct {
	Enabled           bool   `yaml:"enabled"`
	RunPhase2         bool   `yaml:"run_phase2"`
	ResubWordlistMode string `yaml:"wordlist_mode"`
	DnsxThreads       int    `yaml:"dnsx_threads"`
	CmdTimeout        int    `yaml:"cmd_timeout_in_second"`
}

type SubsPassiveEnumConfig added in v0.6.2

type SubsPassiveEnumConfig struct {
	Enabled    bool `yaml:"enabled"`
	Threads    int  `yaml:"threads"`
	CmdTimeout int  `yaml:"cmd_timeout_in_second"`
}

type TelegramConfig

type TelegramConfig struct {
	Enabled  bool   `yaml:"enabled"`
	BotToken string `yaml:"bot_token"`
	ChatID   int    `yaml:"chat_id"`
	Timeout  int    `yaml:"request_timeout"`
}

type ToolsConfig

type ToolsConfig struct {
	HTTPX     HTTPXConfig     `yaml:"httpx"`
	Subfinder SubfinderConfig `yaml:"subfinder"`
	Katana    KatanaConfig    `yaml:"katana"`
	Gau       GauConfig       `yaml:"gau"`
	Nuclei    NucleiConfig    `yaml:"nuclei"`
	Cachex    CachexConfig    `yaml:"cachex"`
}

Jump to

Keyboard shortcuts

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