fix: 优化输出格式和颜色显示

- 网段统计格式改为 10.253.0.0/16 网段存活: 26
- WebTitle基础信息改为白色,指纹识别单独绿色输出
- 移除重复的端口数量输出
This commit is contained in:
ZacharyZcR
2026-01-19 14:49:16 +08:00
parent 490cdbf076
commit 411467dd93
4 changed files with 8 additions and 7 deletions
+4 -2
View File
@@ -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,