|
Server : Apache System : Linux ecngx264.inmotionhosting.com 4.18.0-553.77.1.lve.el8.x86_64 #1 SMP Wed Oct 8 14:21:00 UTC 2025 x86_64 User : lonias5 ( 3576) PHP Version : 7.3.33 Disable Function : NONE Directory : /proc/self/root/proc/thread-self/root/opt/sharedrads/ |
Upload File : |
#!/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