This commit is contained in:
shadow1ng
2020-11-17 13:15:08 +08:00
parent 30c1f267c2
commit a33ed4cfeb
6 changed files with 76 additions and 34 deletions
+1
View File
@@ -61,6 +61,7 @@ type HostInfo struct {
Ports string
Url string
Timeout int64
WebTimeout int64
Scantype string
Isping bool
Threads int
+1
View File
@@ -35,6 +35,7 @@ func Flag(Info *HostInfo) {
flag.StringVar(&Info.Passfile,"pwdf","","password file")
flag.StringVar(&Info.Outputfile,"o","result.txt","Outputfile")
flag.Int64Var(&Info.Timeout,"time",3,"Set timeout")
flag.Int64Var(&Info.WebTimeout,"wt",3,"Set web timeout")
flag.StringVar(&Info.Scantype,"m","all","Select scan type ,as: -m ssh")
flag.StringVar(&Info.RedisFile,"rf","","redis file to write sshkey file (as: -rf id_rsa.pub) ")
flag.StringVar(&Info.RedisShell,"rs","","redis shell to write cron file (as: -rs 192.168.1.1:6666) ")