From 6c6f522bc9c9167df0d291332c1baea316f13161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Wed, 30 Nov 2022 10:49:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E8=B7=AF=E5=BE=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/Parse.go | 10 +----- common/config.go | 81 ++++++++++++++++++++++++------------------------ 2 files changed, 41 insertions(+), 50 deletions(-) diff --git a/common/Parse.go b/common/Parse.go index 59281e7..886601c 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -7,8 +7,6 @@ import ( "fmt" "net/url" "os" - "os/exec" - "path/filepath" "strconv" "strings" ) @@ -137,13 +135,7 @@ func ParseInput(Info *HostInfo) { if BruteThread <= 0 { BruteThread = 1 } - if TmpOutputfile != "" { - if !strings.Contains(TmpOutputfile, "/") && !strings.Contains(TmpOutputfile, `\`) { - Outputfile = getpath() + TmpOutputfile - } else { - Outputfile = TmpOutputfile - } - } + if TmpSave == true { IsSave = false } diff --git a/common/config.go b/common/config.go index 1d770fe..605e12e 100644 --- a/common/config.go +++ b/common/config.go @@ -60,47 +60,46 @@ type PocInfo struct { } var ( - Path string - Scantype string - Command string - SshKey string - Domain string - Username string - Password string - Proxy string - Timeout int64 = 3 - WebTimeout int64 = 5 - TmpOutputfile string - TmpSave bool - NoPing bool - Ping bool - Pocinfo PocInfo - IsWebCan bool - IsBrute bool - RedisFile string - RedisShell string - Userfile string - Passfile string - HostFile string - PortFile string - PocPath string - Threads int - URL string - UrlFile string - Urls []string - NoPorts string - NoHosts string - SC string - PortAdd string - UserAdd string - PassAdd string - BruteThread int - LiveTop int - Socks5Proxy string - Hash string - HashBytes []byte - HostPort []string - IsWmi bool + Path string + Scantype string + Command string + SshKey string + Domain string + Username string + Password string + Proxy string + Timeout int64 = 3 + WebTimeout int64 = 5 + TmpSave bool + NoPing bool + Ping bool + Pocinfo PocInfo + IsWebCan bool + IsBrute bool + RedisFile string + RedisShell string + Userfile string + Passfile string + HostFile string + PortFile string + PocPath string + Threads int + URL string + UrlFile string + Urls []string + NoPorts string + NoHosts string + SC string + PortAdd string + UserAdd string + PassAdd string + BruteThread int + LiveTop int + Socks5Proxy string + Hash string + HashBytes []byte + HostPort []string + IsWmi bool ) var (