emailo is a command line tool for parsing and analyzing emails from different files. Might be helpful for scraping and investigating dumps from breaches.
emailo is a Python package, so I strongly recommend you to install it in separate virtualenv
.
$ pip install emailo
Parsing simple SQL dump:
$ emailo parse ~/Dumps/example.sql
john@example.com
bill@example.net
alex@example.org
troy@example.com
...
You can filter emails by domain using endswith
options like so:
$ emailo parse ~/Dumps/example.sql --endswith=@example.com
john@example.com
troy@example.com
...
emailo will output emails in stdout
, don't forget to save them somewhere:
$ emailo parse ~/Dumps/example.sql > emails.txt
Sometimes you need to know which domains are most popular in your email list:
$ emailo domains ~/Lists/emails.txt
example.com 2
example.net 1
example.org 1
Or you can get percentage value:
$ emailo domains ~/Lists/emails.txt --percentage
example.com 50.00%
example.net 25.00%
example.org 25.00%
If there is a missing functionality that you need, don't hesitate to create an issue.