Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
after_backup.sh
797
B
-rwxr-xr-x
2025-07-14 12:29
backup_db.sh
651
B
-rwxr-xr-x
2025-07-14 12:27
updateGeoIP.sh
2.36
KB
-rwxr-xr-x
2022-11-20 12:52
Save
Rename
#!/bin/bash # # GeoIP Databases Update # Version 1.1 # # updateGeoIP.sh # # SID Solutions # Copyright (c) 01/13/2008 # Programmed by Sid McLaurin # # Adpated for Apache & regular Debian folders by kent1 # # Description: # # Script to update all GeoIP databases # # Location: # # /opt/scripts/ # # Changes: # 01/02/2009 - Create an URL for the new location of the # GeoIP.dat # 20/07/2009 - Adaptation forApache & regular Debian # folders by kent1 # Variables URL=http://www.maxmind.com/download/geoip/database/ NUMURL=http://www.maxmind.com/download/geoip/database/asnum/ COUNTRYURL=http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/ GEODBS=( "GeoIP.dat.gz" "GeoLiteCity.dat.gz" "GeoIPASNum.dat.gz" ) GEOPATH=/usr/share/GeoIP GEOUSER=www-data GEOGROUP=www-data echo -e "\n\033[1;32m\tStarting GeoIP Database Update\n \033[0m" # Change to GeoIP database directory cd $GEOPATH # Delete previous database echo -e "\033[1;33mRemoving previous databases\033[0m ...............\c" /bin/rm -f Geo*dat echo -e "\033[1;32m Done!\n \033[0m" # Get new databases echo -e "\033[1;31mDownloading databases\n\033[0m" for GEODB in ${GEODBS[@]} do echo -e "\tDownloading \033[1;33m"$GEODB"\033[0m ..........\c" if [ $GEODB = "GeoLiteCity.dat.gz" ] then /usr/bin/wget $URL$GEODB > /dev/null 2>&1 elif [ $GEODB = "GeoIPASNum.dat.gz" ] then /usr/bin/wget $NUMURL$GEODB > /dev/null 2>&1 else /usr/bin/wget $COUNTRYURL$GEODB > /dev/null 2>&1 fi echo -e "\033[1;32m Done!\n \033[0m" done # Deflate new databases echo -e "\033[1;31mDeflating databases\n\033[0m" for GEODB in ${GEODBS[@]} do echo -e "\tDeflating \033[1;33m"$GEODB"\033[0m ............\c" /bin/gunzip $GEODB echo -e "\033[1;32m Done!\n \033[0m" done # Set permissions if [ "$GEOUSER" != "" ] || [ "$GEOGROUP" != "" ]; then echo -e "\033[1;31mSetting permissions\n\033[0m" fi # Set user permissions if [ "$GEOUSER" != "" ] then echo -e "\033[1;33m\tSetting user permissions to "$GEOUSER"\033[0m .........\c" /bin/chown -R $GEOUSER $GEOPATH echo -e "\033[1;32m Done!\n \033[0m" fi # Set group permissions if [ "$GEOGROUP" != "" ] then echo -e "\033[1;33m\tSetting group permissions to "$GEOGROUP"\033[0m ........\c" /bin/chgrp -R $GEOGROUP $GEOPATH echo -e "\033[1;32m Done!\n \033[0m" fi # Done! echo -e "\033[1;32m\tGeoIP Database update completed!\n \033[0m"