MCPcopy Index your code
hub / github.com/code-scan/Goal / send

Method send

Gsensor/FofaSensor.go:105–119  ·  view source on GitHub ↗
(query string)

Source from the content-addressed store, hash-verified

103 }
104}
105func (s *Fofa) send(query string) []byte {
106 var result []byte
107 query = base64.StdEncoding.EncodeToString([]byte(query))
108 urls := fmt.Sprintf("https://fofa.info/api/v1/search/all?email=%s&key=%s&qbase64=%s&size=10000", s.UserName, s.PassWord, query)
109 log.Println(urls)
110 s.http.New("GET", urls)
111 s.http.Execute()
112 defer s.http.Close()
113 resp, err := s.http.Byte()
114 if err != nil {
115 log.Println(err)
116 return result
117 }
118 return resp
119}

Callers 3

GetSubDomainMethod · 0.95
GetIpMethod · 0.95
GetPortsMethod · 0.95

Calls 4

NewMethod · 0.80
ExecuteMethod · 0.80
ByteMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected