mpohoda / blacklist-check-pro

Blacklist check UNIX/Linux utility.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blacklist-check-unix-linux-utility

Blacklist check UNIX/Linux utility. I was just a bit tired of web interfaces.

###Introduction

Check blacklisting for domains and IP addresses in shell.

Works on UNIX/Linux systems with Bash.

Blacklists grabbed from http://multirbl.valli.org/ (all DNSBLs) and other.

ScreenShot

###Installation

curl -O https://raw.githubusercontent.com/mpohoda/blacklist-check-pro/master/bl
chmod +x ./bl
mv ./bl /usr/bin

###Usage

# Use with domains or IP addresses
$ bl domain.tld
$ bl -d 8.8.8.8 # IP

# Pipe with other UNIX utils, eg. grep. Only blacklisted:
$ bl -d domain.tld | grep "blacklisted"

# or from SRV list
$ dig txt +short qualityunit.com | tr " " "\n" | awk -F: '{if(NR>1)print $2}' | head -n -3 | xargs -L1 bl -q -a -d
# or like this...
$ dig txt qualityunit.com | grep v=spf1 | cut -d \" -f2 | sed 's/v=spf1 //g; s/+\?ip4://g; s/include:\(.*\)//g; s/-all\(.*\)//g;' | tr " " "\n" | xargs -L1 bl -q -a -d
# or like this...
$ echo 139.162.250.19 139.162.230.48 72.14.191.60 69.164.207.201 | tr " " "\n" | xargs -L1 bl -q -a -d

###Sample output

$ bl 8.8.8.8
You entered an IP: 8.8.8.8
8.8.8.8 name google-public-dns-a.google.com.
15-02-17_12:02:14_+0000 8.8.8.8.0spam.fusionzero.com.          [not listed]
15-02-17_12:02:14_+0000 8.8.8.8.0spam-killlist.fusionzero.com. [not listed]
15-02-17_12:02:14_+0000 8.8.8.8.rbl.abuse.ro.                  [not listed]
15-02-17_12:02:14_+0000 8.8.8.8.spam.dnsbl.anonmails.de.       [not listed]
15-02-17_12:02:14_+0000 8.8.8.8.dnsbl.anticaptcha.net.         [not listed]
...

About

Blacklist check UNIX/Linux utility.

License:MIT License


Languages

Language:Shell 100.0%