Skip to content

Commit 1b2bafd

Browse files
committed
#1833 Added check for empty collumn in the sql query for amass parser
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent be97a13 commit 1b2bafd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎scanners/amass/parser/parser.js‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ async function parse(fileContent) {
102102
severity: "INFORMATIONAL",
103103
attributes: {
104104
addresses: {
105-
ip: ipObj.address,
106-
cidr: cidrObj.cidr,
107-
asn: asnObj.number,
108-
desc: managedByObj.name
105+
ip: ipObj?.address || null,
106+
cidr: cidrObj?.cidr || null,
107+
asn: asnObj?.number || null,
108+
desc: managedByObj?.name || null
109109
},
110-
domain: domainObj.name,
111-
hostname: subdomainObj.name,
112-
ip_addresses: ipObj.address,
110+
domain: domainObj?.name || null,
111+
hostname: subdomainObj?.name || null,
112+
ip_addresses: ipObj?.address || null,
113113
},
114114
};
115115
});

0 commit comments

Comments
 (0)