Mini Shell
Direktori : /opt/sharedrads/ |
|
Current File : //opt/sharedrads/check_zoneh |
#!/bin/bash
#Written by Erik S. to check server's IP against zone-h.org defacements.
#load functions + banners
source /opt/sharedrads/radsfunctions.sh
echo
if [ "$RADSCOLORS" == "off" ];
then
radsbanner-nocolor
else
radsbanner
fi
TODAYIS=`date +%Y/%m/%d`
if grep -q "release 7" /etc/redhat-release; then
ETH0=$( /sbin/ifconfig eth0 | grep 'inet ' | awk '{print $2}' )
else
ETH0=$( /sbin/ifconfig eth0 | grep 'inet addr:' | awk -F: '{print $2}' | awk '{print $1}' )
fi
curl --connect-timeout 10 -m 10 http://www.zone-h.org/archive/ip=$ETH0
Zerion Mini Shell 1.0