refactor: 输出格式重构,去掉所有插件的多线程,因为多线程会导致结果不准确,加入进度条

This commit is contained in:
ZacharyZcR
2025-01-01 07:18:36 +08:00
parent 277ea5d332
commit ceede3cd68
49 changed files with 1448 additions and 2911 deletions
+4 -4
View File
@@ -149,12 +149,12 @@ func read(text []byte, host string) error {
}
// 构建基础结果
result := fmt.Sprintf("[*] NetInfo 扫描结果")
result += fmt.Sprintf("\n[*] 目标主机: %s", host)
result := fmt.Sprintf("NetInfo 扫描结果")
result += fmt.Sprintf("\n目标主机: %s", host)
if name != "" {
result += fmt.Sprintf("\n[*] 主机名: %s", name)
result += fmt.Sprintf("\n主机名: %s", name)
}
result += "\n[*] 发现的网络接口:"
result += "\n发现的网络接口:"
// 用于分类存储地址
var ipv4Addrs []string