Documentation
¶
Index ¶
Constants ¶
View Source
const BaseUrl = "https://api.shodan.io"
View Source
const ExceptionStatement string = "Missing search term and/or API key"
Variables ¶
This section is empty.
Functions ¶
func TestGoogle ¶
func TestGoogle()
Types ¶
type Client ¶
type Client struct {
ApiKey string
}
func (*Client) HostIpPortSearch ¶
func (s *Client) HostIpPortSearch()
func (*Client) HostSearch ¶
func (s *Client) HostSearch(q string) (*HostSearch, error)
func (*Client) SetFlagShodanKey ¶
type Host ¶
type Host struct {
OS string `json:"os"`
TimeStamp string `json:"timestamp"`
ISP string `json:"isp"`
ASN string `json:"asn"`
Hostnames []string `json:"hostnames"`
Location HostLocation `json:"location"`
IP int64 `json:"ip"`
Domains []string `json:"domains"`
Org string `json:"org"`
Data string `json:"data"`
Port int `json:"port"`
IPString string `json:"ip_str"`
}
type HostLocation ¶
type HostLocation struct {
City string `json:"city"`
RegionCode string `json:"region_code"`
AreaCode int `json:"area_code"`
Longitude float32 `json:"longitude"`
CountryCode3 string `json:"country_code3"`
CountryName string `json:"country_name"`
PostalCode string `json:"postal_code"`
DMACode int `json:"dma_code"`
CountryCode string `json:"country_code"`
Latitude float32 `json:"latitude"`
}
type HostSearch ¶
type HostSearch struct {
Matches []Host `json:"matches"`
}
Click to show internal directories.
Click to hide internal directories.