2 # Multi-RBL Query tool, developer Vikram <vr@udel.edu>
5 my $suspect = $ARGV[1];
7 die "Syntax: $0 -H <ip address>\n" unless $suspect;
10 3y
.spam
.mrs
.kithrup
.com
13 blackholes
.five
-ten
-sg
.com
14 blackholes
.intersil
.net
15 blackholes
.mail
-abuse
.org
16 blackholes
.wirehub
.net
20 dialup
.blacklist
.jippg
.org
21 dialups
.mail
-abuse
.org
26 formmail
.relays
.monkeys
.com
27 ipwhois
.rfc
-ignorant
.org
32 proxies
.relays
.monkeys
.com
33 rbl
-plus
.mail
-abuse
.org
52 foreach ( @rblservers ) {
53 my @s = split('\.',$suspect);
54 my $req = "$s[3].$s[2].$s[1].$s[0].".$_;
56 my ($name,$aliases,$addrtype,$length,@addrs) = gethostbyname($req);
59 my $result = inet_ntoa
($addrs[0]);
60 #next unless (substr($result, 7) eq '127.0.0');
62 print "$suspect is listed in the following RBLS: " if ( $spam == 0 );
67 print "$suspect is not listed in any RBLS" if ( $spam == 0 );