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 require_once "\56\56\57\x2e\x2e\x2f\166\x65\156\144\x6f\162\57\x61\165\164\x6f\154..
Decoded Output download
<?php
require_once "../../vendor/autoload.php"; require_once "src/File/Manager.php"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto Ec23a; Abd14: checkPath($file, $homeDirectory); goto c9b89; B2d6b: Ba093: goto cc494; Fdc47: $copyTo = $_POST["to"] ?? null; goto ab8cf; F1e00: F5bd6: goto B8a5d; Ec68a: $user = $_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]; goto af746; a2f28: if (!(true === str_starts_with($requestUri, "/file-manager/backend/folders") && false === is_null($id))) { goto f41fa; } goto ab5b3; e9c0f: $targetDirectory = str_replace([".."], [''], $targetDirectory); goto ff0b6; C392d: $data = $fileManager->copy($file, $copyToDirectory); goto e921f; eb5a4: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Abd14; F7c85: exit; goto a3e59; b8d6d: $files = []; goto E1e64; Fec1b: Ed9ba: goto ce1be; Dc034: exit; goto e6544; A2f4b: echo $fileContent; goto D0f02; bdac6: checkPath($directory, $homeDirectory); goto fa448; A31da: $data = $fileManager->extract($file, $destinationDirectoryName); goto c0f91; cba63: $id = $_POST["id"] ?? null; goto Ee840; e0d7c: if (!(true === is_null($user))) { goto f6f3e; } goto e75ed; Ff255: goto F79ae; goto b865f; F3b96: if (!(true === str_starts_with($requestUri, "/file-manager/backend/extract"))) { goto Faa4f; } goto F88a2; Fa766: $fileContent = $fileManager->getFileContent($file); goto A2f4b; f7344: checkPath($file, $homeDirectory); goto d5133; b3c04: f36a1: goto E9555; E0736: exit; goto Fbe7c; f2e4b: exit; goto f64b6; e7b4e: C6288: goto A450d; B756d: f2701: goto F1e00; d1159: $permissions = $_POST["permissions"] ?? null; goto b052b; A6491: $fileUploadPath = $_POST["upload_fullpath"] ?? null; goto dc3d0; cf2d9: a5374: goto Cc469; fa448: $data = $fileManager->getFiles($directory); goto ca44d; c3456: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto E017f; } goto Bd570; C190c: $newFilename = $_POST["name"] ?? ''; goto F29e6; c9bf6: echo json_encode($data); goto E0736; c1140: if (!(true === str_starts_with($requestUri, "/file-manager/backend/direct") && true === isset($_GET["download"]))) { goto b33ec; } goto d400b; c04b0: B7af4: goto c1140; c313e: if (!(true === isset($_POST["name"]) && false === empty($_POST["name"]) && true === isset($_POST["id"]))) { goto Afab3; } goto C190c; Cc5d4: $appVersion = $_ENV["APP_VERSION"]; goto F8fe1; Ff149: $id = $_GET["id"] ?? null; goto Ca94c; ad57d: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto A8685; dfb73: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto ddc65; Aa4c4: $id = $_POST["id"] ?? null; goto Fdc47; Ec23a: $sessionId = $_COOKIE["cloudpanel"] ?? null; goto a6add; D3743: checkPath($copyToDirectory, $homeDirectory); goto C392d; D2c7f: $moveToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto C3500; d400b: $download = $_GET["download"] ?? null; goto c6cb2; c62e8: cae04: goto Bde39; Efb13: A6c9e: goto c04b0; F17d4: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto Fff8e; } goto Eea13; ca44d: af5db: goto A5816; e0d22: session_start(); goto e1208; b54bf: b9442: goto f63fd; c91a2: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto B8d29; E9474: if (!(true === isset($_POST["files"]) && true === isset($_POST["target"]))) { goto b9f46; } goto efc19; Fe199: if (!(true === str_starts_with($requestUri, "/file-manager/backend/upload"))) { goto Dc3d6; } goto e43cf; E91e3: checkPath($moveToDirectory, $homeDirectory); goto eb708; f7c39: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto A4617; b104e: if (!(true === str_starts_with($requestUri, "/file-manager/backend/files") && false === is_null($id))) { goto C744e; } goto A3a95; F88a2: if (!(true === isset($_POST["id"]) && true === isset($_POST["destinationDirectoryName"]))) { goto b9442; } goto a2e56; Bc799: fd05f: goto f951a; Caa7b: $destinationDirectoryName = $_POST["destinationDirectoryName"] ?? null; goto Adef9; Adc2f: checkPath($directory, $homeDirectory); goto A26f3; f64b6: F841f: goto Efb13; F5f22: $directory = $homeDirectory; goto B4dd2; D377e: exit; goto b45a6; F4bf2: checkPath($file, $homeDirectory); goto d8ab2; eb708: $data = $fileManager->move($file, $moveToDirectory); goto fd09b; Fb565: $envFile = "../../.env"; goto A465f; cc494: F79ae: goto Fb565; B8d29: checkPath($directory, $homeDirectory); goto dc06e; eec62: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto F31a2; } goto e9c0f; Ccc00: A789f: goto b3c04; dc3d0: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "../") && false === is_null($tmpFile) && false === is_null($id))) { goto c63bf; } goto c91a2; fdbcc: exit; goto c83e6; dbbd6: if (!(true === str_starts_with($requestUri, "/file-manager/backend/makefile"))) { goto B5ca2; } goto e98e9; fef01: if (!(true === str_starts_with($requestUri, "/file-manager/backend/copy"))) { goto a2a0e; } goto Edacd; Fb887: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto f0627; A450d: B5ca2: goto E7266; e98e9: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto C6288; } goto E0273; C1cd9: $directoryName = $_POST["name"] ?? null; goto d16a4; c7ff4: if (!(false === is_null($files))) { goto f36a1; } goto dec0b; Adef9: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto Adf25; } goto E0480; d8ab2: $data = $fileManager->delete($file); goto Eeb84; c83e6: f41fa: goto b104e; Eea13: $id = $_POST["id"] ?? null; goto C1cd9; a3e59: Ac6c1: goto eb77b; Cbdb5: Cf84b: goto a2a90; Ee840: $copyTo = $_POST["to"] ?? null; goto f7c39; C3284: if (!(true === is_dir($directory))) { goto af5db; } goto bdac6; E299c: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto A262c; } goto ad57d; ce1be: $user = null; goto dbf04; cdfa3: $data = $fileManager->writeFileContent($file, $fileContent); goto d8215; Ba902: Adf25: goto b54bf; B0d47: if (!(true === str_starts_with($requestUri, "/file-manager/backend/rename"))) { goto Cf84b; } goto c313e; b45a6: A262c: goto e7b4e; D6419: if (!(true === isset($_POST["id"]))) { goto A6c9e; } goto D77c4; Ed0c2: F31a2: goto Eaa50; e921f: echo json_encode($data); goto F2739; Aff98: if (!(true === str_starts_with($requestUri, "/file-manager/backend/text"))) { goto cf922; } goto Ec554; ab5b3: $data = []; goto F5f22; a99d4: Dcad4: goto C7046; d5133: $destinationDirectoryName = str_replace([".."], [''], $destinationDirectoryName); goto A31da; Eda28: $sessionData = file_get_contents($sessionFile); goto Abee6; e6544: c63bf: goto f9ca4; B8a5d: eff61: goto F3b96; b37c1: checkPath($directory, $homeDirectory); goto d3363; c0314: $fileManager->download($file); goto Ce2d0; C2635: session_name("clp-file-manager"); goto e0d22; dec0b: $filesDecoded = json_decode($files, true); goto b8d6d; a3db0: if (!(false === is_null($id) && "/" != $id)) { goto F841f; } goto a8cb1; aacec: checkPath($targetDirectory, $homeDirectory); goto Fa6aa; E9555: $targetDirectory = $_POST["target"] ?? null; goto eec62; E7266: if (!(true === str_starts_with($requestUri, "/file-manager/backend/makedir"))) { goto D4452; } goto F17d4; ff806: foreach ($filesDecoded as $file) { goto f8e22; Ef692: bff9e: goto b6630; a82a9: if (!(false === is_null($filePath))) { goto f4367; } goto f7d82; bf29c: e2613: goto dbc99; f8e22: $filePath = $file["id"] ?? null; goto a82a9; Ffb5e: $files[] = $file; goto bf29c; a3722: if (!(true === file_exists($file))) { goto e2613; } goto Ffb5e; f7d82: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($filePath, "/")); goto a3722; dbc99: f4367: goto Ef692; b6630: } goto Fa5cb; Ef9a7: Dc3d6: goto dbbd6; c6cb2: if (!(false === is_null($id))) { goto d8ae0; } goto C9852; Bf611: checkPath($file, $homeDirectory); goto C888b; A921d: $tmpFile = $_FILES["upload"]["tmp_name"] ?? null; goto A6491; Ce0ae: if (!(true === str_starts_with($requestUri, "/file-manager/backend/permissions"))) { goto eff61; } goto B9231; E58fa: $dotenv->load($envFile); goto D2fdc; Fa6aa: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto ead5d; ff0b6: $id = $targetDirectory; goto Dedae; C9852: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Ed80f; A4617: $copyToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto F7238; Eaa50: b9f46: goto Cfd0c; a6579: echo json_encode($data); goto c1cb9; A26f3: $data = $fileManager->getFolders($directory); goto C0abc; a813a: $requestUri = $_SERVER["REQUEST_URI"] ?? null; goto Ff149; c84b2: $fileManager = new FileManager($user); goto a2f28; b1975: $data = []; goto e0d0e; ab8cf: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto D2c7f; B9231: if (!(true === isset($_POST["id"]) && true === isset($_POST["permissions"]))) { goto F5bd6; } goto eb233; D0090: b33ec: goto Fe199; Bde39: Afab3: goto Cbdb5; aa2f1: if (!(false === is_null($id))) { goto C21d0; } goto Fb887; B1d6f: if (!(true === str_starts_with($requestUri, "/file-manager/backend/compress"))) { goto b7d84; } goto E9474; E0a9a: echo json_encode($data); goto b0b20; e0d0e: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Bf611; ddc65: echo json_encode($data); goto D377e; Fa5cb: f17a8: goto Ccc00; Bd570: exit; goto Ff255; dbf04: if (!(true === isset($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]) && false === empty($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]))) { goto ab500; } goto Ec68a; f951a: a2a0e: goto Ffbce; E0273: $id = $_POST["id"] ?? null; goto Ac9b3; dc6ae: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto cae04; } goto b1975; Ca94c: $homeDirectory = sprintf("/home/%s/", $user); goto Cc0d1; C7046: function checkPath($file, $homeDirectory) { goto f83f5; f83f5: $file = realpath($file); goto c9bd4; c9bd4: $homeDirectory = rtrim($homeDirectory, "/"); goto A4f2a; A4f2a: if (!(false === str_starts_with($file, $homeDirectory))) { goto b3f4e; } goto F2c28; F2c28: exit(sprintf("File is not valid: %s", $file)); goto C505a; C505a: b3f4e: goto D9883; D9883: } goto Dd617; a6add: $sessionFile = sprintf("/home/clp/htdocs/app/files/var/sessions/sess_%s", $sessionId); goto c3456; Ffbce: if (!(true === str_starts_with($requestUri, "/file-manager/backend/move"))) { goto Dbbed; } goto a95f0; Cab8a: D4452: goto fef01; B4dd2: if (!("/" != $id)) { goto ce21d; } goto f90b5; f90b5: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto F00f7; F29e6: $id = $_POST["id"] ?? null; goto dc6ae; f0627: checkPath($file, $homeDirectory); goto Fa766; e1208: session_decode($sessionData); goto B2d6b; Edacd: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto fd05f; } goto cba63; Cc0d1: if (!(false == is_dir($homeDirectory))) { goto Dcad4; } goto B0ad2; c91c7: exit; goto B460a; D77c4: $id = $_POST["id"] ?? null; goto a3db0; a2e56: $id = $_POST["id"] ?? null; goto Caa7b; dc06e: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto A9c04; ada63: goto Fce74; goto B1e38; e43cf: if (!(true === isset($_FILES["upload"]))) { goto c56d4; } goto A921d; A465f: $dotenv = new Dotenv(); goto E58fa; B089b: cf922: goto B0d47; Fbe7c: d397b: goto fb8c4; F00f7: ce21d: goto Adc2f; f36c5: checkPath($file, $homeDirectory); goto cdfa3; D0f02: C21d0: goto ada63; Ac9b3: $filename = $_POST["name"] ?? null; goto E299c; Ec554: if (true === isset($_POST["content"]) && true === isset($_POST["id"])) { goto Be848; } goto aa2f1; Ed80f: checkPath($file, $homeDirectory); goto c0314; d16a4: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto d397b; } goto F557b; aa630: ini_set("display_errors", 1); goto Fec1b; b052b: if (!(false === is_null($permissions) && false === is_null($id))) { goto f2701; } goto eb5a4; E0480: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto f7344; fb8c4: Fff8e: goto Cab8a; cb9d1: if (!(false === is_null($id))) { goto a5374; } goto D42a9; a8cb1: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto F4bf2; F557b: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto b37c1; Dd617: function isFilenameValid($filename) { goto C7777; a591e: d0d6d: goto dc0c6; C7777: $isFilenameValid = false; goto Da70f; dc0c6: return $isFilenameValid; goto ab9e7; Da70f: if (!preg_match("/^(?!.*\.\.)[a-zA-Z0-9_\-\ \/\.]+$/", $filename)) { goto d0d6d; } goto c25bb; c25bb: $isFilenameValid = true; goto a591e; ab9e7: } goto c84b2; eb233: $id = $_POST["id"] ?? null; goto d1159; c0f91: echo json_encode($data); goto bb1c8; a95f0: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto Ac6c1; } goto Aa4c4; C3500: checkPath($file, $homeDirectory); goto E91e3; E1e64: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto A789f; } goto ff806; caf80: exit; goto B089b; efc19: $files = $_POST["files"] ?? null; goto c7ff4; fd09b: echo json_encode($data); goto F7c85; f63fd: Faa4f: goto B1d6f; A3a95: $data = []; goto Ae52d; f9ca4: c56d4: goto Ef9a7; eb77b: Dbbed: goto Ce0ae; D2fdc: $appEnv = $_ENV["APP_ENV"]; goto Cc5d4; F7238: checkPath($file, $homeDirectory); goto D3743; D4709: f6f3e: goto a813a; A8685: checkPath($directory, $homeDirectory); goto dfb73; A9c04: echo json_encode($data); goto Dc034; bb1c8: exit; goto Ba902; def37: $fileContent = $_POST["content"] ?? ''; goto f36c5; F2739: exit; goto Bc799; F8fe1: if (!("dev" === $appEnv)) { goto Ed9ba; } goto eb1c3; e75ed: exit; goto D4709; B0ad2: exit; goto a99d4; d3363: $data = $fileManager->makeDirectory($directoryName, $directory); goto c9bf6; c1cb9: exit; goto c62e8; B460a: C744e: goto Aff98; C888b: $data = $fileManager->rename($file, $newFilename); goto a6579; b0b20: exit; goto B756d; D42a9: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto def37; a2a90: if (!(true === str_starts_with($requestUri, "/file-manager/backend/delete"))) { goto B7af4; } goto D6419; Cc469: Fce74: goto caf80; Ae52d: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto C3284; a30ea: $id = $_POST["id"] ?? null; goto cb9d1; Dedae: $targetDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($targetDirectory, "/")); goto aacec; d8215: echo json_encode($data); goto cf2d9; Abee6: if (!(false === empty($sessionData))) { goto Ba093; } goto C2635; ead5d: echo json_encode($data); goto Ed0c2; B1e38: Be848: goto a30ea; eb1c3: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto aa630; C0abc: echo json_encode($data); goto fdbcc; Ce2d0: d8ae0: goto D0090; Eeb84: echo json_encode($data); goto f2e4b; b865f: E017f: goto Eda28; af746: ab500: goto e0d7c; c9b89: $data = $fileManager->permissions($file, $permissions); goto E0a9a; A5816: echo json_encode($data); goto c91c7; Cfd0c: b7d84:
?>
Did this file decode correctly?
Original Code
<?php
require_once "\56\56\57\x2e\x2e\x2f\166\x65\156\144\x6f\162\57\x61\165\164\x6f\154\157\141\x64\56\160\150\160"; require_once "\163\162\x63\57\106\x69\154\x65\x2f\115\141\x6e\x61\147\145\162\56\x70\150\160"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto Ec23a; Abd14: checkPath($file, $homeDirectory); goto c9b89; B2d6b: Ba093: goto cc494; Fdc47: $copyTo = $_POST["\164\x6f"] ?? null; goto ab8cf; F1e00: F5bd6: goto B8a5d; Ec68a: $user = $_SESSION["\x5f\163\x66\x32\x5f\x61\x74\164\x72\151\142\x75\164\145\163"]["\143\154\x70\55\x66\151\x6c\145\55\x6d\x61\156\141\x67\x65\x72"]["\165\163\145\x72"]; goto af746; a2f28: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\55\x6d\x61\x6e\x61\147\145\x72\57\x62\x61\143\x6b\x65\x6e\144\x2f\x66\157\154\x64\145\x72\x73") && false === is_null($id))) { goto f41fa; } goto ab5b3; e9c0f: $targetDirectory = str_replace(["\x2e\56"], [''], $targetDirectory); goto ff0b6; C392d: $data = $fileManager->copy($file, $copyToDirectory); goto e921f; eb5a4: $file = sprintf("\45\163\57\45\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Abd14; F7c85: exit; goto a3e59; b8d6d: $files = []; goto E1e64; Fec1b: Ed9ba: goto ce1be; Dc034: exit; goto e6544; A2f4b: echo $fileContent; goto D0f02; bdac6: checkPath($directory, $homeDirectory); goto fa448; A31da: $data = $fileManager->extract($file, $destinationDirectoryName); goto c0f91; cba63: $id = $_POST["\151\x64"] ?? null; goto Ee840; e0d7c: if (!(true === is_null($user))) { goto f6f3e; } goto e75ed; Ff255: goto F79ae; goto b865f; F3b96: if (!(true === str_starts_with($requestUri, "\x2f\146\x69\154\145\x2d\x6d\141\x6e\x61\x67\145\162\57\142\141\x63\x6b\x65\x6e\x64\x2f\145\x78\164\x72\141\143\164"))) { goto Faa4f; } goto F88a2; Fa766: $fileContent = $fileManager->getFileContent($file); goto A2f4b; f7344: checkPath($file, $homeDirectory); goto d5133; b3c04: f36a1: goto E9555; E0736: exit; goto Fbe7c; f2e4b: exit; goto f64b6; e7b4e: C6288: goto A450d; B756d: f2701: goto F1e00; d1159: $permissions = $_POST["\x70\x65\x72\155\151\x73\163\x69\157\x6e\x73"] ?? null; goto b052b; A6491: $fileUploadPath = $_POST["\x75\160\x6c\x6f\141\x64\x5f\146\x75\154\x6c\x70\141\x74\x68"] ?? null; goto dc3d0; cf2d9: a5374: goto Cc469; fa448: $data = $fileManager->getFiles($directory); goto ca44d; c3456: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto E017f; } goto Bd570; C190c: $newFilename = $_POST["\x6e\x61\x6d\x65"] ?? ''; goto F29e6; c9bf6: echo json_encode($data); goto E0736; c1140: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\x2d\x6d\141\x6e\141\147\x65\162\x2f\x62\141\x63\x6b\145\x6e\x64\57\144\x69\x72\145\143\x74") && true === isset($_GET["\x64\x6f\167\x6e\154\157\141\144"]))) { goto b33ec; } goto d400b; c04b0: B7af4: goto c1140; c313e: if (!(true === isset($_POST["\x6e\x61\155\x65"]) && false === empty($_POST["\156\141\x6d\x65"]) && true === isset($_POST["\x69\144"]))) { goto Afab3; } goto C190c; Cc5d4: $appVersion = $_ENV["\x41\120\120\x5f\126\105\122\x53\111\117\116"]; goto F8fe1; Ff149: $id = $_GET["\151\144"] ?? null; goto Ca94c; ad57d: $directory = sprintf("\x25\x73\57\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto A8685; dfb73: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto ddc65; Aa4c4: $id = $_POST["\x69\x64"] ?? null; goto Fdc47; Ec23a: $sessionId = $_COOKIE["\143\x6c\157\x75\x64\160\x61\x6e\x65\154"] ?? null; goto a6add; D3743: checkPath($copyToDirectory, $homeDirectory); goto C392d; D2c7f: $moveToDirectory = sprintf("\x25\163\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($copyTo, "\x2f")); goto C3500; d400b: $download = $_GET["\144\x6f\x77\x6e\154\157\x61\144"] ?? null; goto c6cb2; c62e8: cae04: goto Bde39; Efb13: A6c9e: goto c04b0; F17d4: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\x6e\141\x6d\x65"]))) { goto Fff8e; } goto Eea13; ca44d: af5db: goto A5816; e0d22: session_start(); goto e1208; b54bf: b9442: goto f63fd; c91a2: $directory = sprintf("\x25\x73\57\45\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto B8d29; E9474: if (!(true === isset($_POST["\146\x69\x6c\x65\x73"]) && true === isset($_POST["\164\x61\x72\x67\x65\164"]))) { goto b9f46; } goto efc19; Fe199: if (!(true === str_starts_with($requestUri, "\x2f\146\151\x6c\145\x2d\155\141\156\x61\147\145\x72\x2f\142\x61\x63\153\x65\x6e\x64\x2f\165\x70\154\x6f\x61\144"))) { goto Dc3d6; } goto e43cf; E91e3: checkPath($moveToDirectory, $homeDirectory); goto eb708; f7c39: $file = sprintf("\x25\163\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto A4617; b104e: if (!(true === str_starts_with($requestUri, "\57\146\x69\154\145\x2d\x6d\x61\156\141\147\145\162\x2f\142\x61\143\x6b\145\156\144\57\x66\151\x6c\x65\163") && false === is_null($id))) { goto C744e; } goto A3a95; F88a2: if (!(true === isset($_POST["\151\x64"]) && true === isset($_POST["\x64\x65\x73\x74\x69\156\x61\164\x69\157\156\x44\151\x72\145\x63\164\157\x72\171\116\141\155\x65"]))) { goto b9442; } goto a2e56; Bc799: fd05f: goto f951a; Caa7b: $destinationDirectoryName = $_POST["\144\145\x73\x74\151\156\141\164\x69\x6f\156\104\151\x72\145\143\x74\x6f\x72\x79\x4e\141\155\x65"] ?? null; goto Adef9; Adc2f: checkPath($directory, $homeDirectory); goto A26f3; f64b6: F841f: goto Efb13; F5f22: $directory = $homeDirectory; goto B4dd2; D377e: exit; goto b45a6; F4bf2: checkPath($file, $homeDirectory); goto d8ab2; eb708: $data = $fileManager->move($file, $moveToDirectory); goto fd09b; Fb565: $envFile = "\x2e\x2e\x2f\x2e\x2e\x2f\56\x65\156\x76"; goto A465f; cc494: F79ae: goto Fb565; B8d29: checkPath($directory, $homeDirectory); goto dc06e; eec62: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto F31a2; } goto e9c0f; Ccc00: A789f: goto b3c04; dc3d0: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "\x2e\x2e\57") && false === is_null($tmpFile) && false === is_null($id))) { goto c63bf; } goto c91a2; fdbcc: exit; goto c83e6; dbbd6: if (!(true === str_starts_with($requestUri, "\57\x66\x69\154\145\x2d\x6d\141\x6e\141\x67\x65\162\57\142\x61\x63\x6b\145\x6e\x64\x2f\155\141\153\145\146\x69\154\145"))) { goto B5ca2; } goto e98e9; fef01: if (!(true === str_starts_with($requestUri, "\x2f\x66\151\154\145\55\155\141\x6e\x61\147\145\162\x2f\x62\141\143\153\145\x6e\144\x2f\143\157\x70\171"))) { goto a2a0e; } goto Edacd; Fb887: $file = sprintf("\x25\163\x2f\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto f0627; A450d: B5ca2: goto E7266; e98e9: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\156\141\x6d\145"]))) { goto C6288; } goto E0273; C1cd9: $directoryName = $_POST["\x6e\x61\155\145"] ?? null; goto d16a4; c7ff4: if (!(false === is_null($files))) { goto f36a1; } goto dec0b; Adef9: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto Adf25; } goto E0480; d8ab2: $data = $fileManager->delete($file); goto Eeb84; c83e6: f41fa: goto b104e; Eea13: $id = $_POST["\151\144"] ?? null; goto C1cd9; a3e59: Ac6c1: goto eb77b; Cbdb5: Cf84b: goto a2a90; Ee840: $copyTo = $_POST["\164\x6f"] ?? null; goto f7c39; C3284: if (!(true === is_dir($directory))) { goto af5db; } goto bdac6; E299c: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto A262c; } goto ad57d; ce1be: $user = null; goto dbf04; cdfa3: $data = $fileManager->writeFileContent($file, $fileContent); goto d8215; Ba902: Adf25: goto b54bf; B0d47: if (!(true === str_starts_with($requestUri, "\x2f\x66\x69\x6c\x65\55\x6d\141\x6e\141\147\145\162\x2f\142\141\x63\153\x65\156\x64\57\162\145\156\141\155\x65"))) { goto Cf84b; } goto c313e; b45a6: A262c: goto e7b4e; D6419: if (!(true === isset($_POST["\151\x64"]))) { goto A6c9e; } goto D77c4; Ed0c2: F31a2: goto Eaa50; e921f: echo json_encode($data); goto F2739; Aff98: if (!(true === str_starts_with($requestUri, "\57\146\x69\x6c\145\x2d\155\141\156\x61\x67\x65\x72\x2f\142\x61\x63\153\145\x6e\x64\57\x74\x65\x78\164"))) { goto cf922; } goto Ec554; ab5b3: $data = []; goto F5f22; a99d4: Dcad4: goto C7046; d5133: $destinationDirectoryName = str_replace(["\56\56"], [''], $destinationDirectoryName); goto A31da; Eda28: $sessionData = file_get_contents($sessionFile); goto Abee6; e6544: c63bf: goto f9ca4; B8a5d: eff61: goto F3b96; b37c1: checkPath($directory, $homeDirectory); goto d3363; c0314: $fileManager->download($file); goto Ce2d0; C2635: session_name("\143\154\x70\55\146\x69\154\x65\55\x6d\141\156\141\x67\145\162"); goto e0d22; dec0b: $filesDecoded = json_decode($files, true); goto b8d6d; a3db0: if (!(false === is_null($id) && "\57" != $id)) { goto F841f; } goto a8cb1; aacec: checkPath($targetDirectory, $homeDirectory); goto Fa6aa; E9555: $targetDirectory = $_POST["\x74\141\x72\147\x65\164"] ?? null; goto eec62; E7266: if (!(true === str_starts_with($requestUri, "\x2f\x66\151\x6c\145\55\x6d\141\x6e\x61\x67\145\x72\x2f\x62\x61\143\153\145\156\x64\57\x6d\x61\x6b\x65\x64\x69\162"))) { goto D4452; } goto F17d4; ff806: foreach ($filesDecoded as $file) { goto f8e22; Ef692: bff9e: goto b6630; a82a9: if (!(false === is_null($filePath))) { goto f4367; } goto f7d82; bf29c: e2613: goto dbc99; f8e22: $filePath = $file["\151\144"] ?? null; goto a82a9; Ffb5e: $files[] = $file; goto bf29c; a3722: if (!(true === file_exists($file))) { goto e2613; } goto Ffb5e; f7d82: $file = sprintf("\x25\163\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($filePath, "\x2f")); goto a3722; dbc99: f4367: goto Ef692; b6630: } goto Fa5cb; Ef9a7: Dc3d6: goto dbbd6; c6cb2: if (!(false === is_null($id))) { goto d8ae0; } goto C9852; Bf611: checkPath($file, $homeDirectory); goto C888b; A921d: $tmpFile = $_FILES["\x75\160\x6c\157\x61\144"]["\x74\x6d\160\137\156\x61\x6d\x65"] ?? null; goto A6491; Ce0ae: if (!(true === str_starts_with($requestUri, "\57\x66\x69\154\145\55\155\141\x6e\141\147\x65\x72\x2f\x62\x61\143\153\145\x6e\x64\x2f\160\x65\x72\x6d\151\x73\163\151\x6f\x6e\x73"))) { goto eff61; } goto B9231; E58fa: $dotenv->load($envFile); goto D2fdc; Fa6aa: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto ead5d; ff0b6: $id = $targetDirectory; goto Dedae; C9852: $file = sprintf("\x25\163\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto Ed80f; A4617: $copyToDirectory = sprintf("\45\x73\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($copyTo, "\x2f")); goto F7238; Eaa50: b9f46: goto Cfd0c; a6579: echo json_encode($data); goto c1cb9; A26f3: $data = $fileManager->getFolders($directory); goto C0abc; a813a: $requestUri = $_SERVER["\x52\x45\121\125\x45\123\124\x5f\x55\122\x49"] ?? null; goto Ff149; c84b2: $fileManager = new FileManager($user); goto a2f28; b1975: $data = []; goto e0d0e; ab8cf: $file = sprintf("\45\163\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto D2c7f; B9231: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\160\145\162\x6d\151\x73\x73\151\157\156\163"]))) { goto F5bd6; } goto eb233; D0090: b33ec: goto Fe199; Bde39: Afab3: goto Cbdb5; aa2f1: if (!(false === is_null($id))) { goto C21d0; } goto Fb887; B1d6f: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\x2d\x6d\x61\156\x61\147\x65\162\57\142\141\x63\x6b\145\x6e\144\x2f\143\157\155\160\162\x65\163\163"))) { goto b7d84; } goto E9474; E0a9a: echo json_encode($data); goto b0b20; e0d0e: $file = sprintf("\x25\x73\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Bf611; ddc65: echo json_encode($data); goto D377e; Fa5cb: f17a8: goto Ccc00; Bd570: exit; goto Ff255; dbf04: if (!(true === isset($_SESSION["\137\163\x66\62\x5f\x61\164\164\162\x69\x62\165\x74\x65\163"]["\143\x6c\160\x2d\x66\151\154\x65\x2d\x6d\x61\x6e\141\x67\145\162"]["\x75\x73\x65\x72"]) && false === empty($_SESSION["\x5f\x73\146\62\137\x61\164\164\162\151\x62\x75\164\145\163"]["\x63\154\x70\55\x66\x69\154\145\x2d\155\141\156\141\147\x65\x72"]["\x75\163\x65\162"]))) { goto ab500; } goto Ec68a; f951a: a2a0e: goto Ffbce; E0273: $id = $_POST["\151\x64"] ?? null; goto Ac9b3; dc6ae: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto cae04; } goto b1975; Ca94c: $homeDirectory = sprintf("\57\150\157\155\145\x2f\x25\x73\57", $user); goto Cc0d1; C7046: function checkPath($file, $homeDirectory) { goto f83f5; f83f5: $file = realpath($file); goto c9bd4; c9bd4: $homeDirectory = rtrim($homeDirectory, "\57"); goto A4f2a; A4f2a: if (!(false === str_starts_with($file, $homeDirectory))) { goto b3f4e; } goto F2c28; F2c28: exit(sprintf("\x46\151\x6c\x65\x20\x69\x73\40\156\157\x74\x20\x76\x61\x6c\x69\144\x3a\x20\45\x73", $file)); goto C505a; C505a: b3f4e: goto D9883; D9883: } goto Dd617; a6add: $sessionFile = sprintf("\57\x68\157\155\145\x2f\x63\154\x70\x2f\150\164\x64\x6f\143\163\57\x61\x70\160\x2f\x66\151\154\x65\x73\x2f\166\141\x72\x2f\163\145\163\x73\x69\x6f\x6e\x73\57\163\x65\x73\x73\137\x25\163", $sessionId); goto c3456; Ffbce: if (!(true === str_starts_with($requestUri, "\x2f\x66\x69\x6c\x65\x2d\x6d\141\156\x61\x67\145\x72\57\x62\141\x63\x6b\145\x6e\144\57\x6d\157\x76\x65"))) { goto Dbbed; } goto a95f0; Cab8a: D4452: goto fef01; B4dd2: if (!("\57" != $id)) { goto ce21d; } goto f90b5; f90b5: $directory = sprintf("\45\163\x2f\45\163\x2f", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto F00f7; F29e6: $id = $_POST["\151\x64"] ?? null; goto dc6ae; f0627: checkPath($file, $homeDirectory); goto Fa766; e1208: session_decode($sessionData); goto B2d6b; Edacd: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\164\157"]))) { goto fd05f; } goto cba63; Cc0d1: if (!(false == is_dir($homeDirectory))) { goto Dcad4; } goto B0ad2; c91c7: exit; goto B460a; D77c4: $id = $_POST["\151\x64"] ?? null; goto a3db0; a2e56: $id = $_POST["\x69\144"] ?? null; goto Caa7b; dc06e: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto A9c04; ada63: goto Fce74; goto B1e38; e43cf: if (!(true === isset($_FILES["\165\x70\x6c\x6f\141\x64"]))) { goto c56d4; } goto A921d; A465f: $dotenv = new Dotenv(); goto E58fa; B089b: cf922: goto B0d47; Fbe7c: d397b: goto fb8c4; F00f7: ce21d: goto Adc2f; f36c5: checkPath($file, $homeDirectory); goto cdfa3; D0f02: C21d0: goto ada63; Ac9b3: $filename = $_POST["\156\x61\155\x65"] ?? null; goto E299c; Ec554: if (true === isset($_POST["\x63\x6f\156\164\x65\156\x74"]) && true === isset($_POST["\x69\144"])) { goto Be848; } goto aa2f1; Ed80f: checkPath($file, $homeDirectory); goto c0314; d16a4: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto d397b; } goto F557b; aa630: ini_set("\144\x69\x73\x70\x6c\141\171\x5f\x65\x72\x72\x6f\x72\x73", 1); goto Fec1b; b052b: if (!(false === is_null($permissions) && false === is_null($id))) { goto f2701; } goto eb5a4; E0480: $file = sprintf("\x25\x73\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto f7344; fb8c4: Fff8e: goto Cab8a; cb9d1: if (!(false === is_null($id))) { goto a5374; } goto D42a9; a8cb1: $file = sprintf("\x25\163\x2f\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto F4bf2; F557b: $directory = sprintf("\x25\163\x2f\45\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto b37c1; Dd617: function isFilenameValid($filename) { goto C7777; a591e: d0d6d: goto dc0c6; C7777: $isFilenameValid = false; goto Da70f; dc0c6: return $isFilenameValid; goto ab9e7; Da70f: if (!preg_match("\x2f\x5e\50\x3f\41\56\x2a\x5c\56\x5c\56\x29\x5b\141\55\172\101\55\x5a\60\x2d\71\x5f\x5c\x2d\x5c\x20\x5c\57\134\56\x5d\53\x24\x2f", $filename)) { goto d0d6d; } goto c25bb; c25bb: $isFilenameValid = true; goto a591e; ab9e7: } goto c84b2; eb233: $id = $_POST["\x69\x64"] ?? null; goto d1159; c0f91: echo json_encode($data); goto bb1c8; a95f0: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\164\157"]))) { goto Ac6c1; } goto Aa4c4; C3500: checkPath($file, $homeDirectory); goto E91e3; E1e64: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto A789f; } goto ff806; caf80: exit; goto B089b; efc19: $files = $_POST["\146\151\154\x65\x73"] ?? null; goto c7ff4; fd09b: echo json_encode($data); goto F7c85; f63fd: Faa4f: goto B1d6f; A3a95: $data = []; goto Ae52d; f9ca4: c56d4: goto Ef9a7; eb77b: Dbbed: goto Ce0ae; D2fdc: $appEnv = $_ENV["\x41\120\120\137\x45\x4e\126"]; goto Cc5d4; F7238: checkPath($file, $homeDirectory); goto D3743; D4709: f6f3e: goto a813a; A8685: checkPath($directory, $homeDirectory); goto dfb73; A9c04: echo json_encode($data); goto Dc034; bb1c8: exit; goto Ba902; def37: $fileContent = $_POST["\x63\x6f\156\x74\145\156\x74"] ?? ''; goto f36c5; F2739: exit; goto Bc799; F8fe1: if (!("\144\145\x76" === $appEnv)) { goto Ed9ba; } goto eb1c3; e75ed: exit; goto D4709; B0ad2: exit; goto a99d4; d3363: $data = $fileManager->makeDirectory($directoryName, $directory); goto c9bf6; c1cb9: exit; goto c62e8; B460a: C744e: goto Aff98; C888b: $data = $fileManager->rename($file, $newFilename); goto a6579; b0b20: exit; goto B756d; D42a9: $file = sprintf("\x25\x73\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto def37; a2a90: if (!(true === str_starts_with($requestUri, "\x2f\x66\x69\154\x65\x2d\155\x61\156\141\x67\145\162\x2f\x62\141\143\x6b\x65\156\x64\57\x64\x65\x6c\145\x74\145"))) { goto B7af4; } goto D6419; Cc469: Fce74: goto caf80; Ae52d: $directory = sprintf("\x25\x73\x2f\x25\163\57", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto C3284; a30ea: $id = $_POST["\x69\x64"] ?? null; goto cb9d1; Dedae: $targetDirectory = sprintf("\x25\163\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($targetDirectory, "\x2f")); goto aacec; d8215: echo json_encode($data); goto cf2d9; Abee6: if (!(false === empty($sessionData))) { goto Ba093; } goto C2635; ead5d: echo json_encode($data); goto Ed0c2; B1e38: Be848: goto a30ea; eb1c3: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto aa630; C0abc: echo json_encode($data); goto fdbcc; Ce2d0: d8ae0: goto D0090; Eeb84: echo json_encode($data); goto f2e4b; b865f: E017f: goto Eda28; af746: ab500: goto e0d7c; c9b89: $data = $fileManager->permissions($file, $permissions); goto E0a9a; A5816: echo json_encode($data); goto c91c7; Cfd0c: b7d84:
Function Calls
None |
Stats
MD5 | a4ecdf8ca597ad950bc969c4abcc9ce5 |
Eval Count | 0 |
Decode Time | 122 ms |