Skip to content

Instantly share code, notes, and snippets.

@IAmStoxe
Created July 7, 2020 22:54
Show Gist options
  • Select an option

  • Save IAmStoxe/3af05cf3ccc125b889775f190e33638f to your computer and use it in GitHub Desktop.

Select an option

Save IAmStoxe/3af05cf3ccc125b889775f190e33638f to your computer and use it in GitHub Desktop.
Quickly query a certificate transparancy log to get known subdomains for a given domain.
#!/bin/bash
# Usage: ./lazycrt.sh MyDomain.com
curl -s "https://crt.sh/?q=%25.$1&output=json" | jq -r '.[].name_value' | sed 's/\*\.//g' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment