Skip to content

Commit

Permalink
Update from new fields, follow core
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Oct 8, 2020
1 parent 942c4e8 commit 2127dfb
Showing 1 changed file with 7 additions and 40 deletions.
47 changes: 7 additions & 40 deletions SearchResult.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package LeakIXClient

import (
"gitlab.nobody.run/tbi/core"
"time"
)

Expand All @@ -14,45 +15,11 @@ type SearchResult struct {
Data string `json:"data"`
Headers map[string][]string `json:"headers"`
Plugin string `json:"plugin"`
Network Network `json:"network"`
GeoLocation GeoLocation `json:"geoip"`
Credentials []*HostServiceCredentials `json:"credentials"`
Software Software `json:"software"`
Network core.Network `json:"network"`
GeoLocation core.GeoLocation `json:"geoip"`
Credentials []*core.HostServiceCredentials `json:"credentials"`
Software core.Software `json:"software"`
Reverse string `json:"reverse"`
Hostname string `json:"hostname"`
}

type HostServiceCredentials struct {
NoAuth bool `json:"noauth"`
Username string `json:"username"`
Password string `json:"password"`
Key string `json:"key"`
Raw []byte `json:"raw"`
}

type Network struct {
OrganisationName string `json:"organization_name"`
ASN int `json:"asn"`
}

type GeoLocation struct {
ContinentName string `json:"continent_name"`
RegionISOCode string `json:"region_iso_code"`
CityName string `json:"city_name"`
CountryISOCode string `json:"country_iso_code"`
CountryName string `json:"country_name"`
RegionName string `json:"region_name"`
GeoPoint GeoPoint `json:"location"`
}

type GeoPoint struct {
Latitude float64 `json:"lat"`
Longitude float64 `json:"lon"`
}

type Software struct {
Name string `json:"name"`
Version string `json:"version"`
OperatingSystem string `json:"os"`
Modules []Software `json:"modules"`
}
Dataset core.DatasetLeak `json:"dataset"`
}

0 comments on commit 2127dfb

Please sign in to comment.