Documentation ¶
Index ¶
- Constants
- Variables
- func GetAbsRootPath() string
- func GetProxyConfig() string
- func GetRootPath() string
- type API
- type APIKey
- type Database
- type Domainscan
- type Fingerprint
- type Notify
- type OnlineAPI
- type Pocscan
- type Portscan
- type Proxy
- type RPC
- type Rabbitmq
- type Server
- type Task
- type Web
- type WebAPI
- type Wiki
- type Worker
Constants ¶
View Source
const ( Release = "Release" //正式运行模式 Debug = "Debug" //开发模式 )
View Source
const ( HighPerformance = "High" NormalPerformance = "Normal" )
Variables ¶
View Source
var NoProxyByCmd bool
NoProxyByCmd 不使用proxy,由worker启动时命令行指定
View Source
var RunMode = Release
RunMode 运行模式:正式运行请使用Release模式,Debug模式只用于开发调试过程
View Source
var ServerDefaultConfigfile = "conf/server.yml"
View Source
var Socks5ForwardAddr string
Socks5ForwardAddr chrome浏览器的socks5代理地址转发地址,支持用户名和密码认证(默认chrome不支持带认证的socks5代理)
View Source
var WorkerConfigReloadMutex sync.Mutex // worker读配置文件同步锁
View Source
var WorkerDefaultConfigFile = "conf/worker.yml"
View Source
var WorkerPerformanceMode = NormalPerformance
WorkerPerformanceMode worker默认的性能模式为Normal
Functions ¶
Types ¶
type Domainscan ¶
type Domainscan struct { Resolver string `yaml:"resolver"` Wordlist string `yaml:"wordlist"` ProviderConfig string `yaml:"providerConfig"` IsSubDomainFinder bool `yaml:"subfinder"` IsSubDomainBrute bool `yaml:"subdomainBrute"` IsSubdomainCrawler bool `yaml:"subdomainCrawler"` IsIgnoreCDN bool `yaml:"ignoreCDN"` IsIgnoreOutofChina bool `yaml:"ignoreOutofChina"` IsPortScan bool `yaml:"portscan"` IsWhois bool `yaml:"whois"` IsICP bool `yaml:"icp"` }
type Fingerprint ¶
type Server ¶
type Server struct { Web Web `yaml:"web"` Rpc RPC `yaml:"rpc"` FileSync RPC `yaml:"fileSync"` WebAPI WebAPI `yaml:"api"` Database Database `yaml:"database"` Rabbitmq Rabbitmq `yaml:"rabbitmq"` Task Task `yaml:"task"` Notify map[string]Notify `yaml:"notify"` Wiki Wiki `yaml:"wiki"` }
func GlobalServerConfig ¶
func GlobalServerConfig() *Server
type Worker ¶
type Worker struct { Rpc RPC `yaml:"rpc"` FileSync RPC `yaml:"fileSync"` Rabbitmq Rabbitmq `yaml:"rabbitmq"` API API `yaml:"api"` Portscan Portscan `yaml:"portscan"` Fingerprint Fingerprint `yaml:"fingerprint"` Domainscan Domainscan `yaml:"domainscan"` OnlineAPI OnlineAPI `yaml:"onlineapi"` Pocscan Pocscan `yaml:"pocscan"` Proxy Proxy `yaml:"proxy"` }
func GlobalWorkerConfig ¶
func GlobalWorkerConfig() *Worker
Click to show internal directories.
Click to hide internal directories.