Coder Social home page Coder Social logo

tokarev-artem / blacklist-check-unix-linux-utility Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adionditsak/blacklist-check-unix-linux-utility

0.0 1.0 0.0 14 KB

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

License: MIT License

Shell 100.00%

blacklist-check-unix-linux-utility's Introduction

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

ScreenShot

###Installation

git clone https://github.com/RealArtemiy/blacklist-check-unix-linux-utility.git
chmod +x ./bl
mv ./bl /usr/bin

###Usage

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

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

###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_Feb:02:1424185674_+0000 8.8.8.8.0spam.fusionzero.com.          [not listed]
15-02-17_Feb:02:1424185674_+0000 8.8.8.8.0spam-killlist.fusionzero.com. [not listed]
15-02-17_Feb:02:1424185674_+0000 8.8.8.8.rbl.abuse.ro.                  [not listed]
15-02-17_Feb:02:1424185674_+0000 8.8.8.8.spam.dnsbl.anonmails.de.       [not listed]
15-02-17_Feb:02:1424185674_+0000 8.8.8.8.dnsbl.anticaptcha.net.         [not listed]
...

###Autocheck with email notification

# mkdir -p /root/bin/bl/
# cp bl.sh /root/bin/bl/
# cp ips.txt /root/bin/bl/

Edit mailfrom and mailto addresses

Add check to cron 

0 9 * * * /root/bin/bl/bl.sh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.