perf: 优化输出说明

This commit is contained in:
ZacharyZcR
2024-12-22 02:31:29 +08:00
parent eab41f6018
commit 2e3ccee2e0
3 changed files with 94 additions and 84 deletions
+4 -1
View File
@@ -4,6 +4,7 @@ import (
"fmt"
"github.com/shadow1ng/fscan/Common"
"github.com/shadow1ng/fscan/Core"
"os"
"time"
)
@@ -11,7 +12,9 @@ func main() {
start := time.Now()
var Info Common.HostInfo
Common.Flag(&Info)
Common.Parse(&Info)
if err := Common.Parse(&Info); err != nil {
os.Exit(1) // 或者其他错误处理
}
Core.Scan(Info)
fmt.Printf("[*] 扫描结束,耗时: %s\n", time.Since(start))
}