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

Method GetSubDomain

Gsensor/FofaSensor.go:63–76  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

61}
62
63func (s *Fofa) GetSubDomain(i int) {
64 s.result = Result{}
65 resp := s.send(`domain="` + s.Domain + `"`)
66 fofaresult := FofaResult{}
67 json.Unmarshal(resp, &fofaresult)
68 for _, v := range fofaresult.Results {
69 host := v[0]
70 if strings.Contains(host, "://") {
71 host = strings.Split(host, "://")[1]
72 }
73 s.result[host] = v[1]
74 }
75
76}
77
78func (s *Fofa) GetIp(i int) {
79 s.result = Result{}

Callers 1

GetResultMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected