zoomeye

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZoomeyeResult

type ZoomeyeResult struct {
	Code      int `json:"code"`
	Total     int `json:"total"`
	Available int `json:"available"`
	Matches   []struct {
		Rdns string `json:"rdns,omitempty"`
		Jarm string `json:"jarm"`
		Ico  struct {
			Mmh3 string `json:"mmh3"`
			Md5  string `json:"md5"`
		} `json:"ico"`
		Txtfile struct {
			Robotsmd5   string `json:"robotsmd5"`
			Securitymd5 string `json:"securitymd5"`
		} `json:"txtfile"`
		IP       string `json:"ip"`
		Portinfo struct {
			Hostname  string      `json:"hostname"`
			Os        string      `json:"os"`
			Port      int         `json:"port"`
			Service   string      `json:"service"`
			Title     interface{} `json:"title"`
			Version   string      `json:"version"`
			Device    string      `json:"device"`
			Extrainfo string      `json:"extrainfo"`
			Rdns      string      `json:"rdns"`
			App       string      `json:"app"`
			Banner    string      `json:"banner"`
		} `json:"portinfo"`
		Timestamp string `json:"timestamp"`
		Geoinfo   struct {
			Continent struct {
				Code  string `json:"code"`
				Names struct {
					En   string `json:"en"`
					ZhCN string `json:"zh-CN"`
				} `json:"names"`
				GeonameID interface{} `json:"geoname_id"`
			} `json:"continent"`
			Country struct {
				Code  string `json:"code"`
				Names struct {
					En   string `json:"en"`
					ZhCN string `json:"zh-CN"`
				} `json:"names"`
				GeonameID interface{} `json:"geoname_id"`
			} `json:"country"`
			BaseStation string `json:"base_station"`
			City        struct {
				Names struct {
					En   string `json:"en"`
					ZhCN string `json:"zh-CN"`
				} `json:"names"`
				GeonameID interface{} `json:"geoname_id"`
			} `json:"city"`
			Isp          string `json:"isp"`
			Organization string `json:"organization"`
			Idc          string `json:"idc"`
			Location     struct {
				Lon string `json:"lon"`
				Lat string `json:"lat"`
			} `json:"location"`
			Aso          interface{} `json:"aso"`
			Asn          string      `json:"asn"`
			Subdivisions struct {
				Names struct {
					En   string `json:"en"`
					ZhCN string `json:"zh-CN"`
				} `json:"names"`
				GeonameID interface{} `json:"geoname_id"`
			} `json:"subdivisions"`
			PoweredBy string `json:"PoweredBy"`
			Scene     struct {
				En string `json:"en"`
				Cn string `json:"cn"`
			} `json:"scene"`
			OrganizationCN interface{} `json:"organization_CN"`
		} `json:"geoinfo"`
		Protocol struct {
			Application string `json:"application"`
			Probe       string `json:"probe"`
			Transport   string `json:"transport"`
		} `json:"protocol"`
		Honeypot int         `json:"honeypot"`
		Whois    interface{} `json:"whois"`
	} `json:"matches"`
	Facets struct {
		Product []struct {
			Name  string `json:"name"`
			Count int    `json:"count"`
		} `json:"product"`
		Os []struct {
			Name  string `json:"name"`
			Count int    `json:"count"`
		} `json:"os"`
	} `json:"facets"`
}

func ZoomeyeQuery

func ZoomeyeQuery(key string, query string, page int) (*ZoomeyeResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL