Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Nagios check script that downloads the Phishtank database in CSV and checks it for a string

Notifications You must be signed in to change notification settings

clevvi/nagios-check-phishtank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

nagios-check-phishtank Nagios plugin to check the Phishtank database for a string

Features

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.

Requirements

Bash (or compatible) shell

Configuration

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.

Usage

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).

About

Nagios check script that downloads the Phishtank database in CSV and checks it for a string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published