This script just grabs the latest Openphish URL list, reducing the entries to hostnames, saving the results to a plain text file. The output is appropriate for many firewalls and security applications to consume directly as a DNS filter list.
Note: If you do not have an active security team, use the resulting list with caution, as popular hosts will occasionally appear in the results (eg. surveymonkey.com).
- Edit $destFile to specify where you want the output host list to be saved.
- Run OpenPhishList.ps1 from an account with write permissions to the source folder and write/modify privileges to the output file location.