View Source ElixirCrt (ElixirCrt v0.1.2)

Documentation for ElixirCrt.

Summary

Functions

Get all of the subdomains that are on crt.sh

Functions

Link to this function

get_subdomains(domain, wildcard \\ true, timeout \\ :infinity)

View Source
@spec get_subdomains(String, Boolean, Interger) :: [String.t()]

Get all of the subdomains that are on crt.sh

Note this can take some time as the upstream server can be slow at times.

Arguments

  • domain : String - The domain that you want to get the subdomains for. eg. "NeuroWinter.com"
  • wildcard : Boolean - If you want to include wildcard domains in the search. eg *.domain.com
  • timeout : Interger or :infinity - The timeout for the request in milliseconds.

Examples

iex(2)> ElixirCrt.get_subdomains("NeuroWinter.com")
{:ok, ["neurowinter.com", "sni.cloudflaressl.com", "mta-sts.neurowinter.com"]}