muhstik

- irc flooding solution
git clone git://git.acid.vegas/muhstik.git
Log | Files | Refs | Archive | README

tor-enode.sh (427B)

      1 #!/bin/sh
      2 # <http://www.sectoor.de/tor.php>
      3 #  -- by vxp
      4 #
      5 
      6 hname="${1:?missing hostname}"
      7 nick="${2:?missing nickname}"
      8 
      9 for _addr in `dnsip ${hname} 2>/dev/null`
     10 do
     11 	host -t TXT `echo "${_addr}" |\
     12 		     awk -F. '{print $4 "." $3 "." $2 "." $1; }'`.tor.dnsbl.sectoor.de	\
     13 		>/dev/null 2>&1
     14 
     15 	[ $? -eq 0 ] && { echo "${2} is a Tor using faggot (listed in sectoor's Tor DNSBL)"; };
     16 done
     17 
     18 exit 1;
     19 
     20 # vim:ts=8 sw=8 noexpandtab
     21