From 705f0a30a4cfe42691d79037a70c12d945e76bf5 Mon Sep 17 00:00:00 2001 From: caffix Date: Sun, 8 Sep 2024 14:17:05 -0400 Subject: [PATCH] fixed the AutnumRecord query --- cmd/amass/subs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/amass/subs.go b/cmd/amass/subs.go index bd97aa2c6..50548caf1 100644 --- a/cmd/amass/subs.go +++ b/cmd/amass/subs.go @@ -374,7 +374,7 @@ func fillCache(cache *ASNCache, db *graph.Graph) error { } for _, rel := range rels { - if asset, err := db.DB.FindById(rel.ID, start); err == nil && asset != nil { + if asset, err := db.DB.FindById(rel.ToAsset.ID, start); err == nil && asset != nil { if autnum, ok := asset.Asset.(*whois.AutnumRecord); ok && autnum != nil { desc = autnum.Handle + " - " + autnum.Name break