This plugin downloads the Phishtank database in CSV or XML and checks it for a string.
The database is only refreshed every 60 minutes (by default), so it is safe to run the check script frequently (eg. against many domains).
There is no need to check for a fully qualified domain name. If your domain names is www.example.org, it is safe to search 'example' or 'example.org'.
- Use CSV if you want to match a domain name (or part thereof). CSV is faster, as it is a smaller file.
- Use XML if you want to match an IP address, CIDR range or AS number. XML is slower due to the much larger file size, but has more data.
Bash (or compatible) shell
The configuration variables at the top of the script determine:
- where to store the downloaded CSV database (tmp_folder)
- how frequently to refresh the CSV database (file_expiry_mins)
- Phishtank API key (phishtank_api_key)
The Phishtank API key can be obtained for free at: https://www.phishtank.com/api_register.php. It is possible to operate the script without the API key, but the number of times per day the database may be downloaded will be restricted. Refer to Phishtank's Developer Info page for details.
Syntax:
check_phishtank <search string> [xml|csv]
<search string>
is the domain/IP/CIDR range/ASN (or part thereof) to check the Phishtank database for.
xml
or csv
specify the Phishtank database file to use. CSV is faster, but does not include CIDR range or AS number (for example).