Documentation
¶
Index ¶
- Constants
- Variables
- func BannerAnimate(u *AfrogUpdate)
- func EngineV(u *AfrogUpdate) string
- func InitBanner()
- func PocV(u *AfrogUpdate) string
- func ShowBanner(u *AfrogUpdate)
- func ShowUpgradeBanner(au *AfrogUpdate)
- func ShowVersion()
- func WriteConfiguration(config *Config) error
- type AfrogUpdate
- type Ceye
- type Config
- type ConfigHttp
- type Cyberspace
- type Dingtalk
- type Eye
- type Jndi
- type Options
- func (o *Options) CheckPocKeywords(id, name string) bool
- func (o *Options) CheckPocSeverityKeywords(severity string) bool
- func (o *Options) CreatePocList() []poc.Poc
- func (o *Options) FilterPocSeveritySearch(pocId, pocInfoName, severity string) bool
- func (o *Options) PrintPocList() error
- func (o *Options) ReadPocDetail()
- func (o *Options) ReversePoCs(allpocs []poc.Poc) ([]poc.Poc, []poc.Poc)
- func (o *Options) SetSearchKeyword() bool
- func (o *Options) SetSeverityKeyword() bool
- func (o *Options) SmartControl()
- func (opt *Options) VerifyOptions() error
- type POCSlices
- type Reverse
- type Webhook
Constants ¶
View Source
const Version = "2.9.8.1"
Variables ¶
Functions ¶
func BannerAnimate ¶ added in v2.9.7
func BannerAnimate(u *AfrogUpdate)
func EngineV ¶
func EngineV(u *AfrogUpdate) string
func InitBanner ¶
func InitBanner()
func PocV ¶
func PocV(u *AfrogUpdate) string
func ShowBanner ¶
func ShowBanner(u *AfrogUpdate)
func ShowUpgradeBanner ¶
func ShowUpgradeBanner(au *AfrogUpdate)
func ShowVersion ¶ added in v2.8.1
func ShowVersion()
func WriteConfiguration ¶
WriteConfiguration writes the updated afrog configuration to disk
Types ¶
type AfrogUpdate ¶
type AfrogUpdate struct {
HomeDir string
CurrVersion string
RemoteVersion string
LastestVersion string
LastestAfrogVersion string
IsUpdatePocs bool
}
func NewAfrogUpdate ¶
func NewAfrogUpdate(updatePoc bool) (*AfrogUpdate, error)
func (*AfrogUpdate) AfrogUpdatePocs ¶
func (u *AfrogUpdate) AfrogUpdatePocs() (string, error)
func (*AfrogUpdate) CheckAfrogUpdate ¶
func (u *AfrogUpdate) CheckAfrogUpdate() (bool, error)
func (*AfrogUpdate) Download ¶
func (u *AfrogUpdate) Download() error
func (*AfrogUpdate) Unzip ¶
func (u *AfrogUpdate) Unzip(src string) error
type Config ¶
type Config struct {
ServerAddress string `yaml:"server"`
Reverse Reverse `yaml:"reverse"`
Webhook Webhook `yaml:"webhook"`
Cyberspace Cyberspace `yaml:"cyberspace"`
}
Config is a afrog-config.yaml catalog helper implementation
func ReadConfiguration ¶
ReadConfiguration reads the afrog configuration file from disk.
func (*Config) GetConfigPath ¶
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 Cyberspace ¶ added in v2.9.5
type Cyberspace struct {
ZoomEyes []string `yaml:"zoom_eyes"`
}
type Options ¶
type Options struct {
// afrog-config.yaml configuration file
Config *Config
// Pocs Directory
PocsDirectory utils.StringSlice
Targets sliceutil.SafeSlice
// target URLs/hosts to scan
Target goflags.StringSlice
// list of target URLs/hosts to scan (one per line)
TargetsFile string
// PoC file or directory to scan
PocFile string
// Append PoC file or directory to scan
AppendPoc goflags.StringSlice
// show afrog-pocs list
PocList bool
// show a afrog-pocs detail
PocDetail string
ExcludePocs goflags.StringSlice
ExcludePocsFile string
// file to write output to (optional), support format: html
Output string
// file to write output to (optional), support format: json
Json string
// file to write output to (optional), support format: json
JsonAll string
// search PoC by keyword , eg: -s tomcat
Search string
SearchKeywords []string
// no progress if silent is true
Silent bool
// pocs to run based on severity. Possible values: info, low, medium, high, critical
Severity string
SeverityKeywords []string
// update afrog-pocs
UpdatePocs bool
// update afrog version
Update bool
// Disable update check
DisableUpdateCheck bool
MonitorTargets bool
// POC Execution Duration Tracker
PocExecutionDurationMonitor bool
// Single Vulnerability Stopper
VulnerabilityScannerBreakpoint bool
// Scan count num(targets * allpocs)
Count int
// Current Scan count num
CurrentCount uint32
// Thread lock
OptLock sync.Mutex
// maximum number of requests to send per second (default 150)
RateLimit int
// maximum number of afrog-pocs to be executed in parallel (default 25)
Concurrency int
// maximum number of requests to send per second (default 150)
ReverseRateLimit int
// maximum number of afrog-pocs to be executed in parallel (default 25)
ReverseConcurrency int
// Smart Control Concurrency
Smart bool
// number of times to retry a failed request (default 1)
Retries int
//
MaxHostError int
// time to wait in seconds before timeout (default 10)
Timeout int
// http/socks5 proxy to use
Proxy string
MaxRespBodySize int
// afrog process count (target total × pocs total)
ProcessTotal uint32
DisableOutputHtml bool
OJ *output.OutputJson
Cookie string
Version bool
Web bool
// webhook
Dingtalk bool
// resume
Resume string
// debug
Debug bool
// sort
// -sort severity (default low, info, medium, high, critical)
// -sort a-z
Sort string
// cyberspace search
Cyberspace string
// cyberspace search keywords
Query string
// query count
QueryCount int
}
func NewOptions ¶
func (*Options) CheckPocKeywords ¶
func (*Options) CheckPocSeverityKeywords ¶
func (*Options) CreatePocList ¶
func (*Options) FilterPocSeveritySearch ¶
func (*Options) PrintPocList ¶
func (*Options) ReadPocDetail ¶
func (o *Options) ReadPocDetail()
func (*Options) ReversePoCs ¶
func (*Options) SetSearchKeyword ¶
func (*Options) SetSeverityKeyword ¶
func (*Options) SmartControl ¶
func (o *Options) SmartControl()
func (*Options) VerifyOptions ¶ added in v2.8.1
type POCSlices ¶ added in v2.9.3
定义包含 POC 结构的切片
Click to show internal directories.
Click to hide internal directories.