TestBlacklists

TestBlacklists is a program that tests a host or network against a blacklist or set of blacklists. This allows an administrator to find problems existing on their network. I wrote this because I wanted my employer to know about IP addresses with problems before they changed essential services to potentially blacklisted IPs.

Downloading and Compiling

TestBlacklists Usage

Usage: ./TestBlacklists [-osirusoft | -o] [-rss | -r] [-spamcop | -s] [-v] [host | net/mask | hostA-hostB]
   -o | -osirusoft  - use relays.osirusoft.com
   -r | -rss        - use relays.mail-abuse.org (maps-rss)
   -s | -spamcop    - use bl.spamcop.net
   -v               - increase verbosity (once displays hosts as they're being tested, twice is overkill)
   host             - check blacklists for this host
   net/mask         - check blacklists for this network/netmask combination
   hostA-hostB      - check blacklists for hostA-hostB range (inclusive)
           examples: 128.187.0.0/16
                     www.byu.edu
                     128.187.0.0/255.255.0.0
                     128.187.0.0-128.187.255.255
   host or net/mask or hostA-hostB is required, and there should be only one
       

Example

./TestBlacklists -s -r 128.187.171.0/24
Adding check of bl.spamcop.net
Adding check of relays.mail-abuse.org
128.187.171.119 - relays.mail-abuse.org -> 127.0.0.2 (relays.mail-abuse.org)
Finished scanning blacklists
      

Note: This project is no longer actively maintained, but the code is available if you want it.


TuxRocks.com © Copyright Frank Sorenson.
All trademarks and copyrights on this page are owned by their respective owners.
Legal documents here are matters of public record.
Contact me via email at frank AT tuxrocks DOT com.