Skip to content

Instantly share code, notes, and snippets.

View jeffreyiacono's full-sized avatar

Jeff Iacono jeffreyiacono

  • Sierra.ai
  • San Francisco
  • X @jfi
View GitHub Profile
@chrishol
chrishol / gsuite-dig.sh
Created October 16, 2018 22:19
Find G Suite users for a given list of domains
# Step 1: Create list of domains in url-list.txt
# Step 2: Run dig to output a list of MX records
while read url; do
dig $url mx | grep MX | head -n 2 | tail -n 1
done <url-list.txt > mx-results.txt
# Step 3: Grep to isolate and count the Google users