MCPcopy Create free account
hub / github.com/SummerSec/SpringExploit / GetIPToUrlsLinks

Function GetIPToUrlsLinks

cmd/commons/utils/ips.go:5–16  ·  view source on GitHub ↗
(ip string, urls []string)

Source from the content-addressed store, hash-verified

3import "github.com/projectdiscovery/mapcidr"
4
5func GetIPToUrlsLinks(ip string, urls []string) []string {
6
7 subnets, _ := mapcidr.IPAddresses(ip)
8 for _, subnet := range subnets {
9 link := "http://" + subnet + "/"
10 urls = append(urls, link)
11 // 增加https
12 links := "https://" + subnet + "/"
13 urls = append(urls, links)
14 }
15 return urls
16}

Callers 1

RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected