Skip to main content

Easy DNSBL querying

Project description

A first stab at writing something that could be construed as a python script. Aims to simplify querying multiple DNSBLs.

Usage

Run the program with an argument of either an IP address, domain name, AS number, or MD5/SHA1 hash. If no argument is given, drop into a python shell with dnsbl_query imported as a library.

To utilize HTTBL, provide the DNSBLResults instance with auth_tokens={‘HTTPBL’: ‘<your_api_key>’}.

>>> from ezdnsbl import DNSBLResults
>>> results = DNSBLResults('192.0.32.11', auth_tokens={'HTTPBL': '<your_api_key>'})
>>> print(a)
IPtoASN: IP 192.0.32.11
    Returned 2 result(s):
        40528 | 192.0.32.0/22 | US | arin | 2009-06-29
        40528 | 192.0.32.0/24 | US | arin | 2009-06-29
IPtoASNPeers: IP 192.0.32.11
    Returned 2 result(s):
        2914 3257 11164 | 192.0.32.0/24 | US | arin | 2009-06-29
        2914 3257 11164 16876 | 192.0.32.0/22 | US | arin | 2009-06-29

Take a look at the source for more info.

NOTE: This script makes NO ATTEMPT to rate-limit queries - it is up to YOU to ensure that your usage conforms to the various AUPs and terms of each of the providers listed below.

DNS Blacklists Queried

The following DNSBL providers are queried:

APEWS (apews.py)

http://www.apews.org/

TeamCymru MHR and IP-ASN Mapping (cymru.py)

http://www.team-cymru.org/

dan.me’s TOR Node Blacklist (dan.py)

https://www.dan.me.uk/

GBUdb (gbudb.py)

http://www.gbudb.com/index.jsp

Project Honeypot’s Http:BL (honeypot.py, httbl_apikey.py)

http://www.projecthoneypot.org/

LashBack’s Unsubscribe Blacklist (lashback.py)

http://www.lashback.com/

Spamhaus’ ZEN and DBL (spamhaus.py)

https://www.spamhaus.org/

Rik van Riel’s Spamikaze instance, Passive Spam Block List (surriel.py)

https://surriel.com/, https://psbl.org/

Acknowledgements

Inspired by vincecarney’s dnsbl: https://github.com/vincecarney/dnsbl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ezdnsbl-0.2.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

ezdnsbl-0.2.1-py2-none-any.whl (27.4 kB view details)

Uploaded Python 2

File details

Details for the file ezdnsbl-0.2.1.tar.gz.

File metadata

  • Download URL: ezdnsbl-0.2.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for ezdnsbl-0.2.1.tar.gz
Algorithm Hash digest
SHA256 16c5a5d217b2ca7c760ae50838ef9dc0c40b190c6ad2d34b49f415307fc9a1ae
MD5 739c1b934799642bf1d2cd10edf0603c
BLAKE2b-256 8353af1d3c269c9e215cc38cda0adba4e62e7b2be3e3a4c93c368e057553e4dc

See more details on using hashes here.

File details

Details for the file ezdnsbl-0.2.1-py2-none-any.whl.

File metadata

  • Download URL: ezdnsbl-0.2.1-py2-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.16

File hashes

Hashes for ezdnsbl-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 0ccde9f584483ab3d869cadb97186e437fd3d192f99c57d98701e71f0e5c711d
MD5 21c0a1238b532c87bb3b3add9b7f9e26
BLAKE2b-256 e449a54e121b8f221c2c9ec16c71c71db895615659b46678fead8476e0d2d747

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page