Skip to content

Instantly share code, notes, and snippets.

@jfrantz1-r7
Created November 27, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jfrantz1-r7/6a95ee4e50ec844952dbd6e2999a3bf2 to your computer and use it in GitHub Desktop.
Save jfrantz1-r7/6a95ee4e50ec844952dbd6e2999a3bf2 to your computer and use it in GitHub Desktop.
SELECT da.ip_address, da.host_name, dos.name AS OS, dos.version AS os_version, das.port, dp.name AS protocol, ds.name AS service, dsf.name AS service_name, dsf.version AS service_version
FROM dim_asset_service das
JOIN dim_service ds USING (service_id)
JOIN dim_protocol dp USING (protocol_id)
JOIN dim_asset da USING (asset_id)
JOIN dim_operating_system dos USING (operating_system_id)
JOIN dim_service_fingerprint dsf USING (service_fingerprint_id)
ORDER BY da.ip_address, das.port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment