Skip to content

Commit 28915ef

Browse files
committed
使用-i参数时加入https协议,不在仅仅是http协议
1 parent 35b7c8e commit 28915ef

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd/commons/core/runner.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (r *Runner) Run() {
5353
return
5454
}
5555

56-
log.Debugln("URLs: ", urls)
56+
log.Debugln("URLs Numbers: ", len(urls))
5757
var i = 0
5858
k := r.options.Thread
5959
var wg sync.WaitGroup

cmd/commons/utils/ips.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ func GetIPToUrlsLinks(ip string, urls []string) []string {
88
for _, subnet := range subnets {
99
link := "http://" + subnet + "/"
1010
urls = append(urls, link)
11+
// 增加https
12+
links := "https://" + subnet + "/"
13+
urls = append(urls, links)
1114
}
1215
return urls
1316
}

0 commit comments

Comments
 (0)