From b15adb7762b6caaecaa83637abfcf5fdb4802092 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 2 Sep 2013 13:16:24 +0200 Subject: Remove "contrib" plugins These days, sites such as "Nagios Exchange" are a much better place for publishing plugins not maintained by the Plugins Development Team. --- contrib/rblcheck-web | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 contrib/rblcheck-web (limited to 'contrib/rblcheck-web') diff --git a/contrib/rblcheck-web b/contrib/rblcheck-web deleted file mode 100755 index eb4fcdec..00000000 --- a/contrib/rblcheck-web +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/perl -# Multi-RBL Query tool, developer Vikram -use IO::Socket::INET; - -die "Syntax: $0 -H \n" unless $ARGV[1]; - -$soc = new IO::Socket::INET->new(PeerPort=>80, -Proto=>'tcp', -PeerAddr=>"rbls.org") or die("Cannot connect to CERT"); - -$ip = $ARGV[1]; -$uri = '/?q='.$ip; - -$soc->send("GET $uri HTTP/1.1\nHost: rbls.org\n\n"); -@buff = <$soc>; -delete @buff[0..7]; -$len = @buff; - -$alert = 0; - - -for( $i=0;$i<$len;$i++ ) { - next unless( defined $buff[$i] ); - chomp($buff[$i]); - #print "$buff[$i]\n"; - - if ( $buff[$i] eq "" ) { - $rbl = substr($buff[$i+1], 5, index($buff[$i], "") - 5); - next if ( index($rbl, '.') == -1 ); - print "$ip is listed in the following RBLS: " if ( $alert == 0 ); - print "$rbl "; - $alert = 1; - } -} -print "$ip is not listed in any RBLS" if ( $alert == 0 ); -print "\n"; -exit($alert); -- cgit v1.2.3