За да стартираме проекта, трябва да имаме dnspython модул инсталиран, за целта пишем в конзолата : pip install dnspython
Проекта работи като приема произволен брой аргументи ( IP адреси , >= 1 ),
Примерно извикване на скрипта:
python .\blacklist-check.py 77.85.140.106 75.86.141.126
Примерен изход :
The IP address: 77.85.140.106 is found in the following Spamhaus public IP zone: 127.0.0.11 (zen.spamhaus.org) The IP address: 77.85.140.106 is NOT found in xbl.spamhaus.org The IP address: 77.85.140.106 is NOT found in css.spamhaus.org The IP address: 77.85.140.106 is found in the following Spamhaus public IP zone: 127.0.0.11 (pbl.spamhaus.org) The IP address: 77.85.140.106 is NOT found in sbl.spamhaus.org The IP address: 77.85.140.106 is found in the following Spamhaus public IP zone: 127.255.255.252 (bcl.spamhaus.org) The IP address: 77.85.140.106 is found in the following Spamhaus public IP zone: 127.0.1.255 (dbl.spamhaus.org) The IP address: 77.85.140.106 is NOT found in hbl.spamhaus.org
The IP address: 75.86.141.126 is found in the following Spamhaus public IP zone: 127.0.0.10 (zen.spamhaus.org) The IP address: 75.86.141.126 is NOT found in xbl.spamhaus.org The IP address: 75.86.141.126 is NOT found in css.spamhaus.org The IP address: 75.86.141.126 is found in the following Spamhaus public IP zone: 127.0.0.10 (pbl.spamhaus.org) The IP address: 75.86.141.126 is NOT found in sbl.spamhaus.org The IP address: 75.86.141.126 is found in the following Spamhaus public IP zone: 127.255.255.252 (bcl.spamhaus.org) The IP address: 75.86.141.126 is found in the following Spamhaus public IP zone: 127.0.1.255 (dbl.spamhaus.org) The IP address: 75.86.141.126 is NOT found in hbl.spamhaus.org