mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
refactor: 精简化输出,移除冗余启动信息
- 移除showParseSummary开局配置输出 - 移除LogPluginInfo/LogPluginInfoWithPort插件信息输出 - 移除alive_scanner冗余统计输出 - 移除port_scan_start扫描开始提示 - 移除handleUDPPorts SNMP死代码 - 移除相关i18n条目
This commit is contained in:
@@ -180,16 +180,10 @@ func (b *BaseScanStrategy) LogPluginInfo(config *common.Config) {
|
||||
prefix = i18n.GetText("concurrency_plugin")
|
||||
}
|
||||
|
||||
if len(allPlugins) > 0 {
|
||||
pluginStr := formatPluginList(allPlugins)
|
||||
if isCustomMode {
|
||||
common.LogBase(i18n.Tr("plugins_custom_specified", prefix, pluginStr))
|
||||
} else {
|
||||
common.LogBase(i18n.Tr("plugins_info", prefix, pluginStr))
|
||||
}
|
||||
} else {
|
||||
common.LogBase(i18n.Tr("plugins_none", prefix))
|
||||
}
|
||||
// 插件信息不再输出,减少干扰
|
||||
_ = allPlugins
|
||||
_ = isCustomMode
|
||||
_ = prefix
|
||||
}
|
||||
|
||||
// formatPluginList 格式化插件列表(超过5个时精简显示)
|
||||
@@ -226,16 +220,10 @@ func (b *BaseScanStrategy) LogPluginInfoWithPort(targetHost string, targetPort i
|
||||
}
|
||||
}
|
||||
|
||||
if len(applicablePlugins) > 0 {
|
||||
pluginStr := formatPluginList(applicablePlugins)
|
||||
if isCustomMode {
|
||||
common.LogBase(i18n.Tr("plugins_custom_specified", prefix, pluginStr))
|
||||
} else {
|
||||
common.LogBase(i18n.Tr("plugins_info", prefix, pluginStr))
|
||||
}
|
||||
} else {
|
||||
common.LogBase(i18n.Tr("plugins_none", prefix))
|
||||
}
|
||||
// 插件信息不再输出,减少干扰
|
||||
_ = applicablePlugins
|
||||
_ = isCustomMode
|
||||
_ = prefix
|
||||
}
|
||||
|
||||
// ValidateConfiguration 验证扫描配置
|
||||
|
||||
Reference in New Issue
Block a user