mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
Update main.go
This commit is contained in:
@@ -2,18 +2,17 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/shadow1ng/fscan/Plugins"
|
"github.com/shadow1ng/fscan/Plugins"
|
||||||
"github.com/shadow1ng/fscan/common"
|
"github.com/shadow1ng/fscan/common"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
var config common.InConfig
|
var Info common.HostInfo
|
||||||
common.Flag(&config)
|
common.Flag(&Info)
|
||||||
common.Parse(&config)
|
common.Parse(&Info)
|
||||||
Plugins.Scan(config.HostInfo, config.Flags)
|
Plugins.Scan(Info)
|
||||||
t := time.Now().Sub(start)
|
t := time.Now().Sub(start)
|
||||||
fmt.Printf("[*] The scan is done, spent time: %s\n", t)
|
fmt.Printf("[*] 扫描结束,耗时: %s\n", t)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user