Mailinglist Archive: opensuse-security (616 mails)
| < Previous | Next > |
Re: [suse-security] fix.your.open.relay.or.die????????????
- From: Christopher Mahmood <ckm@xxxxxxxx>
- Date: Tue, 19 Mar 2002 15:02:00 -0800
- Message-id: <20020319230200.GL29788@xxxxxxxxxxxxxxxxxx>
* Michael Zimmermann (zim@xxxxxxxx) [020319 03:48]:
> http://relays.osirusoft.com/cgi-bin/rbcheck.cgi
I have a script I use for this that you might find useful. It
checks an ip (or ips) against the orbz.org database. You get what
you pay for:
#!/bin/sh
# ckm@xxxxxxxx
# checks an ip against the orbz.org database
unset PATH
export PATH="/bin:/usr/bin:/usr/local/bin:~/bin"
usage="$0: ip1 ip2 ... ipn"
ips=$@
url="http://orbz.org/b.php?"
alias which='type -path'
html2text="`which html2text`"
if [ -z "$ips" ]; then
echo $usage
exit 1
fi
fbrowser=`which lynx` || browser=`which w3m` || \
(echo "no suitable browser found"; exit 1)
echo "Using $fbrowser"
browser="$(basename $fbrowser)"
case $browser in
lynx) args="-source" ;;
w3m) args="-dump" ;;
esac
for ip in $ips; do
if [ -z "$html2text" ]; then
$fbrowser $args $url$ip
else
$fbrowser $args $url$ip | $html2text
fi
done
--
-ckm
> http://relays.osirusoft.com/cgi-bin/rbcheck.cgi
I have a script I use for this that you might find useful. It
checks an ip (or ips) against the orbz.org database. You get what
you pay for:
#!/bin/sh
# ckm@xxxxxxxx
# checks an ip against the orbz.org database
unset PATH
export PATH="/bin:/usr/bin:/usr/local/bin:~/bin"
usage="$0: ip1 ip2 ... ipn"
ips=$@
url="http://orbz.org/b.php?"
alias which='type -path'
html2text="`which html2text`"
if [ -z "$ips" ]; then
echo $usage
exit 1
fi
fbrowser=`which lynx` || browser=`which w3m` || \
(echo "no suitable browser found"; exit 1)
echo "Using $fbrowser"
browser="$(basename $fbrowser)"
case $browser in
lynx) args="-source" ;;
w3m) args="-dump" ;;
esac
for ip in $ips; do
if [ -z "$html2text" ]; then
$fbrowser $args $url$ip
else
$fbrowser $args $url$ip | $html2text
fi
done
--
-ckm
| < Previous | Next > |