From 411467dd932049ee946e5c8a9b291d9b0260b011 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Mon, 19 Jan 2026 14:49:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=92=8C=E9=A2=9C=E8=89=B2=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 网段统计格式改为 10.253.0.0/16 网段存活: 26 - WebTitle基础信息改为白色,指纹识别单独绿色输出 - 移除重复的端口数量输出 --- common/i18n/locales/en.yaml | 4 ++-- common/i18n/locales/zh.yaml | 4 ++-- core/service_scanner.go | 1 - plugins/web/webtitle.go | 6 ++++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/common/i18n/locales/en.yaml b/common/i18n/locales/en.yaml index ef9d726..bee433c 100644 --- a/common/i18n/locales/en.yaml +++ b/common/i18n/locales/en.yaml @@ -266,9 +266,9 @@ host_alive: proxy_mode_disable_icmp: other: "Proxy mode detected, disabling ICMP scan" segment_16_alive: - other: "/16 segment {{.Arg1}} alive: {{.Arg2}}" + other: "{{.Arg1}}.0.0/16 segment alive: {{.Arg2}}" segment_24_alive: - other: "/24 segment {{.Arg1}} alive: {{.Arg2}}" + other: "{{.Arg1}}.0/24 segment alive: {{.Arg2}}" # ========================= Alive Scan Stats Messages ========================= parse_target_failed: diff --git a/common/i18n/locales/zh.yaml b/common/i18n/locales/zh.yaml index a61abb9..e3f4a64 100644 --- a/common/i18n/locales/zh.yaml +++ b/common/i18n/locales/zh.yaml @@ -266,9 +266,9 @@ host_alive: proxy_mode_disable_icmp: other: "检测到代理模式,自动禁用ICMP扫描" segment_16_alive: - other: "/16网段 {{.Arg1}} 存活: {{.Arg2}}" + other: "{{.Arg1}}.0.0/16 网段存活: {{.Arg2}}" segment_24_alive: - other: "/24网段 {{.Arg1}} 存活: {{.Arg2}}" + other: "{{.Arg1}}.0/24 网段存活: {{.Arg2}}" # ========================= 存活扫描统计消息 ========================= parse_target_failed: diff --git a/core/service_scanner.go b/core/service_scanner.go index 50dcb47..f5e52a5 100644 --- a/core/service_scanner.go +++ b/core/service_scanner.go @@ -261,7 +261,6 @@ func (s *ServiceScanStrategy) discoverAlivePorts(hosts []string, config *common. // 根据扫描模式选择端口扫描方式 if len(hosts) > 0 { alivePorts = EnhancedPortScan(hosts, config.Target.Ports, int64(config.Timeout.Seconds()), config, state) - common.LogBase(i18n.Tr("alive_ports_count", len(alivePorts))) } return alivePorts diff --git a/plugins/web/webtitle.go b/plugins/web/webtitle.go index 24a84f8..9032eb8 100644 --- a/plugins/web/webtitle.go +++ b/plugins/web/webtitle.go @@ -60,10 +60,12 @@ func (p *WebTitlePlugin) Scan(ctx context.Context, info *common.HostInfo, config if server != "" { msg += fmt.Sprintf(" %s", server) } + // 基础信息用白色输出 + common.LogInfo(msg) + // 指纹信息单独用绿色输出 if len(fingerprints) > 0 { - msg += fmt.Sprintf(" %v", fingerprints) + common.LogSuccess(fmt.Sprintf("WebFinger %s %v", target, fingerprints)) } - common.LogSuccess(msg) return &WebScanResult{ Type: plugins.ResultTypeWeb,