mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-14 13:22:35 +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 (
|
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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user