MCPcopy
hub / github.com/shadow1ng/fscan / ScanStrategy

Interface ScanStrategy

core/scanner.go:21–25  ·  view source on GitHub ↗

ScanStrategy 定义扫描策略接口

Source from the content-addressed store, hash-verified

19
20// ScanStrategy 定义扫描策略接口
21type ScanStrategy interface {
22 Execute(ctx context.Context, session *common.ScanSession, info common.HostInfo, ch chan struct{}, wg *sync.WaitGroup)
23 GetPlugins(config *common.Config) ([]string, bool)
24 IsPluginApplicableByName(pluginName string, targetHost string, targetPort int, isCustomMode bool, config *common.Config) bool
25}
26
27// ScanMode 扫描模式类型
28type ScanMode int

Callers 10

RunScanFunction · 0.65
ExecuteScanTasksFunction · 0.65
performHostScanMethod · 0.65
TestCountApplicableTasksFunction · 0.65
ExecuteScanTasksFunction · 0.65
countApplicableTasksFunction · 0.65
performHostScanMethod · 0.65
TestCountApplicableTasksFunction · 0.65

Implementers 1

mockStrategycore/scanner_test.go

Calls

no outgoing calls

Tested by

no test coverage detected