(i int)
| 76 | } |
| 77 | |
| 78 | func (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 | |
| 92 | func (s *Fofa) GetPorts() { |
| 93 | s.result = Result{} |