(i int)
| 61 | } |
| 62 | |
| 63 | func (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 | |
| 78 | func (s *Fofa) GetIp(i int) { |
| 79 | s.result = Result{} |