diff --git a/k8scan/main.go b/k8scan/main.go index 152ce3b..02bc8c5 100644 --- a/k8scan/main.go +++ b/k8scan/main.go @@ -82,7 +82,7 @@ func main() { } fmt.Printf("%s:%d\t%s\t%s\t%s\n", ip, port, - info.Organization.Handle, info.Organization.Name, info.Organization.Reference) + info.Net.Organization.Handle, info.Net.Organization.Name, info.Net.Organization.Reference) } }(ip.String()) } @@ -153,6 +153,10 @@ func isKubernetesDashboard(ip string, port int) bool { } type ARINResponse struct { + Net NetJSON `json:"net,omitempty"` +} + +type NetJSON struct { Organization OrganizationJSON `json:"orgReg,omitempty"` }