CensysEx.Certs (censys_ex v1.2.0) View Source
CensysEx wrapper for the search.censys.io v2 API for the "certs" resource
Link to this section Summary
Functions
Hits the Censys Certs hosts API. Returns a stream of results
Hits the Censys View Certs V1 API.
Link to this section Functions
Specs
get_hosts_by_cert(String.t()) :: CensysEx.result_stream(map())
Hits the Censys Certs hosts API. Returns a stream of results
Examples
CensysEx.Certs.get_hosts_by_cert("fb444eb8e68437bae06232b9f5091bccff62a768ca09e92eb5c9c2cf9d17c426")
|> Stream.take(25)
|> Stream.map(&Map.get(&1, "ip"))
|> Enum.to_list()
["10.0.0.6", "10.2.0.1", ...]
Specs
view(String.t()) :: CensysEx.result()
Hits the Censys View Certs V1 API.
Examples
CensysEx.Certs.view("fb444eb8e68437bae06232b9f5091bccff62a768ca09e92eb5c9c2cf9d17c426")