From f3b0c4a6d2ad9093f454c438b07f8d3c76368bf3 Mon Sep 17 00:00:00 2001 From: shadow1ng Date: Sat, 29 May 2021 15:58:16 +0800 Subject: [PATCH] update --- Plugins/ms17017.go | 4 ---- common/flag.go | 1 - go.mod | 4 +++- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Plugins/ms17017.go b/Plugins/ms17017.go index b8cefa8..61ccf8e 100644 --- a/Plugins/ms17017.go +++ b/Plugins/ms17017.go @@ -126,9 +126,6 @@ func MS17010Scan(info *common.HostInfo) error { //} else{fmt.Printf("\033[33m%s\tMS17-010\t(%s)\033[0m\n", ip, os)} result := fmt.Sprintf("[+] %s\tMS17-010\t(%s)", ip, os) common.LogSuccess(result) - if common.SC != "" { - MS17010EXP(info) - } // detect present of DOUBLEPULSAR SMB implant trans2SessionSetupRequest[28] = treeID[0] trans2SessionSetupRequest[29] = treeID[1] @@ -144,7 +141,6 @@ func MS17010Scan(info *common.HostInfo) error { } if reply[34] == 0x51 { - //fmt.Printf("DOUBLEPULSAR SMB IMPLANT in %s\n", ip) result := fmt.Sprintf("[+] %s has DOUBLEPULSAR SMB IMPLANT", ip) common.LogSuccess(result) } diff --git a/common/flag.go b/common/flag.go index 04ad1d7..119159c 100644 --- a/common/flag.go +++ b/common/flag.go @@ -48,6 +48,5 @@ func Flag(Info *HostInfo) { flag.StringVar(&Pocinfo.Cookie, "cookie", "", "set poc cookie") flag.Int64Var(&Pocinfo.Timeout, "wt", 5, "Set web timeout") flag.IntVar(&Pocinfo.Num, "num", 20, "poc rate") - flag.StringVar(&SC, "sc", "", "ms17 sc,as -sc x86add -sc x64add") flag.Parse() } diff --git a/go.mod b/go.mod index 0970ace..31007cf 100644 --- a/go.mod +++ b/go.mod @@ -7,10 +7,12 @@ require ( github.com/go-sql-driver/mysql v1.6.0 github.com/golang/protobuf v1.3.4 github.com/google/cel-go v0.6.0 + github.com/hirochachacha/go-smb2 v1.0.10 github.com/jlaffaye/ftp v0.0.0-20210307004419-5d4190119067 github.com/lib/pq v1.10.1 + github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca github.com/stacktitan/smb v0.0.0-20190531122847-da9a425dceb8 - golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c + golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de golang.org/x/net v0.0.0-20200301022130-244492dfa37a golang.org/x/text v0.3.2 google.golang.org/genproto v0.0.0-20200416231807-8751e049a2a0