core

package
v2.13.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LinuxDefaultThreads        = 4000
	WindowsMacDefaultThreads   = 1000
	DefaultIpProbe             = []uint{1, 254}
	DefaultSmartPortProbe      = []string{"80", "icmp"}
	DefaultSuperSmartPortProbe = []string{"icmp", "23", "80"}
)
View Source
var Opt = Options{
	AliveSum: 0,
	NoScan:   false,
}

Functions

func AliveMod

func AliveMod(targets interface{}, config Config)
func Banner() string

func DefaultMod

func DefaultMod(targets interface{}, config Config)

直接扫描

func FormatOutput

func FormatOutput(filename, outFilename, outf, filenamef string, filters []string, filterOr bool)

func InitConfig

func InitConfig(config *Config) (*Config, error)

func LoadFile

func LoadFile(file *os.File) []byte

func Pad

func Pad(s string, length int) string

func PrintExtract

func PrintExtract()

func PrintNeutronPoc

func PrintNeutronPoc()

func PrintWorkflow

func PrintWorkflow()

func Printportconfig

func Printportconfig()

func RunTask

func RunTask(config Config)

func SmartMod

func SmartMod(target *utils.CIDR, config Config)

func Usage added in v2.13.3

func Usage() string

Types

type AdvanceOption

type AdvanceOption struct {
	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 neutron template name"` // 指定漏扫poc名字
	ExploitFile string   `long:"ef" description:"String, load specified templates file "`                    // 指定漏扫文件
	Payloads    []string `long:"payload" description:"String, specify neutron payload"`
	AttackType  string   `` /* 195-byte string literal not displayed */
	Extract     []string `long:"extract" description:"String, custom Extract regexp"`
	//SuffixStr   string   `long:"suffix" description:"String, url path"`
	Opsec         bool     `long:"opsec" description:"Bool, opsec mode"`
	Filters       []string `long:"filter" description:"String, filter formatting(-F) results "`
	OutputFilters []string `long:"output-filter" description:"String, Filter output while scanning"`
	ScanFilters   []string `long:"scan-filter" description:"String, Filter Scanning while scanning"`
}

type ConfigOption

type ConfigOption struct {
	Exploit    bool   `short:"e" long:"exploit" description:"Bool, enable neutron exploit scan"`                                       // 启用漏洞扫描
	Verbose    []bool `short:"v" long:"verbose" description:"Bool, enable active finger scan"`                                         // version level1
	Threads    int    `short:"t" long:"thread" description:"Int, concurrent thread number,linux default: 4000, windows default: 1000"` // 线程数
	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"`
}

type InputOption

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"`
	Exclude           string `long:"exclude" description:"IP/CIDR, exclude IP/CIDR, support comma-split"`
	ExcludeList       string `long:"exclude-file" description:"File, exclude IP/CIDR filename"`
	Ports             string `` /* 173-byte string literal not displayed */
	PortConfig        string `long:"port-config" description:"File,custom port config file"`
	ListFile          string `short:"l" long:"list" desgcription:"File, list of IP/CIDR"`
	IsListInput       bool   `short:"L" description:"Bool, same as -l, input from stdin"`
	JsonFile          string `` /* 135-byte string literal not displayed */
	IsJsonInput       bool   `short:"J" description:"Bool, same as -j, input from stdin"`
	FilterOr          bool   `long:"filter-or" description:"FilterOr"`
	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

type MiscOption struct {
	Key     string `short:"k" long:"key" description:"String, file encrypt key"`
	Ver     bool   `long:"version" description:"Bool, show version"` // 输出版本号
	Printer string ``                                                // 输出特定的预设
	/* 129-byte string literal not displayed */
	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"`
}

type Options

type Options struct {
	AliveSum    int32
	NoScan      bool
	PluginDebug bool
}

type OutputOption

type OutputOption struct {
	Filename    string `short:"f" long:"file" description:"String, output filename"`
	FilePath    string `long:"path" description:"String, output file path"`
	Outputf     string `` /* 284-byte string literal not displayed */
	FileOutputf string `` // 输出格式
	/* 126-byte string literal not displayed */
	OutputDelimiter string `long:"output-delimiter" default:"\t" description:"String, output delimiter, default [TAB]"`
	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, When formatting not output guess framework"`
}

type Runner

type Runner struct {
	MiscOption    `group:"Miscellaneous Options"`
	InputOption   `group:"Input Options"`
	OutputOption  `group:"Output Options"`
	SmartOption   `group:"Smart Options"`
	AdvanceOption `group:"Advance Options"`
	ConfigOption  `group:"Configuration Options"`

	Config Config
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner() *Runner

func (*Runner) Close

func (r *Runner) Close(config *Config)

func (*Runner) Init

func (r *Runner) Init() error

func (*Runner) Prepare

func (r *Runner) Prepare() bool

func (*Runner) PrepareConfig

func (r *Runner) PrepareConfig()

func (*Runner) ResetGlobals

func (r *Runner) ResetGlobals()

func (*Runner) Run

func (r *Runner) Run()

type SmartOption

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   `short:"n" long:"no" description:"Bool, just smart scan, return before default scan task"`
	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"`
}

type TargetGenerator

type TargetGenerator struct {
	// contains filtered or unexported fields
}

func NewTargetGenerator

func NewTargetGenerator(config Config) *TargetGenerator

Jump to

Keyboard shortcuts

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