From 4908720acbbb4bdd369a8bfa92c7b73b0ca893cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Tue, 16 Aug 2022 15:10:09 +0800 Subject: [PATCH] =?UTF-8?q?socks=E4=BB=A3=E7=90=86=E6=97=B6,=E8=87=AA?= =?UTF-8?q?=E5=8A=A8-np?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plugins/scanner.go | 2 +- common/Parse.go | 1 + common/config.go | 2 +- common/flag.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/scanner.go b/Plugins/scanner.go index 2fc2bdc..242fc7e 100644 --- a/Plugins/scanner.go +++ b/Plugins/scanner.go @@ -23,7 +23,7 @@ func Scan(info common.HostInfo) { web := strconv.Itoa(common.PORTList["web"]) ms17010 := strconv.Itoa(common.PORTList["ms17010"]) if len(Hosts) > 0 || len(common.HostPort) > 0 { - if common.IsPing == false && len(Hosts) > 0 { + if common.NoPing == false && len(Hosts) > 0 { Hosts = CheckLive(Hosts, common.Ping) fmt.Println("[*] Icmp alive hosts len is:", len(Hosts)) } diff --git a/common/Parse.go b/common/Parse.go index 5b554f8..d4cde12 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -175,6 +175,7 @@ func ParseInput(Info *HostInfo) { } if Socks5Proxy != "" && !strings.HasPrefix(Socks5Proxy, "socks5://") { Socks5Proxy = "socks5://" + Socks5Proxy + NoPing = true } } diff --git a/common/config.go b/common/config.go index 8afdc84..f01721a 100644 --- a/common/config.go +++ b/common/config.go @@ -69,7 +69,7 @@ var ( WebTimeout int64 TmpOutputfile string TmpSave bool - IsPing bool + NoPing bool Ping bool Pocinfo PocInfo IsWebCan bool diff --git a/common/flag.go b/common/flag.go index e00480c..f47139c 100644 --- a/common/flag.go +++ b/common/flag.go @@ -62,7 +62,7 @@ func Flag(Info *HostInfo) { flag.BoolVar(&IsWebCan, "nopoc", false, "not to scan web vul") flag.BoolVar(&IsBrute, "nobr", false, "not to Brute password") flag.IntVar(&BruteThread, "br", 1, "Brute threads") - flag.BoolVar(&IsPing, "np", false, "not to ping") + flag.BoolVar(&NoPing, "np", false, "not to ping") flag.BoolVar(&Ping, "ping", false, "using ping replace icmp") flag.StringVar(&TmpOutputfile, "o", "result.txt", "Outputfile") flag.BoolVar(&TmpSave, "no", false, "not to save output log")