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