Skip to content

Commit

Permalink
additional update
Browse files Browse the repository at this point in the history
  • Loading branch information
caffix committed Nov 29, 2024
1 parent 81dd4a4 commit d6c1c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initdb-assetdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d6c1c79

Please sign in to comment.