ScanStrategy 定义扫描策略接口
| 19 | |
| 20 | // ScanStrategy 定义扫描策略接口 |
| 21 | type 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 扫描模式类型 |
| 28 | type ScanMode int |
no outgoing calls
no test coverage detected