From d6c1c794e4990a131ca38281dcfcb399d7459294 Mon Sep 17 00:00:00 2001 From: caffix Date: Thu, 28 Nov 2024 23:35:59 -0500 Subject: [PATCH] additional update --- initdb-assetdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb-assetdb.sh b/initdb-assetdb.sh index 7e26b32..801ebfc 100644 --- a/initdb-assetdb.sh +++ b/initdb-assetdb.sh @@ -39,7 +39,7 @@ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$AMASS_DB" <<-EOSQ SELECT srvs.content->>'name' AS "name", ips.content->>'address' AS "addr" FROM ((((entities AS fqdns INNER JOIN edges AS r1 ON fqdns.entity_id = r1.from_entity_id) - INNER JOIN entities AS srvs ON r1.to_entity_id = srvs.id) + INNER JOIN entities AS srvs ON r1.to_entity_id = srvs.entity_id) INNER JOIN edges AS r2 ON srvs.entity_id = r2.from_entity_id) INNER JOIN entities AS ips ON r2.to_entity_id = ips.entity_id) WHERE fqdns.etype = 'FQDN' AND srvs.etype = 'FQDN' AND ips.etype = 'IPAddress'