-
Notifications
You must be signed in to change notification settings - Fork 522
Targeting Basics
khast3x edited this page Jan 31, 2020
·
8 revisions
h8mail is very flexible with finding emails. Since h8mail uses regular expressions to catch emails, you can target documents or html pages. h8mail will efficiently look for email patterns to target.
The simplest way to target an email is with -t
:
$ h8mail -t john.smith@fcorp.com
You can add multiple targets in a single run:
$ h8mail -t john.smith@fcorp.com alice.smith@fcorp.com
You can tell h8mail to look for emails in files:
$ h8mail -t my_targets.txt more_targets.html
And even folders. This includes globing (*):
$ h8mail -t crawled_website/
$ h8mail -t data_dump/*.sql data_dump/*.html
h8mail can search for email patterns in web pages, and automatically target them using -u
or --url
. h8mail can target URLs from the command line directly, or from files and folders, with one URL per line.
Such as:
$ h8mail -u fcorp.com/contacts
$ h8mail -u my_extracted_urls.txt
When using -u
, h8mail will use a generic User Agent instead of the explicit one, used for APIs.
You can read about more advanced targeting here.