mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 05:01:53 +08:00
perf: 优化输出说明
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user