2020-12-29 17:17:10 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
2022-02-25 15:29:45 +08:00
|
|
|
"fmt"
|
2024-12-18 22:00:18 +08:00
|
|
|
"github.com/shadow1ng/fscan/Common"
|
2024-12-19 15:24:10 +08:00
|
|
|
"github.com/shadow1ng/fscan/Core"
|
2024-12-22 02:31:29 +08:00
|
|
|
"os"
|
2022-02-25 15:29:45 +08:00
|
|
|
"time"
|
2020-12-29 17:17:10 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func main() {
|
2022-02-25 15:29:45 +08:00
|
|
|
start := time.Now()
|
2024-12-19 16:15:53 +08:00
|
|
|
var Info Common.HostInfo
|
2024-12-18 22:00:18 +08:00
|
|
|
Common.Flag(&Info)
|
2024-12-22 02:31:29 +08:00
|
|
|
if err := Common.Parse(&Info); err != nil {
|
|
|
|
|
os.Exit(1) // 或者其他错误处理
|
|
|
|
|
}
|
2024-12-19 15:24:10 +08:00
|
|
|
Core.Scan(Info)
|
2023-11-13 16:23:19 +08:00
|
|
|
fmt.Printf("[*] 扫描结束,耗时: %s\n", time.Since(start))
|
2020-12-29 17:17:10 +08:00
|
|
|
}
|