MCPcopy Create free account
hub / github.com/code-scan/Goal / GetSubDomain

Method GetSubDomain

Gsensor/Quake.go:77–91  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

75}
76
77func (s *Quake) GetSubDomain(i int) {
78 s.result = Result{}
79 resp := s.send(`domain:"` + s.Domain + `"`)
80 // log.Println(string(resp))
81 Quakeresult := QuakeResult{}
82 json.Unmarshal(resp, &Quakeresult)
83 for _, v := range Quakeresult.Data {
84 host := v.Domain
85 // host := fmt.Sprintf("%s:%d", v.Domain, v.Port)
86 if strings.Contains(host, "://") {
87 host = strings.Split(host, "://")[1]
88 }
89 s.result[host] = v.Ip
90 }
91}
92
93func (s *Quake) GetIp(i int) {
94 s.result = Result{}

Callers 1

GetResultMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected