From bb544cfbf398a624fe3333a87be55e57f832db5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Thu, 21 Apr 2022 09:56:07 +0800 Subject: [PATCH] update README.md --- Plugins/redis.go | 4 ---- README.md | 6 ++++++ common/Parse.go | 4 ---- common/config.go | 2 -- common/flag.go | 6 +++--- 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/Plugins/redis.go b/Plugins/redis.go index 4bdbc67..80a0b78 100644 --- a/Plugins/redis.go +++ b/Plugins/redis.go @@ -164,10 +164,6 @@ func Expoilt(realhost string, conn net.Conn) error { } } err = recoverdb(dbfilename, dir, conn) - //fmt.Println("dbfilename:") - //fmt.Println(dbfilename) - //fmt.Println("dir:") - //fmt.Println(dir) return err } diff --git a/README.md b/README.md index b523e51..005552f 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,12 @@ go build -ldflags="-s -w " -trimpath 指定Url文件扫描 -wt int web访问超时时间 (default 5) + -pocpath string + 指定poc路径 + -usera string + 在原有用户字典基础上,新增新用户 + -pwda string + 在原有密码字典基础上,增加新密码 ``` ## 运行截图 diff --git a/common/Parse.go b/common/Parse.go index 4225dc6..6208e1c 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -166,8 +166,6 @@ func ParseScantype(Info *HostInfo) { switch Info.Scantype { case "rdp": Info.Ports = "3389" - case "wmi": - Info.Ports = "135" case "web": Info.Ports = Webport case "webonly": @@ -176,8 +174,6 @@ func ParseScantype(Info *HostInfo) { Info.Ports = "445" case "cve20200796": Info.Ports = "445" - case "smb2": - Info.Ports = "445" case "portscan": Info.Ports = DefaultPorts + "," + Webport case "main": diff --git a/common/config.go b/common/config.go index a33393e..d1c9745 100644 --- a/common/config.go +++ b/common/config.go @@ -37,8 +37,6 @@ var PORTList = map[string]int{ "portscan": 0, "icmp": 0, "main": 0, - "smb2": 1000004, - "wmi": 1000005, } var Outputfile = getpath() + "result.txt" diff --git a/common/flag.go b/common/flag.go index 576b167..2c04ee1 100644 --- a/common/flag.go +++ b/common/flag.go @@ -22,8 +22,8 @@ func Flag(Info *HostInfo) { flag.StringVar(&NoHosts, "hn", "", "the hosts no scan,as: -hn 192.168.1.1/24") flag.StringVar(&Info.Ports, "p", DefaultPorts, "Select a port,for example: 22 | 1-65535 | 22,80,3306") flag.StringVar(&PortAdd, "pa", "", "add port base DefaultPorts,-pa 3389") - flag.StringVar(&UserAdd, "usera", "", "add port base DefaultUsers,-usera user") - flag.StringVar(&PassAdd, "pwda", "", "add port base DefaultPasses,-pwda password") + flag.StringVar(&UserAdd, "usera", "", "add a user base DefaultUsers,-usera user") + flag.StringVar(&PassAdd, "pwda", "", "add a password base DefaultPasses,-pwda password") flag.StringVar(&NoPorts, "pn", "", "the ports no scan,as: -pn 445") flag.StringVar(&Info.Command, "c", "", "exec command (ssh)") flag.StringVar(&Info.SshKey, "sshkey", "", "sshkey file (id_rsa)") @@ -39,7 +39,7 @@ func Flag(Info *HostInfo) { flag.StringVar(&Userfile, "userf", "", "username file") flag.StringVar(&Passfile, "pwdf", "", "password file") flag.StringVar(&PortFile, "portf", "", "Port File") - flag.StringVar(&PocPath, "pocpath", "", "Port File") + flag.StringVar(&PocPath, "pocpath", "", "poc file path") flag.StringVar(&RedisFile, "rf", "", "redis file to write sshkey file (as: -rf id_rsa.pub) ") flag.StringVar(&RedisShell, "rs", "", "redis shell to write cron file (as: -rs 192.168.1.1:6666) ") flag.BoolVar(&IsWebCan, "nopoc", false, "not to scan web vul")