mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 04:31:52 +08:00
fix: 优化输出格式和颜色显示
- 网段统计格式改为 10.253.0.0/16 网段存活: 26 - WebTitle基础信息改为白色,指纹识别单独绿色输出 - 移除重复的端口数量输出
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user