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,