fscan/main.go
2024-12-22 02:31:29 +08:00

21 lines
372 B
Go

package main
import (
"fmt"
"github.com/shadow1ng/fscan/Common"
"github.com/shadow1ng/fscan/Core"
"os"
"time"
)
func main() {
start := time.Now()
var Info Common.HostInfo
Common.Flag(&Info)
if err := Common.Parse(&Info); err != nil {
os.Exit(1) // 或者其他错误处理
}
Core.Scan(Info)
fmt.Printf("[*] 扫描结束,耗时: %s\n", time.Since(start))
}