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 goto Z863U; XMoAF: if (!$API->connected) { echo json_encode(array("\163\164\x61\x7..
Decoded Output download
<?php
goto Z863U; XMoAF: if (!$API->connected) { echo json_encode(array("status" => false, "message" => "Error connecting to " . $mt_ip)); die; } goto Zmx58; CIpHx: $mt_user = $mtik["username"]; goto FQ1Fl; jVyqy: if ($action === "deleteuser") { $data_id = $data->id; $data_name = $data->name; $API->comm("/user/remove", array(".id" => $data_id)); echo json_encode(array("status" => true, "message" => "{$data_name} delete successfully!")); die; } goto TV8Uy; Zyq7m: include "../../db/db_conn.php"; goto elLjD; Sd03J: if ($_POST["page"] === "logs") { $draw = $_POST["draw"]; $row = $_POST["start"]; $rowperpage = $_POST["length"]; $columnIndex = $_POST["order"]["0"]["column"]; $columnName = $_POST["columns"][$columnIndex]["data"]; $columnSortOrder = $_POST["order"][0]["dir"]; $searchValue = mysqli_real_escape_string($conn, $_POST["search"]["value"]); $searchQuery = ''; $searchQuery .= "WHERE (`user` like '%" . $searchValue . "%' OR\xa `message` LIKE '%" . $searchValue . "%' ) "; $sel = mysqli_query($conn, "SELECT COUNT(*) AS `allcount` FROM `user_logs`"); $records = mysqli_fetch_assoc($sel); $totalRecords = $records["allcount"]; $sel = mysqli_query($conn, "SELECT COUNT(*) as `allcount` FROM `user_logs` " . $searchQuery); $records = mysqli_fetch_assoc($sel); $totalRecordwithFilter = $records["allcount"]; $empQuery = "SELECT * FROM `user_logs` " . $searchQuery . " ORDER BY " . $columnName . " " . $columnSortOrder . " LIMIT " . $row . "," . $rowperpage; $empRecords = mysqli_query($conn, $empQuery); $data = array(); $i = 1; foreach ($empRecords as $row) { $row_message = $row["message"]; $row_status = $row["status"]; if ($row_status !== '') { $row_message = "<span class="text-{$row_status}">{$row_message}</span>"; } $data[] = array("id" => $i++ . ".", "time" => date("m/d/Y h:i:s a", strtotime($row["date"])), "user" => $row["user"], "message" => $row_message); } $response = array("draw" => intval($draw), "iTotalRecords" => $totalRecords, "iTotalDisplayRecords" => $totalRecordwithFilter, "data" => $data); echo json_encode($response); } goto gAUsd; waAp1: $API = new RouterosAPI(); goto gW5M2; mUmTR: $kitifi_version = $mtik["version"]; goto UAA7a; j8JBA: if ($action === "editgroup") { $data_id = $data->id; $data_name = $data->name; $data_policy = $data->policy; $data_remarks = $data->remarks; if ($data_name === '') { echo json_encode(array("status" => false, "message" => "Invalid name!")); die; } $API->comm("/user/group/set", array(".id" => $data_id, "name" => $data_name, "policy" => $data_policy, "comment" => $data_remarks)); echo json_encode(array("status" => true, "message" => "Save changes successfully!")); die; } goto jVyqy; gW5M2: $API->debug = false; goto dLWI5; n_am0: if ($action === "backupdatasave") { $data_status = $data->status; $data_interval = $data->interval; $data_start_time = strtotime($data->start_time); $next_run = 0; if ($data_start_time + 5 * 60 * 60 * 24 < $datetimeint) { echo json_encode(array("status" => false, "message" => "Invalid start time!")); die; } if ($data_status) { $next_run = $data_start_time; while ($next_run <= $datetimeint) { $next_run = $next_run + $data_interval; } } mysqli_query($conn, "UPDATE `scheduler` SET `status`='{$data_status}',`time_interval`='{$data_interval}',`start_time`='{$data_start_time}',`next_run`='{$next_run}' WHERE `action`='backup'"); echo json_encode(array("status" => true, "next_run" => date("m/d/Y h:i:s a", $next_run), "message" => "Save successfully!")); die; } goto JuLYV; GgM_h: $mt_ip = $system["gateway"]; goto Bobob; Yrio_: if ($page === "scheduler") { $scheduler = mysqli_query($conn, "SELECT * FROM `scheduler`"); $data = array(); foreach ($scheduler as $row) { $data[] = array("action" => $row["action"], "status" => $row["status"], "start_time" => date("m/d/Y h:i:s a", $row["start_time"]), "interval" => $row["time_interval"], "next_run" => date("m/d/Y h:i:s a", $row["next_run"])); } echo json_encode(array("status" => true, "data" => $data)); die; } goto DQ04V; Bobob: $host_name = $system["host_name"]; goto ZJdbS; Srvof: if ($action === "adduser") { $data_name = $data->name; $data_group = $data->group; $data_remarks = $data->remarks; $data_pass = $data->pass; $data_confirmpass = $data->confirmpass; if ($data_name === '') { echo json_encode(array("status" => false, "message" => "Invalid name!")); die; } if ($data_pass != $data_confirmpass) { echo json_encode(array("status" => false, "message" => "Passwords do not match!")); die; } $API->comm("/user/add", array("name" => $data_name, "password" => $data_pass, "group" => $data_group, "comment" => $data_remarks)); echo json_encode(array("status" => true, "message" => "{$data_name} added successfully!")); die; } goto FedhQ; HcF19: $page = $data->page; goto d3O25; FedhQ: if ($action === "addgroup") { $data_name = $data->name; $data_remarks = $data->remarks; $data_policy = $data->policy; if ($data_name === '') { echo json_encode(array("status" => false, "message" => "Invalid name!")); die; } $API->comm("/user/group/add", array("name" => $data_name, "policy" => $data_policy, "comment" => $data_remarks)); echo json_encode(array("status" => true, "message" => "{$data_name} added successfully!")); die; } goto Gw7IT; gAUsd: if ($action === "clearlogs") { mysqli_query($conn, "DELETE FROM `user_logs`"); echo json_encode(array("status" => true, "message" => "Clear logs successfully!")); } goto nUb4n; bTLeu: $mt_clock_sec = strtotime(str_replace("/", " ", $mt_clock["date"]) . $mt_clock["time"]); goto aOpVx; rNq66: if ($_GET["page"] === "storage") { header("Content-Type: text/event-stream"); header("Cache-Control: no-cache"); while (true) { $storage = json_decode(shell_exec("lsblk -J"), true)["blockdevices"]; foreach ($storage as $files) { if (array_key_exists("children", $files) && count($files["children"]) === 1) { $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$files["children"][0]["name"]}"))); if ($LABEL != "armbi_root") { $device = $files["children"]; } } } $UUID = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s UUID -o value /dev/{$device[0]["name"]}"))); $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$device[0]["name"]}"))); $TYPE = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s TYPE -o value /dev/{$device[0]["name"]}"))); $SIZE = trim(preg_replace("/\s\s+/", '', str_replace("SIZE", '', shell_exec("lsblk -o SIZE /dev/{$device[0]["name"]}")))); $USE = trim(preg_replace("/\s\s+/", '', str_replace("FSUSE%", '', shell_exec("lsblk -o FSUSE% /dev/{$device[0]["name"]}")))); $array = json_encode(array("uuid" => $UUID, "label" => $LABEL, "type" => $TYPE, "size" => $SIZE, "used" => $USE)); echo "event: device\xa"; echo "data: {$array}
"; ob_end_flush(); flush(); if (!empty($SIZE) && empty($UUID)) { include_once "../../include/ssh2.php"; ssh2_exec($ssh, "blkid"); } if ($device[0]["mountpoints"][0] === null) { include_once "../../include/ssh2.php"; $filename = "/var/www/html/media/{$device[0]["name"]}"; if (!file_exists($filename)) { ssh2_exec($ssh, "mkdir {$filename}"); } ssh2_exec($ssh, "mount /dev/{$device[0]["name"]} {$filename}"); } if (connection_aborted()) { break; } sleep(1); } } goto mArQh; cyQnN: if ($action === "checkforupdate") { $params = array("action" => $action, "board" => $host_name, "version" => $kitifi_version, "token" => $kitifi_token); $url = "https://api.kitifi.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("Content-Type" => "application/json"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = curl_exec($ch); curl_close($ch); echo $response; die; } goto Yrio_; FBa5K: $data = json_decode(file_get_contents("php://input")); goto HcF19; eGASc: $dateformat = date("m/d/y h:i:s a", $mt_clock_sec); goto rNq66; XpD0_: if ($action === "verifyupdate") { include_once "../../include/ssh2.php"; include_once "update.php"; } goto Qh91r; G87kb: date_default_timezone_set($mt_clock["time-zone-name"]); goto bTLeu; UAA7a: $portal_settings = mysqli_query($conn, "SELECT * FROM `portal_settings`")->fetch_assoc(); goto Xwt9L; Fh92s: $system = mysqli_query($conn, "SELECT * FROM `system`")->fetch_assoc(); goto GgM_h; mArQh: if ($page === "storagebackup") { $storage = json_decode(shell_exec("lsblk -J"), true)["blockdevices"]; foreach ($storage as $files) { if (array_key_exists("children", $files) && count($files["children"]) === 1) { $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$files["children"][0]["name"]}"))); if ($LABEL != "armbi_root") { $device = $files["children"]; } } } $filename = "../../../media/{$device[0]["name"]}/backup/"; $list = array(); $i = 1; if (is_dir($filename)) { if ($dh = opendir($filename)) { while (($file = readdir($dh)) != false) { if ($file == "." or $file == "..") { } else { $deleteBtn = " <span class=["]text-sm text-danger cursor-pointer deleteBtn["] data-name=["]" . $file . "["] title=["]Delete " . $file . "["]><i class="fas fa-trash-alt"></i></span>"; $list3 = array("id" => $i++ . ".", "name" => "<span class="text-info">{$file}</span>", "sized" => formatBytes(filesize($filename . $file)), "action" => $deleteBtn); array_push($list, $list3); } } } } $response = array("data" => $list); echo json_encode($response); } goto J88l3; g3fVD: if ($action === "edituser") { $data_id = $data->id; $data_name = $data->name; $data_group = $data->group; $data_remarks = $data->remarks; if ($data_name === '') { echo json_encode(array("status" => false, "message" => "Invalid name!")); die; } $API->comm("/user/set", array(".id" => $data_id, "group" => $data_group, "comment" => $data_remarks)); echo json_encode(array("status" => true, "message" => "Save changes successfully!")); die; } goto j8JBA; nUb4n: if ($page === "users") { $mt_users = $API->comm("/user/print"); $data = array(); $i = 1; foreach ($mt_users as $row) { $id = $row[".id"]; $name = $row["name"]; $group = $row["group"]; $remarks = $row["comment"]; $editBtn = "<span class="text-sm text-muted cursor-pointer editBtn["] title=["]Edit User" data-id=["]{$id}["] data-name=["]{$name}["] data-group=["]{$group}["] data-remarks=["]{$remarks}"><i class="fas fa-edit["]></i></span>"; $changepassBtn = " <span class=["]text-sm text-info cursor-pointer changepassBtn" title=["]Change Password" data-id="{$id}["] data-name="{$name}["]><i class=["]fas fa-key"></i></span>"; $lock = $row["disabled"]; $deleteBtn = " <span class=["]text-sm text-danger cursor-pointer deleteBtn["] title=["]Delete" data-id=["]{$id}" data-name=["]{$name}"><i class="fas fa-trash-alt"></i></span>"; $disableBtn = " <span class=["]text-sm text-" . ($lock == "true" ? "danger" : "warning") . " cursor-pointer " . ($lock == "true" ? "enableBtn" : "disableBtn") . "["] title="" . ($lock == "true" ? "Enabled" : "Disabled") . " " . $name . "" data-id="" . $id . "["] data-name=["]" . $name . ""><i class=["]fas fa-lock" . ($lock == "true" ? '' : "-open") . ""></i></span>"; $data[] = array("id" => $i++ . ".", "name" => $row["name"], "group" => $row["group"], "last_logged_in" => date("m/d/Y h:i:s a", strtotime($row["last-logged-in"])), "remarks" => $remarks, "action" => $editBtn . $changepassBtn . ($mt_user == $name ? '' : $disableBtn) . ($mt_user == $name ? '' : $deleteBtn)); } $group = $API->comm("/user/group/print"); echo json_encode(array("status" => true, "data" => $data, "group" => $group)); die; } goto pec3e; DQ04V: if ($action === "restartserversave") { $data_status = $data->status; $data_interval = $data->interval; $data_start_time = strtotime($data->start_time); $next_run = 0; if ($data_start_time + 5 * 60 * 60 * 24 < $datetimeint) { echo json_encode(array("status" => false, "message" => "Invalid start time!")); die; } if ($data_status) { $next_run = $data_start_time; while ($next_run <= $datetimeint) { $next_run = $next_run + $data_interval; } } mysqli_query($conn, "UPDATE `scheduler` SET `status`='{$data_status}',`time_interval`='{$data_interval}',`start_time`='{$data_start_time}',`next_run`='{$next_run}' WHERE `action`='restart'"); echo json_encode(array("status" => true, "next_run" => date("m/d/Y h:i:s a", $next_run), "message" => "Save successfully!")); die; } goto n_am0; I30z2: if ($page === "storagemovies") { $storage = json_decode(shell_exec("lsblk -J"), true)["blockdevices"]; foreach ($storage as $files) { if (array_key_exists("children", $files) && count($files["children"]) === 1) { $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$files["children"][0]["name"]}"))); if ($LABEL != "armbi_root") { $device = $files["children"]; } } } $filename = "../../../media/{$device[0]["name"]}/movies/video/"; $list = array(); $i = 1; if (is_dir($filename)) { if ($dh = opendir($filename)) { while (($file = readdir($dh)) != false) { if ($file == "." or $file == "..") { } else { $thumbnails = "../../../media/{$device[0]["name"]}/movies/thumbnails/"; $thumbnail = $thumbnails . explode(".", $file)[0]; if (file_exists($thumbnail . ".jpg")) { $thumbnail = $thumbnail . ".jpg"; $image = explode(".", $file)[0] . ".jpg"; } if (file_exists($thumbnail . ".png")) { $thumbnail = $thumbnail . ".png"; $image = explode(".", $file)[0] . ".png"; } if (file_exists($thumbnail . ".jpeg")) { $thumbnail = $thumbnail . ".jpeg"; $image = explode(".", $file)[0] . ".jpeg"; } if (file_exists($thumbnail . ".JPG")) { $thumbnail = $thumbnail . ".JPG"; $image = explode(".", $file)[0] . ".JPG"; } if (file_exists($thumbnail . ".PNG")) { $thumbnail = $thumbnail . ".PNG"; $image = explode(".", $file)[0] . ".PNG"; } if (file_exists($thumbnail . ".JPEG")) { $thumbnail = $thumbnail . ".JPEG"; $image = explode(".", $file)[0] . ".JPEG"; } $image_default = 0; if (!file_exists($thumbnail)) { $image_default = 1; $image = "<span class=["]text-danger["]>Not Found</span>"; } $videoview = " <span class="text-muted cursor-pointer videoview" data-src=["]" . $filename . $file . ""><i class="fas fa-eye"></i>"; $imageview = $image_default === 0 ? " <span class="text-muted cursor-pointer imageview" data-src=["]" . $thumbnail . ""><i class=["]fas fa-eye["]></i>" : ''; $editBtn = "<span class="text-sm text-muted cursor-pointer editBtn" data-name=["]" . explode(".", $file)[0] . "" data-movie_dir=["]" . $filename . "["] data-image_dir="" . $thumbnails . "["] data-movie=["]" . $file . "["] data-image=["]" . $image . "" title=["]Edit " . $file . "["]><i class=["]fas fa-edit"></i></span>"; $deleteBtn = " <span class="text-sm text-danger cursor-pointer deleteBtn" data-name="" . $file . "" title=["]Delete " . $file . "["]><i class=["]fas fa-trash-alt["]></i></span>"; $list3 = array("id" => $i++ . ".", "name" => "<span class="text-info">{$file}</span>{$videoview}", "thumbnail" => "{$image}{$imageview}", "sized" => formatBytes(filesize($filename . $file)), "date_modified" => date("m/d/y h:i:s a", filemtime($filename . $file)), "action" => $editBtn . $deleteBtn); array_push($list, $list3); } } } } $response = array("data" => $list); echo json_encode($response); } goto xMPLg; jrsjj: if ($_POST["action"] === "uploaddata") { $target_dir = "../../update/"; $target_file = $target_dir . basename($_FILES["file"]["name"]); $extention = explode(".", basename($_FILES["file"]["name"]))[1]; $FileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSION)); if ($_FILES["file"]["size"] > 104857600) { echo json_encode(array("status" => false, "message" => "Sorry, your file is too large.")); die; } if ($extention != "kitifi") { echo json_encode(array("status" => false, "message" => "Sorry, Only kitifi is allowed!")); die; } $filename = $target_dir . basename($_FILES["file"]["name"]); $banner = basename($_FILES["file"]["name"]); if (move_uploaded_file($_FILES["file"]["tmp_name"], $filename)) { define("_PATH", __DIR__ . DIRECTORY_SEPARATOR); $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($kitifi_token)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("status" => false, "message" => "Update failed! (401)")); die; } $zip->close(); unlink($filename); echo json_encode(array("status" => true, "message" => "Restoring data...")); } } else { echo json_encode(array("status" => false, "message" => "Update failed!")); } } else { echo json_encode(array("status" => false, "message" => "Sorry, there was an error uploading your file!")); } } goto Ez3nt; X4yEH: if ($page === "active_users") { $mt_users_active = $API->comm("/user/active/print"); $data = array(); $i = 1; foreach ($mt_users_active as $row) { $id = $row[".id"]; $name = $row["name"]; $at = $row["when"]; $from = $row["address"]; $via = $row["via"]; $group = $row["group"]; $data[] = array("name" => $name, "at" => date("m/d/Y h:i:s a", strtotime($at)), "from" => $from, "via" => $via, "group" => $group); } echo json_encode(array("status" => true, "data" => $data)); die; } goto Srvof; TSgaT: include "../../lib/kitifi.php"; goto FBa5K; dLWI5: $API->connect($mt_ip, $mt_user, decrypt($mt_pass)); goto XMoAF; xMPLg: if ($action === "renamefile") { rename($data->movie_dir . $data->movie, $data->movie_dir . $data->filename . "." . explode(".", $data->movie)[1]); if (file_exists($data->image_dir . $data->image)) { rename($data->image_dir . $data->image, $data->image_dir . $data->filename . "." . explode(".", $data->image)[1]); } echo json_encode(array("status" => true, "message" => "Rename successfully!")); die; } goto hIJiR; ZJdbS: $mtik = mysqli_query($conn, "SELECT * FROM `administrator`")->fetch_assoc(); goto CIpHx; Zmx58: $mt_clock = $API->comm("/system/clock/print")[0]; goto G87kb; elLjD: include "../../lib/routeros_api.class.php"; goto N_5P6; J88l3: if ($action === "deletebackup") { $storage = json_decode(shell_exec("lsblk -J"), true)["blockdevices"]; foreach ($storage as $files) { if (array_key_exists("children", $files) && count($files["children"]) === 1) { $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$files["children"][0]["name"]}"))); if ($LABEL != "armbi_root") { $device = $files["children"]; } } } $filename = "../../../media/{$device[0]["name"]}/backup/"; unlink($filename . $data->name); echo json_encode(array("status" => true, "message" => "{$data->name} deleted successfully!")); die; } goto I30z2; FQ1Fl: $mt_pass = $mtik["password"]; goto l7UnC; Gw7IT: if ($action === "changepass") { $data_id = $data->id; $data_name = $data->name; $data_newpass = $data->newpass; $data_confirmpass = $data->confirmpass; if ($data_newpass != $data_confirmpass) { echo json_encode(array("status" => false, "message" => "New passwords do not match!")); die; } if ($data_name == $mt_user) { mysqli_query($conn, "UPDATE `administrator` SET `password`='" . encrypt($data_newpass) . "'"); } $API->comm("/user/set", array(".id" => $data_id, "password" => $data_newpass)); echo json_encode(array("status" => true, "message" => "Password change successfully!")); die; } goto g3fVD; wjPyy: if ($action === "disableuser") { $data_id = $data->id; $data_name = $data->name; $API->comm("/user/set", array(".id" => $data_id, "disabled" => "yes")); echo json_encode(array("status" => true, "message" => "{$data_name} disabled successfully!")); die; } goto EMOXT; SuXze: $datetimeint = $mt_clock_sec; goto C21vQ; zG1gd: if ($action === "enableuser") { $data_id = $data->id; $data_name = $data->name; $API->comm("/user/set", array(".id" => $data_id, "disabled" => "no")); echo json_encode(array("status" => true, "message" => "{$data_name} enabled successfully!")); die; } goto wjPyy; aOpVx: $datetime = date("Y-m-d H:i:s", $mt_clock_sec); goto SuXze; TV8Uy: if ($action === "deletegroup") { $data_id = $data->id; $data_name = $data->name; $API->comm("/user/group/remove", array(".id" => $data_id)); echo json_encode(array("status" => true, "message" => "{$data_name} delete successfully!")); die; } goto zG1gd; hIJiR: if ($action === "deletemovies") { $storage = json_decode(shell_exec("lsblk -J"), true)["blockdevices"]; foreach ($storage as $files) { if (array_key_exists("children", $files) && count($files["children"]) === 1) { $LABEL = trim(preg_replace("/\s\s+/", '', shell_exec("blkid -s LABEL -o value /dev/{$files["children"][0]["name"]}"))); if ($LABEL != "armbi_root") { $device = $files["children"]; } } } $video = "../../../media/{$device[0]["name"]}/movies/video/"; $thumbnails = "../../../media/{$device[0]["name"]}/movies/thumbnails/"; unlink($video . $data->name); $thumbnail = $thumbnails . explode(".", $data->name)[0]; if (file_exists($thumbnail . ".jpg")) { $thumbnail = $thumbnail . ".jpg"; } if (file_exists($thumbnail . ".png")) { $thumbnail = $thumbnail . ".png"; } if (file_exists($thumbnail . ".jpeg")) { $thumbnail = $thumbnail . ".jpeg"; } if (file_exists($thumbnail . ".JPG")) { $thumbnail = $thumbnail . ".JPG"; } if (file_exists($thumbnail . ".PNG")) { $thumbnail = $thumbnail . ".PNG"; } if (file_exists($thumbnail . ".JPEG")) { $thumbnail = $thumbnail . ".JPEG"; } unlink($thumbnail); echo json_encode(array("status" => true, "message" => "{$data->name} deleted successfully!")); die; } goto cyQnN; Z863U: header("Content-Type:application/json"); goto Zyq7m; Qh91r: if ($action === "generatebackup") { $datetime = date("Y-m-d-His"); $tables = array(); $result = mysqli_query($conn, "SHOW TABLES"); while ($row = mysqli_fetch_row($result)) { $tables[] = $row[0]; } $return .= "<?php\xa"; foreach ($tables as $table) { $result = mysqli_query($conn, "SELECT * FROM " . $table); $num_fields = mysqli_num_fields($result); if ($table != "administrator" && $table != "system" && $table != "tbl_rates") { $return .= "mysqli_query($conn, "DROP TABLE " . $table . "");
"; $row2 = mysqli_fetch_row(mysqli_query($conn, "SHOW CREATE TABLE " . $table)); $return .= "mysqli_query($conn, "" . str_replace(""", "\["]", $row2[1]) . "");
"; for ($i = 0; $i < $num_fields; $i++) { while ($row = mysqli_fetch_row($result)) { $return .= "mysqli_query($conn, ["]INSERT INTO " . $table . " VALUES("; for ($j = 0; $j < $num_fields; $j++) { $row[$j] = addslashes($row[$j]); if (isset($row[$j])) { $return .= "'" . $row[$j] . "'"; } else { $return .= "''"; } if ($j < $num_fields - 1) { $return .= ","; } } $return .= ")");\xa"; } } } } $handle = fopen("backup.php", "w+"); fwrite($handle, $return); fclose($handle); $zip_file_name_with_location = "../../update/{$datetime}.kitifi"; touch($zip_file_name_with_location); $zip = new ZipArchive(); $opening_zip = $zip->open($zip_file_name_with_location); $inserting_file_name_with_location = "backup.php"; $inserting_file_name_without_location = "backup.php"; $zip->addFile($inserting_file_name_with_location, $inserting_file_name_without_location); $zip->setEncryptionName($inserting_file_name_without_location, ZipArchive::EM_AES_256); $zip->setPassword($kitifi_token); $zip->close(); unlink("backup.php"); echo json_encode(array("status" => true, "file" => "update/{$datetime}.kitifi", "delete" => $zip_file_name_with_location)); } goto aG1_0; aG1_0: if ($action === "deletebackup") { $data_file = $data->file; unlink($data_file); echo json_encode(array("status" => true, "message" => "Done!")); } goto jrsjj; C21vQ: $date = date("Y-m-d", $mt_clock_sec); goto dKfeh; dKfeh: $time = date("H:i:s", $mt_clock_sec); goto eGASc; N_5P6: include "../../lib/formatbytesbites.php"; goto TSgaT; FaajG: if ($action === "otafix") { $params = array("action" => $action, "board" => $host_name, "version" => $kitifi_version, "token" => $kitifi_token); $url = "https://api.kitifi.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("Content-Type" => "application/json"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = json_decode(curl_exec($ch), true); curl_close($ch); $new_version = $response["version"]; $link = $response["link"]; $password = $response["password"]; if (!file_put_contents("../../update/{$new_version}.kitifi", file_get_contents($link))) { echo json_encode(array("status" => false, "message" => "Something went wrong!")); die; } define("_PATH", "../../../"); $filename = "../../update/{$new_version}.kitifi"; $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($password)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("status" => false, "message" => "OTA failed! (401)")); die; } $zip->close(); include_once "../../include/ssh2.php"; include_once "ota.php"; } } else { echo json_encode(array("status" => false, "message" => "OTA failed!")); } die; } goto XpD0_; pec3e: if ($page === "groups") { $mt_users = $API->comm("/user/group/print"); $data = array(); $i = 1; foreach ($mt_users as $row) { $id = $row[".id"]; $name = $row["name"]; $policies = $row["policy"]; $remarks = $row["comment"]; $deleteBtn = ''; $arr_name = array("read", "full", "write"); if (!in_array($name, $arr_name)) { $deleteBtn = " <span class="text-sm text-danger cursor-pointer deleteBtn" title="Delete["] data-id=["]{$id}["] data-name="{$name}"><i class="fas fa-trash-alt"></i></span>"; } $editBtn = "<span class=["]text-sm text-muted cursor-pointer editBtn["] title="Edit User["] data-id=["]{$id}" data-name="{$name}["] data-policies="{$policies}" data-remarks=["]{$remarks}"><i class="fas fa-edit["]></i></span>"; $data[] = array("name" => $name, "policies" => str_replace(",", ", ", $policies), "remarks" => $remarks, "action" => $editBtn . $deleteBtn); } echo json_encode(array("status" => true, "data" => $data)); die; } goto X4yEH; Ez3nt: if ($action === "restoredata") { include_once "../../include/ssh2.php"; include_once "backup.php"; ssh2_exec($ssh, "systemctl restart expiredmonitor"); ssh2_exec($ssh, "systemctl restart kitifi"); ssh2_exec($ssh, "systemctl restart kitifisystem"); echo json_encode(array("status" => true, "message" => "Data restored successfully!")); } goto Sd03J; JuLYV: if ($action === "updatekitifi") { $params = array("action" => $action, "board" => $host_name, "version" => $kitifi_version, "token" => $kitifi_token); $url = "https://api.kitifi.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("Content-Type" => "application/json"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = json_decode(curl_exec($ch), true); curl_close($ch); $new_version = $response["version"]; $link = $response["link"]; $password = $response["password"]; if (!file_put_contents("../../update/{$new_version}.kitifi", file_get_contents($link))) { echo json_encode(array("status" => false, "message" => "Error downloading updates!")); die; } define("_PATH", "../../../"); $filename = "../../update/{$new_version}.kitifi"; $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($password)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("status" => false, "message" => "Update failed! (401)")); die; } $zip->close(); mysqli_query($conn, "UPDATE `administrator` SET `version`='{$new_version}',`update_status`='0',`update_message`='Software is fully updated!'"); echo json_encode(array("status" => true, "message" => "Verifying...")); } } else { echo json_encode(array("status" => false, "message" => "Update failed!")); } die; } goto FaajG; k71zI: $login_option = $portal_settings["loginOption"]; goto waAp1; Xwt9L: $currency = $portal_settings["currency"]; goto k71zI; l7UnC: $kitifi_token = $mtik["kitifi_token"]; goto mUmTR; d3O25: $action = $data->action; goto Fh92s; EMOXT: ?>
Did this file decode correctly?
Original Code
<?php
goto Z863U; XMoAF: if (!$API->connected) { echo json_encode(array("\163\164\x61\x74\x75\x73" => false, "\155\145\x73\x73\141\147\145" => "\105\162\x72\157\x72\40\x63\x6f\156\x6e\145\x63\x74\x69\x6e\x67\40\x74\157\x20" . $mt_ip)); die; } goto Zmx58; CIpHx: $mt_user = $mtik["\165\163\x65\162\156\x61\x6d\145"]; goto FQ1Fl; jVyqy: if ($action === "\x64\145\x6c\145\164\x65\165\x73\x65\x72") { $data_id = $data->id; $data_name = $data->name; $API->comm("\x2f\x75\163\x65\162\x2f\x72\x65\x6d\157\x76\145", array("\x2e\151\x64" => $data_id)); echo json_encode(array("\x73\x74\141\x74\165\163" => true, "\155\x65\x73\x73\141\x67\x65" => "{$data_name}\x20\144\x65\x6c\145\164\x65\x20\x73\x75\x63\143\145\x73\x73\x66\x75\x6c\x6c\171\41")); die; } goto TV8Uy; Zyq7m: include "\x2e\56\x2f\56\56\57\144\142\57\144\x62\137\143\157\x6e\156\x2e\160\x68\160"; goto elLjD; Sd03J: if ($_POST["\160\141\x67\145"] === "\x6c\x6f\147\163") { $draw = $_POST["\x64\x72\x61\x77"]; $row = $_POST["\163\164\141\162\x74"]; $rowperpage = $_POST["\154\x65\156\x67\x74\150"]; $columnIndex = $_POST["\157\x72\144\x65\x72"]["\60"]["\x63\x6f\x6c\x75\x6d\x6e"]; $columnName = $_POST["\x63\157\x6c\165\155\x6e\x73"][$columnIndex]["\144\x61\164\141"]; $columnSortOrder = $_POST["\157\x72\144\x65\162"][0]["\x64\x69\x72"]; $searchValue = mysqli_real_escape_string($conn, $_POST["\x73\145\x61\162\x63\150"]["\x76\141\154\x75\x65"]); $searchQuery = ''; $searchQuery .= "\x57\110\105\x52\105\40\x28\x60\165\x73\145\x72\140\40\154\x69\153\145\40\x27\45" . $searchValue . "\x25\47\x20\x4f\122\xa\40\40\40\x20\x20\x20\40\40\x20\x20\40\40\x20\40\40\x20\x60\155\145\163\163\x61\147\145\140\x20\114\x49\113\105\40\47\x25" . $searchValue . "\x25\47\40\x29\x20"; $sel = mysqli_query($conn, "\123\x45\x4c\105\103\x54\40\103\x4f\x55\116\x54\50\x2a\51\x20\101\123\x20\140\x61\x6c\x6c\143\157\x75\156\x74\140\x20\106\x52\x4f\115\x20\x60\x75\163\x65\x72\x5f\154\x6f\147\163\140"); $records = mysqli_fetch_assoc($sel); $totalRecords = $records["\x61\x6c\x6c\x63\x6f\165\156\164"]; $sel = mysqli_query($conn, "\x53\x45\114\x45\x43\x54\x20\x43\x4f\x55\x4e\x54\x28\x2a\51\x20\141\x73\x20\140\x61\x6c\x6c\143\157\x75\156\x74\140\x20\x46\122\117\115\40\x60\165\163\145\x72\x5f\x6c\157\x67\x73\x60\40" . $searchQuery); $records = mysqli_fetch_assoc($sel); $totalRecordwithFilter = $records["\141\x6c\154\143\x6f\x75\156\x74"]; $empQuery = "\123\x45\114\105\103\124\x20\52\x20\x46\x52\x4f\115\40\140\x75\163\145\x72\x5f\x6c\x6f\147\x73\x60\x20" . $searchQuery . "\40\x4f\x52\104\105\122\40\102\x59\x20" . $columnName . "\x20" . $columnSortOrder . "\x20\114\111\115\111\124\x20" . $row . "\54" . $rowperpage; $empRecords = mysqli_query($conn, $empQuery); $data = array(); $i = 1; foreach ($empRecords as $row) { $row_message = $row["\x6d\x65\x73\163\x61\x67\145"]; $row_status = $row["\163\x74\141\164\x75\163"]; if ($row_status !== '') { $row_message = "\x3c\163\160\x61\x6e\x20\x63\154\141\163\x73\x3d\42\164\145\x78\164\x2d{$row_status}\42\76{$row_message}\x3c\x2f\163\x70\141\x6e\x3e"; } $data[] = array("\151\144" => $i++ . "\56", "\x74\151\x6d\x65" => date("\155\57\144\x2f\131\40\x68\x3a\x69\72\163\x20\x61", strtotime($row["\x64\141\164\145"])), "\165\x73\x65\x72" => $row["\165\163\145\162"], "\x6d\145\x73\x73\141\147\x65" => $row_message); } $response = array("\144\x72\141\x77" => intval($draw), "\x69\x54\x6f\164\141\x6c\122\145\x63\157\162\x64\163" => $totalRecords, "\x69\124\x6f\164\141\154\104\151\163\160\x6c\x61\x79\x52\x65\x63\x6f\162\144\163" => $totalRecordwithFilter, "\144\141\x74\x61" => $data); echo json_encode($response); } goto gAUsd; waAp1: $API = new RouterosAPI(); goto gW5M2; mUmTR: $kitifi_version = $mtik["\x76\145\x72\x73\x69\x6f\156"]; goto UAA7a; j8JBA: if ($action === "\145\144\151\164\x67\x72\x6f\165\x70") { $data_id = $data->id; $data_name = $data->name; $data_policy = $data->policy; $data_remarks = $data->remarks; if ($data_name === '') { echo json_encode(array("\x73\x74\x61\164\165\x73" => false, "\x6d\145\x73\163\x61\147\x65" => "\111\x6e\x76\x61\x6c\151\144\x20\156\x61\x6d\145\x21")); die; } $API->comm("\57\165\163\145\162\x2f\x67\162\x6f\x75\160\x2f\x73\145\164", array("\56\x69\144" => $data_id, "\x6e\141\x6d\x65" => $data_name, "\x70\x6f\154\151\x63\171" => $data_policy, "\143\x6f\155\155\x65\156\x74" => $data_remarks)); echo json_encode(array("\x73\164\x61\x74\x75\x73" => true, "\x6d\x65\x73\x73\x61\147\x65" => "\x53\x61\x76\x65\x20\x63\x68\x61\x6e\147\145\x73\x20\x73\165\x63\x63\145\163\163\x66\165\x6c\x6c\x79\41")); die; } goto jVyqy; gW5M2: $API->debug = false; goto dLWI5; n_am0: if ($action === "\142\141\x63\x6b\x75\x70\144\x61\x74\141\163\141\x76\x65") { $data_status = $data->status; $data_interval = $data->interval; $data_start_time = strtotime($data->start_time); $next_run = 0; if ($data_start_time + 5 * 60 * 60 * 24 < $datetimeint) { echo json_encode(array("\x73\x74\x61\x74\165\163" => false, "\155\145\163\163\141\x67\145" => "\x49\156\166\141\154\151\144\x20\x73\x74\141\x72\164\x20\x74\x69\155\145\x21")); die; } if ($data_status) { $next_run = $data_start_time; while ($next_run <= $datetimeint) { $next_run = $next_run + $data_interval; } } mysqli_query($conn, "\x55\x50\104\101\124\x45\x20\x60\163\x63\x68\x65\x64\x75\x6c\145\162\140\40\x53\x45\x54\x20\x60\163\x74\141\164\x75\x73\140\75\x27{$data_status}\x27\x2c\x60\x74\x69\155\x65\137\x69\x6e\164\x65\x72\x76\x61\x6c\x60\x3d\47{$data_interval}\47\x2c\x60\x73\164\141\x72\x74\x5f\164\x69\155\x65\x60\75\47{$data_start_time}\x27\54\140\x6e\x65\170\x74\x5f\162\165\x6e\140\75\47{$next_run}\x27\40\x57\110\x45\122\x45\x20\140\141\x63\x74\x69\157\156\x60\x3d\47\142\x61\x63\x6b\x75\x70\x27"); echo json_encode(array("\x73\164\141\164\x75\163" => true, "\156\x65\170\x74\x5f\x72\165\x6e" => date("\155\57\x64\x2f\131\40\x68\72\x69\x3a\163\x20\141", $next_run), "\155\x65\163\163\x61\147\145" => "\123\x61\x76\x65\40\163\165\x63\143\145\x73\x73\146\165\x6c\154\171\x21")); die; } goto JuLYV; GgM_h: $mt_ip = $system["\x67\141\164\x65\x77\141\x79"]; goto Bobob; Yrio_: if ($page === "\163\143\x68\145\x64\x75\154\x65\162") { $scheduler = mysqli_query($conn, "\123\x45\x4c\x45\103\x54\x20\52\40\106\x52\x4f\x4d\40\140\163\x63\x68\145\x64\x75\154\145\162\140"); $data = array(); foreach ($scheduler as $row) { $data[] = array("\x61\143\x74\151\157\156" => $row["\x61\143\x74\151\x6f\156"], "\x73\164\x61\x74\x75\163" => $row["\x73\164\x61\164\x75\x73"], "\163\x74\141\162\164\x5f\x74\151\155\x65" => date("\155\x2f\144\57\x59\40\x68\72\x69\72\163\40\141", $row["\163\164\141\162\x74\137\x74\x69\x6d\145"]), "\x69\x6e\x74\145\x72\x76\141\154" => $row["\164\x69\x6d\145\137\151\156\x74\145\x72\x76\141\x6c"], "\156\145\170\x74\x5f\x72\165\x6e" => date("\155\x2f\144\57\x59\x20\150\72\x69\72\163\40\x61", $row["\156\145\x78\x74\x5f\x72\165\x6e"])); } echo json_encode(array("\163\164\x61\164\165\163" => true, "\x64\x61\164\141" => $data)); die; } goto DQ04V; Bobob: $host_name = $system["\x68\157\163\x74\137\x6e\x61\x6d\x65"]; goto ZJdbS; Srvof: if ($action === "\141\x64\x64\x75\x73\145\x72") { $data_name = $data->name; $data_group = $data->group; $data_remarks = $data->remarks; $data_pass = $data->pass; $data_confirmpass = $data->confirmpass; if ($data_name === '') { echo json_encode(array("\163\x74\141\164\165\x73" => false, "\155\x65\163\x73\141\147\145" => "\111\156\166\x61\x6c\151\144\40\156\x61\155\x65\41")); die; } if ($data_pass != $data_confirmpass) { echo json_encode(array("\x73\164\x61\x74\165\x73" => false, "\155\145\163\163\141\147\x65" => "\x50\x61\x73\163\167\157\162\144\163\x20\x64\157\x20\156\x6f\164\40\x6d\141\x74\143\x68\41")); die; } $API->comm("\57\x75\163\x65\x72\57\141\144\x64", array("\156\141\155\145" => $data_name, "\160\141\x73\x73\167\157\x72\144" => $data_pass, "\x67\162\157\x75\160" => $data_group, "\x63\157\155\155\145\156\x74" => $data_remarks)); echo json_encode(array("\163\x74\141\x74\x75\163" => true, "\155\x65\x73\x73\141\x67\145" => "{$data_name}\40\141\x64\144\145\144\40\163\x75\x63\143\145\163\163\146\x75\x6c\x6c\x79\x21")); die; } goto FedhQ; HcF19: $page = $data->page; goto d3O25; FedhQ: if ($action === "\x61\x64\144\147\162\x6f\165\160") { $data_name = $data->name; $data_remarks = $data->remarks; $data_policy = $data->policy; if ($data_name === '') { echo json_encode(array("\x73\x74\141\164\165\163" => false, "\x6d\x65\x73\x73\x61\147\x65" => "\x49\x6e\x76\141\154\151\x64\x20\x6e\x61\155\145\x21")); die; } $API->comm("\57\x75\x73\x65\x72\57\x67\x72\157\x75\160\57\x61\144\144", array("\156\x61\155\x65" => $data_name, "\x70\x6f\154\x69\143\171" => $data_policy, "\x63\x6f\155\155\x65\156\x74" => $data_remarks)); echo json_encode(array("\163\x74\141\x74\165\x73" => true, "\155\x65\163\163\141\147\145" => "{$data_name}\x20\x61\144\x64\145\x64\40\163\165\143\x63\x65\x73\x73\x66\x75\x6c\154\171\41")); die; } goto Gw7IT; gAUsd: if ($action === "\x63\x6c\x65\x61\x72\154\x6f\x67\163") { mysqli_query($conn, "\x44\x45\114\x45\124\105\x20\106\x52\x4f\x4d\40\140\x75\163\x65\x72\x5f\x6c\157\x67\x73\140"); echo json_encode(array("\x73\x74\141\164\165\163" => true, "\155\x65\x73\x73\141\147\x65" => "\103\154\145\141\x72\40\x6c\157\147\x73\40\163\165\143\143\x65\x73\163\x66\165\x6c\154\x79\41")); } goto nUb4n; bTLeu: $mt_clock_sec = strtotime(str_replace("\x2f", "\40", $mt_clock["\x64\141\164\145"]) . $mt_clock["\164\151\155\145"]); goto aOpVx; rNq66: if ($_GET["\160\141\x67\x65"] === "\x73\164\157\162\x61\147\145") { header("\103\157\x6e\x74\x65\156\x74\x2d\x54\x79\x70\145\x3a\40\164\145\x78\x74\x2f\145\x76\145\x6e\164\x2d\x73\x74\162\x65\x61\155"); header("\103\141\x63\x68\x65\55\103\x6f\x6e\164\162\x6f\154\72\40\x6e\x6f\x2d\x63\141\x63\150\145"); while (true) { $storage = json_decode(shell_exec("\154\x73\142\x6c\x6b\40\x2d\112"), true)["\x62\154\x6f\x63\153\144\x65\x76\x69\143\145\163"]; foreach ($storage as $files) { if (array_key_exists("\x63\x68\x69\154\x64\x72\x65\156", $files) && count($files["\x63\x68\151\154\x64\x72\145\156"]) === 1) { $LABEL = trim(preg_replace("\x2f\x5c\x73\x5c\163\x2b\57", '', shell_exec("\x62\154\153\x69\144\x20\55\x73\x20\114\101\102\x45\x4c\x20\55\x6f\40\166\141\154\165\x65\40\x2f\144\x65\166\x2f{$files["\143\150\151\154\x64\162\145\x6e"][0]["\156\x61\155\145"]}"))); if ($LABEL != "\x61\x72\155\x62\x69\x5f\x72\x6f\x6f\x74") { $device = $files["\143\150\x69\154\x64\x72\x65\x6e"]; } } } $UUID = trim(preg_replace("\x2f\x5c\x73\134\x73\x2b\57", '', shell_exec("\142\154\153\x69\x64\40\x2d\x73\40\125\125\111\x44\40\55\157\x20\x76\141\154\x75\145\x20\57\x64\x65\166\57{$device[0]["\x6e\x61\155\x65"]}"))); $LABEL = trim(preg_replace("\x2f\x5c\163\134\163\x2b\57", '', shell_exec("\x62\x6c\x6b\x69\x64\x20\x2d\163\x20\114\101\x42\x45\114\x20\55\x6f\x20\x76\x61\x6c\165\x65\40\57\x64\145\166\57{$device[0]["\x6e\x61\x6d\x65"]}"))); $TYPE = trim(preg_replace("\x2f\134\163\134\163\x2b\x2f", '', shell_exec("\142\x6c\x6b\151\144\40\55\x73\x20\124\x59\x50\105\40\x2d\157\x20\x76\x61\x6c\x75\x65\40\57\144\145\x76\57{$device[0]["\x6e\x61\155\x65"]}"))); $SIZE = trim(preg_replace("\57\134\163\x5c\x73\53\x2f", '', str_replace("\x53\111\x5a\105", '', shell_exec("\154\163\142\154\x6b\40\x2d\x6f\40\123\x49\132\105\40\x2f\x64\x65\166\x2f{$device[0]["\156\141\155\145"]}")))); $USE = trim(preg_replace("\57\134\163\x5c\163\53\x2f", '', str_replace("\x46\x53\x55\x53\105\x25", '', shell_exec("\154\x73\x62\x6c\x6b\40\x2d\x6f\40\106\x53\125\x53\x45\45\x20\57\x64\x65\166\x2f{$device[0]["\x6e\141\x6d\x65"]}")))); $array = json_encode(array("\x75\x75\151\x64" => $UUID, "\x6c\141\142\x65\x6c" => $LABEL, "\x74\x79\x70\145" => $TYPE, "\x73\151\172\x65" => $SIZE, "\165\x73\145\144" => $USE)); echo "\x65\x76\145\156\x74\x3a\x20\x64\145\166\x69\143\145\xa"; echo "\144\x61\164\141\x3a\x20{$array}\12\12"; ob_end_flush(); flush(); if (!empty($SIZE) && empty($UUID)) { include_once "\x2e\x2e\x2f\x2e\x2e\x2f\x69\x6e\x63\x6c\165\x64\145\57\163\x73\x68\62\x2e\160\150\160"; ssh2_exec($ssh, "\x62\x6c\153\x69\x64"); } if ($device[0]["\155\157\165\156\x74\160\x6f\151\156\x74\x73"][0] === null) { include_once "\56\x2e\57\x2e\56\x2f\x69\156\x63\x6c\x75\144\145\57\163\163\x68\x32\x2e\160\x68\x70"; $filename = "\x2f\166\x61\162\x2f\167\167\x77\x2f\x68\164\x6d\154\x2f\x6d\145\144\151\x61\x2f{$device[0]["\156\141\155\145"]}"; if (!file_exists($filename)) { ssh2_exec($ssh, "\155\153\x64\x69\162\x20{$filename}"); } ssh2_exec($ssh, "\x6d\157\165\x6e\164\x20\57\144\x65\x76\57{$device[0]["\x6e\x61\155\145"]}\40{$filename}"); } if (connection_aborted()) { break; } sleep(1); } } goto mArQh; cyQnN: if ($action === "\x63\150\x65\x63\x6b\x66\157\162\165\160\144\x61\164\x65") { $params = array("\141\x63\164\151\x6f\x6e" => $action, "\142\157\x61\162\144" => $host_name, "\x76\145\162\163\x69\x6f\x6e" => $kitifi_version, "\x74\x6f\153\x65\x6e" => $kitifi_token); $url = "\150\x74\x74\x70\x73\x3a\x2f\57\x61\160\151\x2e\x6b\151\x74\151\x66\151\x2e\x63\x6f\x6d"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("\x43\157\156\x74\145\156\164\x2d\124\x79\x70\145" => "\141\160\x70\154\151\143\141\x74\151\x6f\x6e\x2f\x6a\163\157\x6e"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = curl_exec($ch); curl_close($ch); echo $response; die; } goto Yrio_; FBa5K: $data = json_decode(file_get_contents("\x70\x68\160\72\x2f\x2f\x69\x6e\x70\165\x74")); goto HcF19; eGASc: $dateformat = date("\155\57\144\x2f\x79\x20\x68\x3a\x69\72\163\x20\141", $mt_clock_sec); goto rNq66; XpD0_: if ($action === "\x76\x65\162\151\146\x79\165\160\144\141\x74\x65") { include_once "\56\56\57\56\x2e\x2f\151\x6e\x63\154\x75\144\145\57\163\x73\x68\x32\x2e\x70\150\160"; include_once "\x75\160\x64\x61\164\x65\x2e\160\x68\160"; } goto Qh91r; G87kb: date_default_timezone_set($mt_clock["\164\151\155\145\55\172\157\x6e\x65\55\156\141\155\x65"]); goto bTLeu; UAA7a: $portal_settings = mysqli_query($conn, "\x53\x45\x4c\105\103\x54\x20\x2a\40\106\x52\x4f\x4d\40\x60\x70\157\x72\164\x61\x6c\x5f\x73\145\164\x74\151\x6e\x67\163\140")->fetch_assoc(); goto Xwt9L; Fh92s: $system = mysqli_query($conn, "\123\105\114\105\x43\124\x20\52\x20\x46\122\x4f\x4d\x20\140\163\x79\x73\164\145\x6d\140")->fetch_assoc(); goto GgM_h; mArQh: if ($page === "\x73\164\x6f\x72\141\x67\145\142\x61\x63\153\x75\160") { $storage = json_decode(shell_exec("\154\x73\x62\x6c\x6b\40\x2d\112"), true)["\142\154\x6f\143\x6b\x64\145\166\x69\143\x65\163"]; foreach ($storage as $files) { if (array_key_exists("\143\150\x69\x6c\x64\x72\145\156", $files) && count($files["\143\150\x69\154\x64\162\x65\156"]) === 1) { $LABEL = trim(preg_replace("\x2f\x5c\163\134\x73\x2b\57", '', shell_exec("\x62\154\x6b\x69\x64\x20\55\x73\40\114\101\102\105\114\x20\x2d\157\x20\166\141\x6c\165\145\x20\x2f\144\x65\166\57{$files["\x63\x68\151\154\144\162\x65\x6e"][0]["\x6e\x61\x6d\x65"]}"))); if ($LABEL != "\x61\162\x6d\x62\151\x5f\162\157\157\x74") { $device = $files["\143\150\151\x6c\144\x72\145\156"]; } } } $filename = "\56\56\57\x2e\56\57\x2e\x2e\57\x6d\x65\x64\151\x61\57{$device[0]["\x6e\x61\155\145"]}\x2f\x62\x61\x63\x6b\165\160\x2f"; $list = array(); $i = 1; if (is_dir($filename)) { if ($dh = opendir($filename)) { while (($file = readdir($dh)) != false) { if ($file == "\56" or $file == "\x2e\x2e") { } else { $deleteBtn = "\x26\x6e\x62\x73\x70\73\46\x6e\x62\163\x70\x3b\x3c\163\160\x61\156\40\143\x6c\141\163\x73\x3d["]\x74\145\x78\x74\x2d\x73\x6d\x20\164\x65\170\164\55\x64\x61\156\x67\x65\162\40\143\165\x72\163\157\x72\x2d\x70\x6f\x69\x6e\164\145\x72\x20\144\x65\x6c\145\x74\145\x42\x74\156["]\x20\144\141\x74\x61\x2d\x6e\141\155\x65\x3d["]" . $file . "["]\x20\164\x69\164\154\145\75["]\x44\x65\x6c\x65\x74\145\40" . $file . "["]\x3e\74\151\40\143\154\141\163\x73\75\42\146\141\x73\x20\x66\141\x2d\x74\162\141\x73\x68\x2d\x61\x6c\x74\42\x3e\x3c\57\x69\x3e\x3c\57\x73\160\141\x6e\76"; $list3 = array("\x69\144" => $i++ . "\x2e", "\156\x61\155\x65" => "\74\x73\160\141\x6e\40\x63\x6c\141\x73\x73\x3d\42\x74\x65\170\x74\55\151\156\x66\x6f\42\76{$file}\74\x2f\163\160\x61\x6e\x3e", "\x73\x69\x7a\x65\144" => formatBytes(filesize($filename . $file)), "\141\143\x74\x69\157\156" => $deleteBtn); array_push($list, $list3); } } } } $response = array("\144\141\164\141" => $list); echo json_encode($response); } goto J88l3; g3fVD: if ($action === "\145\144\151\164\165\163\145\162") { $data_id = $data->id; $data_name = $data->name; $data_group = $data->group; $data_remarks = $data->remarks; if ($data_name === '') { echo json_encode(array("\163\164\x61\x74\165\x73" => false, "\155\x65\x73\163\141\x67\145" => "\111\x6e\166\141\154\151\x64\40\x6e\x61\x6d\145\x21")); die; } $API->comm("\57\165\163\x65\162\x2f\163\145\x74", array("\x2e\x69\144" => $data_id, "\147\x72\x6f\x75\x70" => $data_group, "\143\x6f\x6d\155\x65\x6e\164" => $data_remarks)); echo json_encode(array("\x73\x74\141\164\x75\x73" => true, "\155\x65\163\163\x61\x67\145" => "\x53\x61\x76\145\x20\143\150\x61\x6e\147\x65\163\x20\x73\165\143\x63\145\x73\163\x66\165\154\154\171\x21")); die; } goto j8JBA; nUb4n: if ($page === "\165\x73\x65\x72\163") { $mt_users = $API->comm("\x2f\x75\163\145\x72\57\x70\x72\151\x6e\164"); $data = array(); $i = 1; foreach ($mt_users as $row) { $id = $row["\56\151\x64"]; $name = $row["\x6e\x61\x6d\x65"]; $group = $row["\x67\162\x6f\165\x70"]; $remarks = $row["\143\x6f\155\x6d\x65\156\x74"]; $editBtn = "\74\x73\x70\x61\156\x20\x63\x6c\141\163\163\75\42\x74\145\x78\x74\55\163\x6d\40\x74\145\170\x74\x2d\155\165\x74\x65\x64\40\x63\x75\x72\163\157\x72\x2d\x70\x6f\151\x6e\164\145\162\x20\x65\144\x69\x74\102\164\156["]\x20\x74\151\164\x6c\145\75["]\x45\x64\x69\164\x20\125\x73\x65\x72\42\x20\x64\141\x74\141\x2d\151\144\x3d["]{$id}["]\x20\144\x61\164\x61\x2d\x6e\x61\155\145\75["]{$name}["]\40\x64\141\x74\x61\x2d\147\162\x6f\x75\x70\75["]{$group}["]\40\x64\141\x74\x61\x2d\x72\x65\155\141\162\x6b\163\x3d["]{$remarks}\42\x3e\74\x69\40\143\x6c\141\163\163\75\42\x66\141\163\40\x66\141\x2d\145\144\151\x74["]\76\74\x2f\151\x3e\x3c\57\163\160\141\x6e\x3e"; $changepassBtn = "\46\x6e\142\163\x70\x3b\x26\156\x62\163\160\73\x3c\163\x70\x61\156\40\x63\x6c\141\163\163\x3d["]\164\x65\170\164\x2d\163\155\40\x74\x65\170\x74\x2d\x69\156\146\x6f\40\x63\165\x72\163\x6f\x72\55\x70\x6f\151\x6e\164\145\162\40\x63\x68\141\x6e\x67\145\160\x61\163\x73\x42\164\x6e\42\40\164\151\x74\154\145\75["]\x43\150\141\x6e\147\x65\x20\x50\x61\163\x73\167\157\162\x64\42\40\x64\141\164\x61\55\151\144\x3d\42{$id}["]\x20\144\x61\164\x61\x2d\x6e\141\x6d\145\75\42{$name}["]\x3e\x3c\151\40\143\x6c\x61\x73\163\x3d["]\x66\141\x73\x20\146\x61\x2d\153\x65\171\42\x3e\74\57\151\76\74\x2f\163\x70\x61\156\76"; $lock = $row["\144\x69\163\x61\x62\x6c\145\144"]; $deleteBtn = "\46\x6e\142\163\160\x3b\x26\156\142\163\x70\73\74\163\x70\141\x6e\40\x63\x6c\x61\163\x73\x3d["]\164\145\170\164\x2d\163\x6d\40\x74\145\170\x74\x2d\144\141\x6e\x67\145\162\40\143\x75\x72\x73\x6f\x72\x2d\160\157\x69\156\164\145\x72\40\x64\x65\x6c\145\x74\x65\x42\164\x6e["]\40\x74\151\x74\154\145\75["]\104\145\x6c\x65\164\x65\42\40\x64\141\164\x61\x2d\x69\144\x3d["]{$id}\42\x20\x64\x61\x74\141\x2d\156\141\155\145\75["]{$name}\42\x3e\74\151\x20\x63\154\141\163\163\x3d\42\146\x61\163\40\146\x61\55\164\162\141\x73\150\55\x61\154\164\42\76\x3c\x2f\x69\76\74\x2f\163\x70\141\x6e\x3e"; $disableBtn = "\46\x6e\142\x73\160\73\46\x6e\142\163\160\73\x3c\163\x70\x61\x6e\x20\x63\x6c\x61\163\163\x3d["]\164\x65\170\164\x2d\163\x6d\x20\x74\x65\x78\164\x2d" . ($lock == "\164\162\165\145" ? "\x64\x61\156\x67\x65\x72" : "\x77\x61\x72\156\151\x6e\x67") . "\x20\143\x75\162\163\157\x72\x2d\160\157\x69\x6e\164\x65\x72\x20" . ($lock == "\x74\x72\x75\145" ? "\x65\156\141\142\154\x65\x42\164\156" : "\x64\x69\163\141\x62\x6c\145\x42\x74\x6e") . "["]\40\x74\x69\x74\x6c\x65\x3d\42" . ($lock == "\x74\162\x75\x65" ? "\x45\156\x61\142\x6c\x65\x64" : "\x44\151\x73\x61\x62\154\145\x64") . "\x20" . $name . "\42\40\x64\x61\x74\x61\x2d\151\144\x3d\42" . $id . "["]\x20\144\141\164\141\x2d\156\141\155\x65\75["]" . $name . "\42\x3e\x3c\x69\x20\143\154\x61\x73\x73\75["]\146\x61\163\x20\x66\141\55\x6c\x6f\143\x6b" . ($lock == "\164\x72\x75\145" ? '' : "\x2d\x6f\x70\x65\x6e") . "\42\76\74\x2f\x69\76\74\x2f\163\160\141\156\76"; $data[] = array("\x69\144" => $i++ . "\x2e", "\x6e\141\155\145" => $row["\156\x61\155\145"], "\147\162\x6f\165\160" => $row["\147\162\157\x75\160"], "\x6c\x61\163\x74\x5f\x6c\x6f\x67\x67\x65\144\x5f\x69\156" => date("\x6d\x2f\x64\57\131\x20\x68\72\x69\72\x73\x20\x61", strtotime($row["\x6c\x61\163\164\x2d\x6c\157\x67\147\145\144\x2d\151\156"])), "\162\x65\x6d\x61\162\x6b\x73" => $remarks, "\141\143\164\151\x6f\156" => $editBtn . $changepassBtn . ($mt_user == $name ? '' : $disableBtn) . ($mt_user == $name ? '' : $deleteBtn)); } $group = $API->comm("\57\165\163\145\x72\x2f\147\162\x6f\x75\x70\x2f\x70\162\151\156\x74"); echo json_encode(array("\x73\x74\141\x74\165\163" => true, "\144\141\x74\141" => $data, "\x67\162\x6f\165\x70" => $group)); die; } goto pec3e; DQ04V: if ($action === "\162\145\x73\164\x61\x72\x74\163\x65\x72\x76\x65\162\163\x61\166\145") { $data_status = $data->status; $data_interval = $data->interval; $data_start_time = strtotime($data->start_time); $next_run = 0; if ($data_start_time + 5 * 60 * 60 * 24 < $datetimeint) { echo json_encode(array("\x73\164\141\164\x75\163" => false, "\155\145\x73\163\x61\x67\145" => "\111\x6e\166\141\154\151\144\40\x73\164\141\162\x74\x20\164\x69\155\x65\x21")); die; } if ($data_status) { $next_run = $data_start_time; while ($next_run <= $datetimeint) { $next_run = $next_run + $data_interval; } } mysqli_query($conn, "\x55\120\x44\101\124\105\40\140\x73\x63\x68\x65\144\165\154\145\x72\x60\x20\123\105\x54\x20\x60\x73\x74\141\x74\165\163\140\75\47{$data_status}\47\x2c\140\x74\151\x6d\x65\137\x69\x6e\x74\145\x72\x76\x61\x6c\x60\x3d\47{$data_interval}\x27\54\140\x73\164\x61\x72\164\137\x74\151\155\145\140\x3d\x27{$data_start_time}\x27\54\x60\x6e\145\x78\164\137\162\x75\x6e\140\x3d\47{$next_run}\x27\x20\127\110\x45\122\105\40\x60\141\143\164\151\157\x6e\140\75\47\x72\x65\x73\164\x61\162\x74\47"); echo json_encode(array("\163\x74\141\x74\165\163" => true, "\156\x65\170\164\137\162\165\x6e" => date("\x6d\x2f\x64\57\131\40\150\x3a\151\x3a\x73\x20\141", $next_run), "\155\145\163\x73\x61\x67\x65" => "\123\141\166\145\40\x73\x75\x63\143\145\x73\x73\146\165\154\154\171\x21")); die; } goto n_am0; I30z2: if ($page === "\163\x74\x6f\x72\x61\x67\145\x6d\x6f\x76\x69\145\163") { $storage = json_decode(shell_exec("\154\x73\x62\x6c\153\40\x2d\112"), true)["\x62\154\x6f\x63\153\x64\145\x76\151\x63\x65\x73"]; foreach ($storage as $files) { if (array_key_exists("\x63\x68\151\154\x64\x72\x65\156", $files) && count($files["\x63\150\151\x6c\144\162\145\x6e"]) === 1) { $LABEL = trim(preg_replace("\57\134\x73\x5c\x73\x2b\x2f", '', shell_exec("\x62\x6c\x6b\x69\x64\x20\x2d\163\x20\x4c\101\x42\x45\114\40\55\157\x20\x76\x61\154\x75\145\40\x2f\x64\x65\166\x2f{$files["\x63\x68\x69\154\144\x72\x65\156"][0]["\x6e\141\x6d\145"]}"))); if ($LABEL != "\141\x72\155\142\151\x5f\162\x6f\157\x74") { $device = $files["\143\150\151\x6c\x64\162\145\x6e"]; } } } $filename = "\x2e\x2e\57\56\56\57\56\56\57\x6d\x65\x64\151\141\x2f{$device[0]["\156\141\x6d\x65"]}\57\155\157\166\151\x65\163\57\x76\x69\144\x65\157\57"; $list = array(); $i = 1; if (is_dir($filename)) { if ($dh = opendir($filename)) { while (($file = readdir($dh)) != false) { if ($file == "\x2e" or $file == "\x2e\56") { } else { $thumbnails = "\56\56\x2f\56\56\x2f\56\56\x2f\155\x65\x64\151\141\x2f{$device[0]["\156\141\x6d\145"]}\57\155\x6f\x76\x69\x65\x73\57\164\150\x75\155\142\x6e\x61\x69\x6c\163\x2f"; $thumbnail = $thumbnails . explode("\56", $file)[0]; if (file_exists($thumbnail . "\56\x6a\x70\x67")) { $thumbnail = $thumbnail . "\56\x6a\x70\147"; $image = explode("\56", $file)[0] . "\56\x6a\160\147"; } if (file_exists($thumbnail . "\56\160\156\147")) { $thumbnail = $thumbnail . "\56\x70\156\x67"; $image = explode("\x2e", $file)[0] . "\56\160\x6e\147"; } if (file_exists($thumbnail . "\56\x6a\160\x65\x67")) { $thumbnail = $thumbnail . "\56\152\x70\145\147"; $image = explode("\56", $file)[0] . "\x2e\x6a\160\145\x67"; } if (file_exists($thumbnail . "\56\x4a\x50\x47")) { $thumbnail = $thumbnail . "\56\x4a\x50\x47"; $image = explode("\x2e", $file)[0] . "\56\x4a\x50\x47"; } if (file_exists($thumbnail . "\x2e\120\116\107")) { $thumbnail = $thumbnail . "\x2e\120\x4e\x47"; $image = explode("\x2e", $file)[0] . "\x2e\120\116\x47"; } if (file_exists($thumbnail . "\x2e\x4a\x50\x45\x47")) { $thumbnail = $thumbnail . "\x2e\x4a\120\105\x47"; $image = explode("\x2e", $file)[0] . "\x2e\112\x50\105\107"; } $image_default = 0; if (!file_exists($thumbnail)) { $image_default = 1; $image = "\x3c\x73\160\141\x6e\40\143\x6c\141\163\x73\75["]\164\x65\x78\x74\55\144\x61\156\147\145\x72["]\76\x4e\157\164\x20\106\x6f\165\x6e\x64\74\57\x73\160\x61\156\76"; } $videoview = "\x26\x6e\142\x73\160\x3b\x26\x6e\142\x73\x70\x3b\x3c\163\160\x61\156\40\143\154\x61\163\163\x3d\42\164\145\170\x74\55\155\165\x74\145\x64\x20\143\165\x72\163\157\162\x2d\160\157\151\x6e\x74\145\162\40\166\x69\x64\x65\x6f\166\x69\145\167\42\x20\x64\141\x74\x61\x2d\x73\x72\143\75["]" . $filename . $file . "\42\x3e\74\151\40\x63\x6c\141\x73\163\75\42\x66\x61\x73\40\146\x61\55\145\171\145\42\76\x3c\x2f\x69\76"; $imageview = $image_default === 0 ? "\46\x6e\142\163\160\73\x26\x6e\142\x73\160\73\x3c\163\160\x61\x6e\40\143\x6c\141\x73\163\x3d\42\164\145\170\164\x2d\x6d\x75\x74\145\144\x20\143\165\162\163\x6f\162\55\160\157\x69\x6e\164\x65\162\x20\x69\x6d\x61\147\x65\166\x69\x65\x77\42\40\x64\x61\x74\141\55\163\x72\x63\x3d["]" . $thumbnail . "\42\x3e\x3c\151\40\x63\154\x61\163\x73\x3d["]\146\x61\163\x20\x66\x61\55\x65\171\145["]\76\x3c\57\x69\x3e" : ''; $editBtn = "\74\163\x70\141\156\40\x63\154\141\163\x73\75\42\x74\145\x78\164\x2d\x73\155\40\x74\145\x78\164\55\x6d\x75\164\145\x64\40\x63\165\x72\x73\157\162\55\x70\x6f\x69\156\164\145\x72\x20\145\144\x69\x74\102\164\156\42\x20\x64\x61\164\141\55\x6e\141\x6d\x65\75["]" . explode("\x2e", $file)[0] . "\42\40\x64\x61\x74\x61\55\x6d\x6f\x76\x69\145\x5f\144\x69\162\x3d["]" . $filename . "["]\40\x64\x61\164\x61\x2d\151\x6d\x61\x67\x65\x5f\144\151\x72\75\42" . $thumbnails . "["]\x20\144\141\164\141\55\155\x6f\166\151\145\75["]" . $file . "["]\40\144\141\164\x61\55\x69\x6d\x61\147\145\x3d["]" . $image . "\42\x20\x74\151\164\x6c\145\75["]\105\x64\x69\x74\40" . $file . "["]\x3e\74\151\x20\143\x6c\141\x73\163\x3d["]\x66\x61\163\x20\146\x61\x2d\x65\x64\x69\x74\42\x3e\x3c\57\151\76\74\x2f\x73\x70\141\x6e\76"; $deleteBtn = "\46\x6e\x62\163\160\x3b\x26\x6e\x62\x73\160\73\74\x73\x70\141\x6e\40\x63\154\x61\163\x73\75\42\x74\x65\x78\164\55\x73\155\x20\164\145\170\164\x2d\144\x61\x6e\x67\145\x72\x20\143\x75\x72\163\157\x72\x2d\x70\157\x69\156\164\x65\162\x20\x64\145\154\x65\x74\145\x42\164\156\42\40\x64\141\x74\x61\x2d\156\141\x6d\x65\75\42" . $file . "\42\40\164\151\164\x6c\145\75["]\x44\145\154\x65\x74\145\40" . $file . "["]\76\x3c\x69\x20\143\154\141\x73\163\x3d["]\x66\141\163\40\x66\x61\x2d\164\x72\x61\x73\150\x2d\x61\x6c\164["]\x3e\74\x2f\151\x3e\x3c\x2f\163\x70\141\x6e\76"; $list3 = array("\x69\144" => $i++ . "\56", "\156\x61\x6d\145" => "\x3c\x73\160\x61\156\x20\143\154\141\x73\163\x3d\42\164\x65\x78\x74\55\151\x6e\146\157\42\x3e{$file}\74\x2f\x73\160\141\156\x3e{$videoview}", "\x74\x68\165\155\142\156\x61\151\x6c" => "{$image}{$imageview}", "\163\151\172\145\144" => formatBytes(filesize($filename . $file)), "\x64\141\164\x65\x5f\155\157\x64\x69\146\151\x65\x64" => date("\x6d\57\x64\57\x79\x20\150\x3a\x69\x3a\x73\x20\141", filemtime($filename . $file)), "\141\143\164\x69\x6f\156" => $editBtn . $deleteBtn); array_push($list, $list3); } } } } $response = array("\144\141\x74\141" => $list); echo json_encode($response); } goto xMPLg; jrsjj: if ($_POST["\x61\x63\x74\x69\157\x6e"] === "\165\x70\154\157\x61\144\144\141\164\141") { $target_dir = "\x2e\56\57\x2e\x2e\57\165\x70\144\141\164\145\57"; $target_file = $target_dir . basename($_FILES["\x66\x69\154\x65"]["\156\x61\x6d\x65"]); $extention = explode("\x2e", basename($_FILES["\x66\x69\154\x65"]["\x6e\x61\155\x65"]))[1]; $FileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSION)); if ($_FILES["\146\151\x6c\145"]["\x73\151\172\145"] > 104857600) { echo json_encode(array("\x73\164\x61\x74\x75\x73" => false, "\155\x65\163\163\141\147\145" => "\123\x6f\162\162\171\54\40\171\157\165\x72\40\146\x69\x6c\145\40\151\x73\x20\x74\157\157\40\x6c\141\x72\x67\145\56")); die; } if ($extention != "\x6b\151\x74\x69\146\151") { echo json_encode(array("\163\164\x61\164\165\x73" => false, "\x6d\145\163\163\x61\x67\145" => "\x53\157\162\x72\x79\54\x20\x4f\x6e\x6c\x79\x20\x6b\151\164\x69\x66\151\x20\x69\163\x20\x61\154\x6c\x6f\x77\145\144\x21")); die; } $filename = $target_dir . basename($_FILES["\146\x69\x6c\x65"]["\156\x61\x6d\x65"]); $banner = basename($_FILES["\x66\151\x6c\x65"]["\156\141\x6d\x65"]); if (move_uploaded_file($_FILES["\x66\151\154\145"]["\164\x6d\160\137\x6e\x61\x6d\145"], $filename)) { define("\137\x50\x41\124\x48", __DIR__ . DIRECTORY_SEPARATOR); $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($kitifi_token)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("\x73\x74\141\164\165\x73" => false, "\155\145\x73\x73\141\147\145" => "\x55\x70\x64\141\164\x65\x20\146\x61\151\154\145\144\41\40\50\x34\60\x31\51")); die; } $zip->close(); unlink($filename); echo json_encode(array("\x73\x74\x61\x74\x75\163" => true, "\x6d\145\163\163\x61\147\x65" => "\122\145\x73\x74\x6f\x72\x69\156\x67\x20\x64\x61\164\x61\56\x2e\56")); } } else { echo json_encode(array("\163\164\x61\164\x75\163" => false, "\155\x65\x73\x73\141\147\x65" => "\125\x70\x64\141\164\145\x20\146\141\151\154\x65\144\41")); } } else { echo json_encode(array("\x73\164\x61\x74\x75\163" => false, "\x6d\x65\163\x73\141\x67\x65" => "\123\157\x72\x72\171\54\x20\x74\150\145\x72\145\40\x77\141\163\40\141\156\x20\x65\162\162\157\x72\x20\x75\x70\154\157\141\144\151\156\147\x20\171\x6f\x75\162\40\x66\151\x6c\145\x21")); } } goto Ez3nt; X4yEH: if ($page === "\141\143\x74\151\x76\x65\x5f\x75\163\145\162\163") { $mt_users_active = $API->comm("\x2f\x75\163\x65\x72\x2f\141\143\164\x69\166\145\57\160\x72\151\x6e\164"); $data = array(); $i = 1; foreach ($mt_users_active as $row) { $id = $row["\56\x69\144"]; $name = $row["\x6e\141\x6d\x65"]; $at = $row["\167\x68\x65\156"]; $from = $row["\x61\144\144\x72\145\x73\163"]; $via = $row["\x76\x69\x61"]; $group = $row["\147\x72\x6f\165\160"]; $data[] = array("\156\x61\155\x65" => $name, "\x61\x74" => date("\x6d\57\x64\x2f\131\40\x68\72\151\72\163\40\141", strtotime($at)), "\146\x72\157\155" => $from, "\166\x69\141" => $via, "\x67\x72\x6f\x75\x70" => $group); } echo json_encode(array("\163\164\141\x74\x75\x73" => true, "\x64\141\x74\141" => $data)); die; } goto Srvof; TSgaT: include "\56\x2e\x2f\56\x2e\57\x6c\x69\x62\57\153\x69\164\x69\x66\151\x2e\x70\x68\x70"; goto FBa5K; dLWI5: $API->connect($mt_ip, $mt_user, decrypt($mt_pass)); goto XMoAF; xMPLg: if ($action === "\162\145\x6e\x61\x6d\x65\x66\151\154\x65") { rename($data->movie_dir . $data->movie, $data->movie_dir . $data->filename . "\x2e" . explode("\56", $data->movie)[1]); if (file_exists($data->image_dir . $data->image)) { rename($data->image_dir . $data->image, $data->image_dir . $data->filename . "\56" . explode("\x2e", $data->image)[1]); } echo json_encode(array("\x73\x74\141\x74\x75\x73" => true, "\x6d\x65\x73\163\x61\x67\x65" => "\122\145\x6e\141\155\145\40\x73\x75\x63\x63\x65\163\x73\146\165\154\154\x79\x21")); die; } goto hIJiR; ZJdbS: $mtik = mysqli_query($conn, "\123\105\114\x45\103\x54\40\x2a\x20\x46\x52\117\x4d\x20\140\141\x64\x6d\151\156\x69\163\164\x72\141\x74\x6f\x72\140")->fetch_assoc(); goto CIpHx; Zmx58: $mt_clock = $API->comm("\x2f\x73\171\x73\x74\x65\x6d\x2f\143\154\157\143\153\57\160\x72\151\156\164")[0]; goto G87kb; elLjD: include "\x2e\x2e\57\x2e\56\57\x6c\151\142\57\162\157\x75\x74\x65\162\157\163\x5f\x61\160\151\56\143\x6c\141\163\163\56\x70\150\160"; goto N_5P6; J88l3: if ($action === "\x64\145\x6c\x65\x74\x65\142\x61\x63\153\165\160") { $storage = json_decode(shell_exec("\154\163\142\154\153\x20\55\x4a"), true)["\142\x6c\x6f\x63\x6b\144\145\x76\151\143\145\163"]; foreach ($storage as $files) { if (array_key_exists("\x63\x68\x69\x6c\144\x72\145\156", $files) && count($files["\143\150\151\154\144\162\x65\156"]) === 1) { $LABEL = trim(preg_replace("\57\134\163\134\x73\53\x2f", '', shell_exec("\x62\154\x6b\x69\x64\40\x2d\x73\x20\114\x41\102\x45\114\40\x2d\157\x20\x76\x61\154\165\145\x20\57\x64\x65\166\57{$files["\143\x68\151\x6c\144\162\x65\x6e"][0]["\156\141\155\145"]}"))); if ($LABEL != "\x61\x72\x6d\142\151\x5f\x72\157\x6f\x74") { $device = $files["\143\150\x69\154\144\162\x65\156"]; } } } $filename = "\x2e\x2e\57\56\x2e\57\56\56\57\155\145\144\151\x61\57{$device[0]["\x6e\141\155\145"]}\x2f\x62\x61\x63\x6b\x75\x70\57"; unlink($filename . $data->name); echo json_encode(array("\x73\x74\141\164\165\x73" => true, "\x6d\145\x73\x73\x61\x67\x65" => "{$data->name}\x20\x64\145\x6c\145\164\x65\x64\x20\x73\x75\143\143\x65\x73\163\x66\x75\154\154\x79\x21")); die; } goto I30z2; FQ1Fl: $mt_pass = $mtik["\x70\x61\x73\163\x77\x6f\x72\144"]; goto l7UnC; Gw7IT: if ($action === "\143\x68\141\x6e\147\145\160\x61\x73\163") { $data_id = $data->id; $data_name = $data->name; $data_newpass = $data->newpass; $data_confirmpass = $data->confirmpass; if ($data_newpass != $data_confirmpass) { echo json_encode(array("\x73\x74\141\164\x75\163" => false, "\155\145\x73\163\141\147\x65" => "\116\145\167\x20\160\x61\163\x73\x77\157\162\x64\x73\x20\x64\x6f\40\x6e\157\x74\x20\x6d\x61\x74\143\150\x21")); die; } if ($data_name == $mt_user) { mysqli_query($conn, "\125\x50\x44\x41\x54\105\x20\x60\x61\x64\x6d\151\156\151\163\x74\x72\141\x74\x6f\162\x60\40\123\105\x54\40\140\x70\x61\x73\x73\x77\157\x72\144\140\x3d\47" . encrypt($data_newpass) . "\x27"); } $API->comm("\57\165\x73\x65\x72\57\163\145\164", array("\x2e\151\144" => $data_id, "\x70\x61\x73\x73\167\157\x72\x64" => $data_newpass)); echo json_encode(array("\x73\164\141\x74\165\163" => true, "\x6d\145\x73\x73\141\x67\x65" => "\120\141\x73\163\167\x6f\162\144\x20\143\150\141\156\147\145\x20\x73\x75\143\143\145\x73\x73\x66\165\154\x6c\171\41")); die; } goto g3fVD; wjPyy: if ($action === "\144\151\163\141\142\x6c\145\165\x73\x65\x72") { $data_id = $data->id; $data_name = $data->name; $API->comm("\57\165\x73\x65\x72\57\x73\145\x74", array("\56\x69\144" => $data_id, "\144\151\x73\x61\x62\154\x65\x64" => "\171\x65\x73")); echo json_encode(array("\x73\x74\141\164\x75\x73" => true, "\155\x65\163\163\141\x67\145" => "{$data_name}\40\x64\x69\x73\141\x62\154\145\x64\x20\x73\x75\143\x63\145\163\163\x66\x75\x6c\154\x79\41")); die; } goto EMOXT; SuXze: $datetimeint = $mt_clock_sec; goto C21vQ; zG1gd: if ($action === "\x65\156\x61\x62\154\145\165\x73\145\162") { $data_id = $data->id; $data_name = $data->name; $API->comm("\57\x75\163\145\x72\57\163\x65\164", array("\56\151\x64" => $data_id, "\144\x69\163\x61\142\154\145\144" => "\x6e\157")); echo json_encode(array("\163\164\141\x74\165\163" => true, "\x6d\145\163\x73\141\147\x65" => "{$data_name}\40\x65\156\x61\142\154\145\x64\40\163\x75\x63\x63\x65\x73\163\146\x75\x6c\x6c\171\x21")); die; } goto wjPyy; aOpVx: $datetime = date("\x59\x2d\155\x2d\x64\40\110\72\151\x3a\163", $mt_clock_sec); goto SuXze; TV8Uy: if ($action === "\144\145\x6c\x65\164\145\147\x72\x6f\x75\x70") { $data_id = $data->id; $data_name = $data->name; $API->comm("\x2f\x75\163\145\162\x2f\147\162\157\165\160\x2f\162\145\155\157\166\x65", array("\x2e\151\x64" => $data_id)); echo json_encode(array("\x73\x74\x61\164\x75\163" => true, "\155\145\163\x73\x61\147\145" => "{$data_name}\x20\x64\145\154\x65\164\145\40\x73\165\x63\x63\145\x73\163\146\165\x6c\154\x79\x21")); die; } goto zG1gd; hIJiR: if ($action === "\x64\x65\154\x65\164\145\155\157\166\151\x65\163") { $storage = json_decode(shell_exec("\154\163\142\x6c\153\x20\55\112"), true)["\x62\x6c\157\143\x6b\144\145\x76\151\x63\145\x73"]; foreach ($storage as $files) { if (array_key_exists("\x63\150\151\154\144\x72\145\x6e", $files) && count($files["\143\x68\x69\x6c\144\162\145\x6e"]) === 1) { $LABEL = trim(preg_replace("\57\x5c\163\134\x73\x2b\57", '', shell_exec("\142\154\x6b\x69\x64\x20\x2d\163\x20\x4c\101\x42\105\114\40\x2d\157\40\166\x61\x6c\165\145\40\x2f\144\145\x76\57{$files["\x63\150\151\x6c\144\162\x65\x6e"][0]["\156\141\155\145"]}"))); if ($LABEL != "\141\162\155\x62\x69\x5f\162\x6f\x6f\x74") { $device = $files["\x63\150\x69\x6c\144\162\145\156"]; } } } $video = "\x2e\56\x2f\56\x2e\57\56\56\57\155\x65\144\151\x61\57{$device[0]["\x6e\x61\x6d\x65"]}\57\x6d\x6f\x76\151\145\163\x2f\166\151\144\x65\157\x2f"; $thumbnails = "\x2e\x2e\57\x2e\x2e\57\x2e\56\57\x6d\x65\144\151\141\x2f{$device[0]["\x6e\x61\155\145"]}\57\155\x6f\x76\x69\x65\163\57\164\x68\165\x6d\x62\156\x61\151\x6c\163\57"; unlink($video . $data->name); $thumbnail = $thumbnails . explode("\56", $data->name)[0]; if (file_exists($thumbnail . "\56\152\160\147")) { $thumbnail = $thumbnail . "\56\x6a\160\x67"; } if (file_exists($thumbnail . "\56\160\156\x67")) { $thumbnail = $thumbnail . "\x2e\160\x6e\x67"; } if (file_exists($thumbnail . "\x2e\152\160\x65\x67")) { $thumbnail = $thumbnail . "\x2e\x6a\160\x65\x67"; } if (file_exists($thumbnail . "\56\x4a\x50\107")) { $thumbnail = $thumbnail . "\56\112\x50\x47"; } if (file_exists($thumbnail . "\56\x50\x4e\x47")) { $thumbnail = $thumbnail . "\56\x50\116\107"; } if (file_exists($thumbnail . "\56\112\120\105\107")) { $thumbnail = $thumbnail . "\x2e\112\x50\x45\107"; } unlink($thumbnail); echo json_encode(array("\x73\164\141\x74\165\163" => true, "\155\145\x73\163\141\147\145" => "{$data->name}\x20\144\145\x6c\145\x74\145\144\40\163\165\143\x63\145\163\x73\146\x75\154\x6c\171\41")); die; } goto cyQnN; Z863U: header("\x43\x6f\156\x74\145\x6e\164\55\x54\x79\x70\145\72\x61\x70\x70\154\151\x63\141\164\x69\157\x6e\x2f\152\x73\157\x6e"); goto Zyq7m; Qh91r: if ($action === "\x67\x65\x6e\145\162\x61\164\145\x62\x61\143\153\x75\x70") { $datetime = date("\x59\x2d\155\x2d\144\x2d\x48\151\x73"); $tables = array(); $result = mysqli_query($conn, "\x53\110\117\x57\x20\x54\x41\x42\114\x45\x53"); while ($row = mysqli_fetch_row($result)) { $tables[] = $row[0]; } $return .= "\74\77\x70\x68\160\xa"; foreach ($tables as $table) { $result = mysqli_query($conn, "\123\105\x4c\105\x43\124\x20\52\x20\x46\122\x4f\115\40" . $table); $num_fields = mysqli_num_fields($result); if ($table != "\x61\x64\x6d\x69\x6e\151\x73\164\x72\141\164\x6f\162" && $table != "\163\x79\x73\164\145\155" && $table != "\x74\x62\x6c\137\162\141\x74\x65\163") { $return .= "\155\171\163\x71\x6c\x69\137\x71\x75\145\162\x79\x28\44\x63\157\x6e\x6e\x2c\x20\42\x44\122\x4f\120\40\124\x41\x42\x4c\105\40" . $table . "\42\51\73\12"; $row2 = mysqli_fetch_row(mysqli_query($conn, "\123\x48\117\127\40\103\x52\105\x41\x54\105\x20\124\101\x42\x4c\x45\x20" . $table)); $return .= "\x6d\171\163\161\154\151\137\161\x75\145\x72\x79\x28\44\143\157\156\x6e\x2c\40\42" . str_replace("\42", "\134["]", $row2[1]) . "\42\51\73\12"; for ($i = 0; $i < $num_fields; $i++) { while ($row = mysqli_fetch_row($result)) { $return .= "\x6d\171\x73\161\154\x69\x5f\161\x75\x65\x72\171\x28\44\x63\x6f\156\156\x2c\40["]\x49\x4e\123\105\x52\124\40\x49\x4e\124\x4f\40" . $table . "\x20\126\101\x4c\125\105\x53\x28"; for ($j = 0; $j < $num_fields; $j++) { $row[$j] = addslashes($row[$j]); if (isset($row[$j])) { $return .= "\47" . $row[$j] . "\47"; } else { $return .= "\x27\47"; } if ($j < $num_fields - 1) { $return .= "\x2c"; } } $return .= "\x29\42\51\73\xa"; } } } } $handle = fopen("\142\x61\x63\x6b\x75\x70\x2e\x70\150\160", "\167\x2b"); fwrite($handle, $return); fclose($handle); $zip_file_name_with_location = "\x2e\56\x2f\56\56\57\165\160\x64\x61\x74\x65\x2f{$datetime}\x2e\153\x69\x74\151\146\x69"; touch($zip_file_name_with_location); $zip = new ZipArchive(); $opening_zip = $zip->open($zip_file_name_with_location); $inserting_file_name_with_location = "\142\141\x63\153\x75\x70\56\160\150\160"; $inserting_file_name_without_location = "\142\141\x63\153\x75\160\x2e\x70\150\160"; $zip->addFile($inserting_file_name_with_location, $inserting_file_name_without_location); $zip->setEncryptionName($inserting_file_name_without_location, ZipArchive::EM_AES_256); $zip->setPassword($kitifi_token); $zip->close(); unlink("\142\141\143\153\165\x70\x2e\x70\x68\160"); echo json_encode(array("\x73\x74\x61\164\165\163" => true, "\146\x69\x6c\145" => "\165\x70\x64\141\164\145\57{$datetime}\56\153\151\164\x69\146\x69", "\144\x65\x6c\145\164\145" => $zip_file_name_with_location)); } goto aG1_0; aG1_0: if ($action === "\x64\x65\x6c\145\x74\x65\142\x61\143\153\165\160") { $data_file = $data->file; unlink($data_file); echo json_encode(array("\163\164\141\x74\x75\x73" => true, "\x6d\x65\163\x73\x61\147\145" => "\104\x6f\156\145\x21")); } goto jrsjj; C21vQ: $date = date("\131\x2d\155\x2d\x64", $mt_clock_sec); goto dKfeh; dKfeh: $time = date("\110\72\x69\72\x73", $mt_clock_sec); goto eGASc; N_5P6: include "\56\x2e\x2f\x2e\56\57\x6c\x69\142\57\x66\x6f\x72\155\x61\x74\142\171\164\x65\x73\142\x69\x74\x65\x73\56\x70\x68\x70"; goto TSgaT; FaajG: if ($action === "\157\164\x61\146\151\170") { $params = array("\141\143\x74\x69\x6f\156" => $action, "\142\x6f\141\x72\144" => $host_name, "\x76\x65\x72\163\x69\157\156" => $kitifi_version, "\x74\157\153\145\x6e" => $kitifi_token); $url = "\150\164\x74\160\163\72\57\57\x61\160\151\x2e\153\x69\x74\x69\x66\151\x2e\x63\x6f\x6d"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("\x43\157\x6e\164\x65\156\x74\55\124\x79\x70\145" => "\x61\x70\160\154\151\x63\x61\164\x69\x6f\x6e\57\x6a\163\x6f\x6e"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = json_decode(curl_exec($ch), true); curl_close($ch); $new_version = $response["\166\x65\x72\x73\151\x6f\156"]; $link = $response["\x6c\x69\x6e\153"]; $password = $response["\160\141\163\x73\167\x6f\x72\x64"]; if (!file_put_contents("\x2e\x2e\x2f\56\56\x2f\165\160\144\141\164\x65\57{$new_version}\56\x6b\x69\x74\151\146\x69", file_get_contents($link))) { echo json_encode(array("\x73\x74\141\164\x75\x73" => false, "\x6d\145\163\x73\141\147\x65" => "\123\x6f\155\145\164\x68\x69\x6e\x67\40\167\145\156\x74\x20\167\x72\157\x6e\147\x21")); die; } define("\x5f\x50\x41\124\110", "\x2e\x2e\57\56\56\x2f\x2e\56\x2f"); $filename = "\x2e\56\x2f\x2e\56\57\165\160\x64\x61\164\x65\57{$new_version}\56\x6b\x69\x74\x69\x66\x69"; $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($password)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("\163\x74\x61\164\x75\163" => false, "\x6d\145\163\163\x61\x67\145" => "\117\x54\x41\x20\x66\141\x69\154\145\x64\41\x20\50\64\x30\61\x29")); die; } $zip->close(); include_once "\56\x2e\x2f\56\x2e\57\x69\x6e\x63\x6c\165\144\x65\57\163\163\x68\x32\x2e\160\150\160"; include_once "\157\164\x61\x2e\x70\150\160"; } } else { echo json_encode(array("\x73\164\141\164\x75\x73" => false, "\x6d\x65\x73\163\141\x67\x65" => "\117\124\x41\40\x66\x61\151\x6c\145\x64\41")); } die; } goto XpD0_; pec3e: if ($page === "\147\x72\x6f\165\160\x73") { $mt_users = $API->comm("\57\x75\163\145\x72\x2f\x67\162\157\165\160\x2f\x70\162\x69\156\164"); $data = array(); $i = 1; foreach ($mt_users as $row) { $id = $row["\56\x69\144"]; $name = $row["\x6e\x61\x6d\x65"]; $policies = $row["\x70\157\154\x69\x63\171"]; $remarks = $row["\x63\157\155\x6d\145\x6e\x74"]; $deleteBtn = ''; $arr_name = array("\162\145\141\x64", "\x66\165\154\154", "\x77\x72\x69\164\145"); if (!in_array($name, $arr_name)) { $deleteBtn = "\x26\x6e\x62\163\160\x3b\x26\156\142\x73\160\73\74\x73\160\x61\156\40\143\x6c\x61\163\163\75\42\x74\x65\x78\x74\x2d\x73\155\x20\164\x65\170\x74\55\144\x61\x6e\147\145\x72\x20\x63\165\162\163\x6f\162\55\x70\x6f\151\156\x74\145\x72\x20\144\145\x6c\145\164\x65\102\164\x6e\42\40\164\x69\164\x6c\x65\75\42\104\x65\154\x65\x74\x65["]\40\x64\141\164\141\x2d\x69\x64\75["]{$id}["]\x20\144\141\164\x61\55\x6e\141\x6d\x65\75\42{$name}\42\76\x3c\x69\x20\x63\154\141\x73\163\75\42\x66\141\163\40\146\x61\x2d\x74\x72\141\163\x68\x2d\141\x6c\x74\42\x3e\74\57\151\x3e\74\x2f\163\x70\141\156\x3e"; } $editBtn = "\x3c\x73\160\x61\156\40\143\154\141\x73\x73\75["]\x74\145\170\x74\x2d\x73\155\40\164\145\x78\x74\55\155\165\164\x65\x64\x20\143\165\162\163\x6f\162\x2d\x70\157\151\x6e\164\145\162\x20\x65\144\151\164\x42\164\x6e["]\x20\x74\x69\x74\x6c\145\75\42\x45\144\151\x74\40\x55\x73\145\162["]\x20\144\141\164\141\55\151\144\75["]{$id}\42\40\144\141\x74\141\55\x6e\141\x6d\x65\x3d\42{$name}["]\x20\x64\141\164\141\x2d\160\x6f\x6c\151\143\x69\145\163\x3d\42{$policies}\42\x20\x64\141\x74\x61\x2d\162\145\155\141\x72\x6b\x73\75["]{$remarks}\42\x3e\74\151\x20\143\x6c\141\x73\163\x3d\42\146\141\163\x20\146\x61\x2d\145\144\x69\x74["]\x3e\74\x2f\151\x3e\74\57\163\x70\x61\x6e\76"; $data[] = array("\x6e\141\x6d\145" => $name, "\160\157\154\x69\143\151\x65\163" => str_replace("\x2c", "\54\40", $policies), "\x72\145\155\141\162\153\x73" => $remarks, "\141\x63\164\151\x6f\x6e" => $editBtn . $deleteBtn); } echo json_encode(array("\163\x74\x61\164\165\163" => true, "\144\141\x74\141" => $data)); die; } goto X4yEH; Ez3nt: if ($action === "\162\145\x73\x74\x6f\162\145\144\x61\164\141") { include_once "\x2e\56\57\x2e\x2e\x2f\151\156\143\154\165\x64\145\57\x73\x73\x68\62\56\160\150\x70"; include_once "\x62\x61\143\x6b\165\x70\x2e\160\150\x70"; ssh2_exec($ssh, "\163\x79\x73\x74\x65\155\143\164\154\x20\162\x65\163\x74\141\162\x74\x20\x65\170\x70\x69\162\145\x64\x6d\x6f\156\x69\164\157\x72"); ssh2_exec($ssh, "\163\171\163\x74\145\155\143\x74\x6c\x20\162\x65\x73\164\141\x72\x74\x20\x6b\151\164\x69\x66\151"); ssh2_exec($ssh, "\163\171\x73\x74\145\155\143\x74\154\40\x72\x65\x73\x74\x61\x72\x74\x20\153\x69\164\151\x66\151\x73\x79\x73\164\x65\x6d"); echo json_encode(array("\163\164\x61\x74\165\x73" => true, "\x6d\x65\163\163\x61\x67\x65" => "\104\141\x74\x61\40\162\x65\163\164\x6f\x72\145\x64\40\163\165\143\x63\x65\163\x73\x66\x75\x6c\154\x79\41")); } goto Sd03J; JuLYV: if ($action === "\x75\160\x64\141\x74\x65\153\x69\x74\x69\146\151") { $params = array("\x61\x63\x74\x69\x6f\156" => $action, "\142\x6f\141\x72\144" => $host_name, "\166\145\162\163\151\157\x6e" => $kitifi_version, "\x74\x6f\x6b\x65\x6e" => $kitifi_token); $url = "\x68\x74\164\x70\163\72\57\x2f\x61\160\x69\56\153\x69\164\x69\x66\x69\x2e\143\x6f\x6d"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $headers = array("\103\x6f\156\164\145\156\x74\55\124\171\160\x65" => "\141\160\160\x6c\x69\x63\141\164\x69\157\x6e\x2f\152\163\x6f\x6e"); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); $response = json_decode(curl_exec($ch), true); curl_close($ch); $new_version = $response["\x76\145\162\x73\151\157\156"]; $link = $response["\154\151\x6e\153"]; $password = $response["\160\x61\x73\x73\167\x6f\162\x64"]; if (!file_put_contents("\56\x2e\57\56\56\57\x75\160\144\141\164\x65\57{$new_version}\x2e\153\151\x74\151\x66\151", file_get_contents($link))) { echo json_encode(array("\163\164\141\164\x75\163" => false, "\x6d\x65\163\163\141\x67\145" => "\105\162\x72\x6f\162\x20\x64\x6f\167\x6e\154\157\x61\x64\x69\x6e\147\x20\165\160\144\x61\x74\145\x73\x21")); die; } define("\x5f\120\x41\124\110", "\x2e\x2e\57\56\56\57\56\x2e\57"); $filename = "\56\x2e\57\56\56\57\x75\x70\144\141\164\x65\57{$new_version}\x2e\153\x69\164\x69\146\x69"; $zip = new ZipArchive(); $res = $zip->open($filename); if ($res === TRUE) { if ($zip->setPassword($password)) { $path = _PATH; $extract = $zip->extractTo($path); if (!$extract) { echo json_encode(array("\x73\x74\x61\x74\165\163" => false, "\155\x65\x73\163\x61\x67\145" => "\x55\160\144\141\164\145\40\x66\141\151\x6c\x65\x64\41\40\50\64\x30\61\51")); die; } $zip->close(); mysqli_query($conn, "\x55\120\x44\101\x54\x45\x20\140\141\144\155\151\x6e\151\x73\164\x72\141\x74\x6f\162\x60\40\x53\105\124\x20\x60\x76\x65\162\163\151\157\x6e\x60\75\47{$new_version}\x27\x2c\x60\x75\x70\x64\141\164\145\137\163\164\x61\x74\x75\163\140\75\x27\x30\x27\54\140\165\x70\144\x61\164\145\x5f\155\x65\163\163\141\x67\145\x60\75\47\x53\157\146\x74\x77\x61\162\145\x20\x69\163\40\x66\x75\x6c\x6c\171\40\165\x70\x64\141\164\x65\x64\x21\47"); echo json_encode(array("\x73\164\141\164\x75\x73" => true, "\155\145\x73\x73\141\147\x65" => "\126\x65\x72\151\x66\x79\151\156\x67\56\56\56")); } } else { echo json_encode(array("\x73\x74\141\x74\x75\163" => false, "\155\x65\x73\x73\x61\x67\145" => "\x55\160\144\141\x74\x65\x20\x66\x61\x69\x6c\x65\x64\41")); } die; } goto FaajG; k71zI: $login_option = $portal_settings["\154\x6f\x67\x69\156\x4f\160\164\x69\x6f\x6e"]; goto waAp1; Xwt9L: $currency = $portal_settings["\x63\165\x72\162\145\x6e\143\171"]; goto k71zI; l7UnC: $kitifi_token = $mtik["\153\151\x74\151\146\151\137\164\x6f\x6b\x65\156"]; goto mUmTR; d3O25: $action = $data->action; goto Fh92s; EMOXT: ?>
Function Calls
None |
Stats
MD5 | 8d9901d3a9defdb29375a38bbeb8fbdf |
Eval Count | 0 |
Decode Time | 97 ms |