nem.ec

Programming Information Security Recipes Personal Code Snippets

Search for email domains in a set of text files and find the most popular

Some description

Requires ripgrep.

rg --no-filename -N -i "^.*?(@\w+\.com).*?$" '/home/me/leaks' -r '$1' > hosts.txt
grep -v WARNING hosts.txt | sort -f | uniq -ci | sort -rn > uniq_hosts.txt
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.