Skip to content

Commit 71bae33

Browse files
committed
changed node titles for Organizations and TLSCertificates
1 parent c691511 commit 71bae33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/viz/viz.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
oamcert "github.com/owasp-amass/open-asset-model/certificate"
1616
"github.com/owasp-amass/open-asset-model/contact"
1717
oamdns "github.com/owasp-amass/open-asset-model/dns"
18+
"github.com/owasp-amass/open-asset-model/org"
1819
oamreg "github.com/owasp-amass/open-asset-model/registration"
1920
)
2021

@@ -212,8 +213,10 @@ func newNode(db repository.Repository, idx int, a *types.Entity, since time.Time
212213
case *contact.Location:
213214
parts := []string{v.BuildingNumber, v.StreetName, v.City, v.Province, v.PostalCode}
214215
key = strings.Join(parts, " ")
216+
case *org.Organization:
217+
key = "Name: " + v.Name
215218
case *oamcert.TLSCertificate:
216-
key = "x509 Serial Number: " + v.SerialNumber
219+
key = "x509 Common Name: " + v.SubjectCommonName
217220
}
218221
title := atype + ": " + key
219222

0 commit comments

Comments
 (0)