Documentation ¶
Index ¶
- Constants
- Variables
- func AliveMod(targets interface{}, config Config)
- func Banner()
- func DefaultMod(targets interface{}, config Config)
- func FormatOutput(filename, outFilename, outf, filenamef string, filters []string, filterOr bool)
- func InitConfig(config *Config) (*Config, error)
- func LoadFile(file *os.File) []byte
- func NewTargetGenerator(config Config) *targetGenerator
- func PrintExtract()
- func PrintNucleiPoc()
- func PrintWorkflow()
- func Printportconfig()
- func RunTask(config Config)
- func SmartMod(target *ipcs.CIDR, config Config)
- type ConfigOption
- type InputOption
- type IpGenerator
- type MiscOption
- type Options
- type OutputOption
- type Runner
- type SmartOption
Constants ¶
View Source
const ( LinuxDefaultThreads = 4000 WindowsDefaultThreads = 1000 DefaultIpProbe = "1,254" DefaultSmartPortProbe = "80" DefaultSuperSmartPortProbe = "icmp" )
Variables ¶
View Source
var Opt = Options{ AliveSum: 0, Noscan: false, }
Functions ¶
func FormatOutput ¶
func InitConfig ¶
func InitConfig(config *Config) (*Config, error)
func NewTargetGenerator ¶
func NewTargetGenerator(config Config) *targetGenerator
func PrintExtract ¶
func PrintExtract()
func PrintNucleiPoc ¶
func PrintNucleiPoc()
func PrintWorkflow ¶
func PrintWorkflow()
func Printportconfig ¶
func Printportconfig()
Types ¶
type ConfigOption ¶ added in v2.8.6
type ConfigOption struct { Threads int `short:"t" long:"thread" description:"Int, concurrent thread number,linux default: 4000, windows default: 1000"` // 线程数 Exploit bool `short:"e" long:"exploit" description:"Bool,enable nuclei exploit scan"` // 启用漏洞扫描 Verbose bool `short:"v" long:"verbose" description:"Bool, enable active finger scan"` // version level1 PortSpray bool `short:"s" long:"spray" description:"Bool, enable port-first spray generator. if ports number > 500, auto enable"` NoSpray bool `long:"no-spray" description:"Bool, force to close spray"` ExploitName string `short:"E" long:"exploit-name" description:"String, specify nuclei template name"` // 指定漏扫poc名字 ExploitFile string `long:"ef" description:"String, load specified templates file "` // 指定漏扫文件 Filters []string `long:"filter" description:"String, filter formatting(-F) results "` FilterOr bool `long:"filter-or" description:"FilterOr"` Payloads []string `long:"payload" description:"String, specify nuclei payload"` AttackType string `` /* 138-byte string literal not displayed */ Extract []string `long:"extract" description:"String, custom Extract regexp"` Extracts string `long:"extracts" description:"String, choice preset Extract regexp, e.g. --Extracts ip,url"` Delay int `short:"d" long:"timeout" default:"2" description:"Int, socket and http timeout"` HttpsDelay int `short:"D" long:"ssl-timeout" default:"2" description:"Int, ssl and https timeout"` SuffixStr string `long:"suffix" description:"String, url path"` }
type InputOption ¶ added in v2.8.6
type InputOption struct { IP string `short:"i" long:"ip" description:"IP/CIDR, support comma-split ip/cidr, e.g. 192.168.1.1/24,172.16.1.1/24"` Ports string `` /* 173-byte string literal not displayed */ ListFile string `` /* 136-byte string literal not displayed */ IsListInput bool `short:"L" description:"Bool, same as -l, input from stdin"` JsonFile string `short:"j" long:"json" description:"File, list of IP/CIDR"` IsJsonInput bool `short:"J" description:"Bool, same as -j, input from stdin"` WorkFlowName string `short:"w" long:"workflow" description:"String, workflow name('-P workflow' show all workflow)"` IsWorkFlow bool `short:"W" description:"Bool, same as -w, input from stdin"` FormatterFilename string `short:"F" long:"format" description:"File, to be formatted result file"` // 待格式化文件名 }
type IpGenerator ¶
type IpGenerator struct {
// contains filtered or unexported fields
}
func NewIpGenerator ¶
func NewIpGenerator(config Config) *IpGenerator
type MiscOption ¶ added in v2.8.6
type MiscOption struct { Key string `short:"k" long:"key" description:"String, file encrypt key"` Ver bool `long:"version" description:"Bool, show version"` // 输出版本号 Printer string `short:"P" choice:"port" choice:"workflow" choice:"nuclei" choice:"Extract" description:"String, show preset config"` // 输出特定的预设 Debug bool `long:"debug" description:"Bool, show debug info"` PluginDebug bool `long:"plugin-debug" description:"Bool, show plugin debug stack"` Proxy string `long:"proxy" description:"String, socks5 proxy url, e.g. socks5://127.0.0.1:11111"` Dump bool `long:"dump" description:"dump all packet"` }
type OutputOption ¶ added in v2.8.6
type OutputOption struct { Filename string `short:"f" long:"file" description:"String, output filename"` FilePath string `long:"path" description:"String, output file path"` Outputf string `short:"o" long:"output" default:"default" description:"String,cmdline output format, default: full"` FileOutputf string `short:"O" long:"file-output" default:"default" description:"String, file output format, default: json"` // 输出格式 AutoFile bool `long:"af" description:"Bool, auto choice filename"` // 自动生成格式化文件名 HiddenFile bool `long:"hf" description:"Bool, auto choice hidden filename"` // 启用自动隐藏文件 Compress bool `short:"C" long:"compress" description:"Bool, close compress output file"` Tee bool `long:"tee" description:"Bool, keep console output"` // 是否开启命令行输出扫描结果 Quiet bool `short:"q" long:"quiet" description:"Bool, close log output"` // 是否开启命令行输出日志 NoGuess bool `long:"no-guess" description:"Bool, not guess framework on -F "` }
type Runner ¶ added in v2.8.6
type Runner struct { MiscOption `group:"Miscellaneous Options"` InputOption `group:"Input Options"` OutputOption `group:"Output Options"` SmartOption `group:"Smart Options"` ConfigOption `group:"Configuration Options"` Config Config // contains filtered or unexported fields }
func (*Runner) PrepareConfig ¶ added in v2.8.6
func (r *Runner) PrepareConfig()
func (*Runner) ResetGlobals ¶ added in v2.8.6
func (r *Runner) ResetGlobals()
type SmartOption ¶ added in v2.8.6
type SmartOption struct { Mod string `short:"m" long:"mod" choice:"s" choice:"ss" choice:"default" choice:"sc" default:"default" description:"String, smart mod"` // 扫描模式 Ping bool `long:"ping" description:"Bool, alive pre-scan"` NoScan bool `long:"no" description:"Bool, no-plugin, only smart scan"` PortProbe string `long:"sp" default:"default" description:"String, smart-port-probe, smart mod default: 80, supersmart mod default: icmp"` // 启发式扫描预设探针 IpProbe string `long:"ipp" default:"default" description:"String, IP-probe, default: 1,254"` }
Click to show internal directories.
Click to hide internal directories.