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

Method GetIp

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

Source from the content-addressed store, hash-verified

76}
77
78func (s *Fofa) GetIp(i int) {
79 s.result = Result{}
80 resp := s.send(`ip="` + s.Domain + `" && type=subdomain`)
81 fofaresult := FofaResult{}
82 json.Unmarshal(resp, &fofaresult)
83 for _, v := range fofaresult.Results {
84 host := v[0]
85 if strings.Contains(host, "://") {
86 host = strings.Split(host, "://")[1]
87 }
88 s.result[host] = v[1]
89 }
90}
91
92func (s *Fofa) GetPorts() {
93 s.result = Result{}

Callers 1

GetResultMethod · 0.95

Calls 1

sendMethod · 0.95

Tested by

no test coverage detected