From 2d496cafc981e8afd05ea4e5e76c3e0e9d55c70c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Thu, 28 Apr 2022 17:02:48 +0800 Subject: [PATCH] =?UTF-8?q?-h=20=E6=94=AF=E6=8C=81=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/Parse.go | 3 +++ common/ParseIP.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/common/Parse.go b/common/Parse.go index 6208e1c..ea8d0be 100644 --- a/common/Parse.go +++ b/common/Parse.go @@ -119,6 +119,9 @@ func ParseInput(Info *HostInfo) { os.Exit(0) } + if BruteThread <= 0 { + BruteThread = 1 + } if TmpOutputfile != "" { if !strings.Contains(Outputfile, "/") && !strings.Contains(Outputfile, `\`) { Outputfile = getpath() + TmpOutputfile diff --git a/common/ParseIP.go b/common/ParseIP.go index 6c51211..0e9dcf4 100644 --- a/common/ParseIP.go +++ b/common/ParseIP.go @@ -96,6 +96,9 @@ func parseIP(ip string) []string { // return nil // } return []string{ip} + //192.168.1.1-192.168.1.100 + case strings.Contains(ip, "-"): + return parseIP1(ip) //处理单个ip default: testIP := net.ParseIP(ip)