config

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 5 Imported by: 7

Documentation

Index

Constants

View Source
const Version = "1.0.8"

Variables

This section is empty.

Functions

func WriteConfiguration

func WriteConfiguration(config *Config) error

WriteConfiguration writes the updated afrog configuration to disk

Types

type Ceye

type Ceye struct {
	ApiKey string `yaml:"api-key"`
	Domain string `yaml:"domain`
}

type Config

type Config struct {
	ConfigVersion       string     `yaml:"version"`
	PocSizeWaitGroup    int32      `yaml:"poc_sizewaitgroup"`
	TargetSizeWaitGroup int32      `yaml:"target_sizewaitgroup"`
	ConfigHttp          ConfigHttp `yaml:"http"`
	Reverse             Reverse    `yaml:"reverse"`
}

Config is a afrog-config.yaml catalog helper implementation

func New

func New() (*Config, error)

Create and initialize afrog-config.yaml configuration info

func ReadConfiguration

func ReadConfiguration() (*Config, error)

ReadConfiguration reads the afrog configuration file from disk.

func (*Config) GetConfigPath

func (c *Config) GetConfigPath() string

type ConfigHttp

type ConfigHttp struct {
	Proxy               string `yaml:"proxy"`
	DialTimeout         int32  `yaml:"dial_timeout"`
	ReadTimeout         string `yaml:"read_timeout"`
	WriteTimeout        string `yaml:"write_timeout"`
	MaxRedirect         int32  `yaml:"max_redirect"`
	MaxIdle             string `yaml:"max_idle"`
	Concurrency         int    `yaml:"concurrency"`
	MaxConnsPerHost     int    `yaml:"max_conns_per_host"`
	MaxResponseBodySize int    `yaml:"max_responsebody_sizse"`
	UserAgent           string `yaml:"user_agent"`
}

type Options

type Options struct {
	// afrog-config.yaml configuration file
	Config *Config

	// Pocs Directory
	PocsDirectory utils.StringSlice

	// Target URLs/Domains to scan
	Targets utils.StringSlice

	// Target URLs/Domains to scan
	Target string

	// TargetsFilePath specifies the targets from a file to scan.
	TargetsFilePath string

	// PocsFilePath specifies the directory of pocs to scan.
	PocsFilePath string

	// output file to write found issues/vulnerabilities
	Output string

	// Scan count num(targets * allpocs)
	Count int
}

type Reverse

type Reverse struct {
	Ceye Ceye `yaml:"ceye"`
}

Jump to

Keyboard shortcuts

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