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 "\x2e\x2e\57\x2e\56\57\166\x65\x6e\144\157\162\x2f\x61\x75\164\x6f\x6..
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 D9095; b0862: if (!(false == is_dir($homeDirectory))) { goto a4e5a; } goto B99ea; B9cdf: f8bfb: goto b2ad0; d82b9: if (!(true === str_starts_with($requestUri, "/file-manager/backend/move"))) { goto Fe878; } goto fdd54; A12ad: $id = $_POST["id"] ?? null; goto c524c; Bcd85: checkPath($directory, $homeDirectory); goto Eab7b; c746b: $sessionData = file_get_contents($sessionFile); goto C7f00; d2682: Ca205: goto C74d7; B7fb9: E335d: goto bd858; c44c9: B7910: goto d82b9; Cd06c: $fileManager = new FileManager($user); goto E6dd0; a82b2: echo json_encode($data); goto D21f2; b8837: $newFilename = $_POST["name"] ?? ''; goto B8dd2; Ae228: echo json_encode($data); goto Cb077; b35df: if (!(true === isset($_POST["id"]) && true === isset($_POST["permissions"]))) { goto f27fb; } goto f31d8; Da14f: echo json_encode($data); goto Feea8; c4344: Bdb8d: goto C7a11; B99ea: exit; goto C12b8; Dc04f: $files = $_POST["files"] ?? null; goto c4e9a; E554f: session_start(); goto D9609; fe804: $permissions = $_POST["permissions"] ?? null; goto c578b; f31d8: $id = $_POST["id"] ?? null; goto fe804; E31f2: exit; goto c7a51; Db59a: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "../") && false === is_null($tmpFile) && false === is_null($id))) { goto Abdc3; } goto ac4dc; de264: $targetDirectory = $_POST["target"] ?? null; goto B3e72; Cb077: exit; goto e3e50; e3e50: Ea63b: goto A21f2; af19a: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto F5cee; } goto Dda7c; f71fd: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto D6013; a1ee9: bd5bc: goto D9081; D6de9: b1784: goto eb645; f5ade: $fileContent = $_POST["content"] ?? ''; goto F28ef; C1a48: if (!(true === isset($_POST["id"]))) { goto b5a6b; } goto A033c; Ba163: if (!(false === is_null($id))) { goto d007a; } goto bc0bd; c975e: $data = $fileManager->getFolders($directory); goto Ded60; E5e38: if (!(true === isset($_POST["files"]) && true === isset($_POST["target"]))) { goto a4259; } goto Dc04f; Ffd45: checkPath($file, $homeDirectory); goto fe276; edacc: if (!(true === isset($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]) && false === empty($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]))) { goto A2fce; } goto Ce7a1; Cf274: $id = $_POST["id"] ?? null; goto Ba163; f5ebf: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto bd5bc; } goto A12ad; d002e: $data = $fileManager->makeDirectory($directoryName, $directory); goto a82b2; fdd54: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto ea350; } goto d4148; d6dff: $copyTo = $_POST["to"] ?? null; goto Fcb47; Ea3bc: $id = $_POST["id"] ?? null; goto d6dff; dd210: $envFile = "../../.env"; goto D8c01; E1a15: exit; goto f6570; e497e: if (!(true === str_starts_with($requestUri, "/file-manager/backend/permissions"))) { goto f3889; } goto b35df; cbf57: checkPath($file, $homeDirectory); goto A373d; f1984: De1f7: goto De90b; A6277: $copyToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto Ffd45; Ded60: echo json_encode($data); goto E1a15; d6ecb: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto A6f86; ae609: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto b3667; E3526: ea350: goto D82dc; A75b8: $filesDecoded = json_decode($files, true); goto dd463; A033c: $id = $_POST["id"] ?? null; goto Df030; c210d: c97cd: goto Be0cb; b1c07: $appVersion = $_ENV["APP_VERSION"]; goto a6b37; c80f6: $data = $fileManager->getFiles($directory); goto b7887; e911e: bdbcd: goto Cbc46; a6190: fd0c8: goto fdb99; c2c36: if (!(false === is_null($id))) { goto fc9e3; } goto a909f; D8783: $data = $fileManager->permissions($file, $permissions); goto a547f; be678: Fb42d: goto Cf274; f7679: f072b: goto f942d; D5e11: $id = $_POST["id"] ?? null; goto B69ac; f4973: goto Cd601; goto be678; E7799: $data = $fileManager->delete($file); goto Da14f; b7887: b11b8: goto Ebec5; Eab7b: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto e68de; F81d9: session_name("clp-file-manager"); goto E554f; ffbea: echo json_encode($data); goto E31f2; fbca8: function isFilenameValid($filename) { goto D1bb4; db791: fa9ab: goto e9b8e; e9b8e: return $isFilenameValid; goto f4434; fb4ae: if (!preg_match("/^(?!.*\.\.)[a-zA-Z0-9_\-\ \/\.]+$/", $filename)) { goto fa9ab; } goto d9af9; d9af9: $isFilenameValid = true; goto db791; D1bb4: $isFilenameValid = false; goto fb4ae; f4434: } goto Cd06c; c4e9a: if (!(false === is_null($files))) { goto Ba9c9; } goto A75b8; b3667: if (!(true === is_dir($directory))) { goto b11b8; } goto Aac3d; cad71: $destinationDirectoryName = str_replace([".."], [''], $destinationDirectoryName); goto Ffaac; C7611: Ab0a2: goto D4cab; bc4ee: if (!(true === isset($_POST["id"]) && true === isset($_POST["destinationDirectoryName"]))) { goto De1f7; } goto cb20f; C53a5: ini_set("display_errors", 1); goto Af7d6; Ce7a1: $user = $_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]; goto D4d00; a757b: fc9e3: goto f4973; bc0bd: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto f5ade; bfd12: d007a: goto D56c8; a325b: checkPath($directory, $homeDirectory); goto d002e; b45d3: if (!(true === str_starts_with($requestUri, "/file-manager/backend/copy"))) { goto B7910; } goto dc83e; Ffaac: $data = $fileManager->extract($file, $destinationDirectoryName); goto C8e10; a6b37: if (!("dev" === $appEnv)) { goto E6148; } goto ab566; dd463: $files = []; goto af19a; cb20f: $id = $_POST["id"] ?? null; goto d20fd; D7926: echo json_encode($data); goto a6190; c7a51: dbeb8: goto c44c9; Ba7ae: checkPath($file, $homeDirectory); goto cad71; f4ba4: $appEnv = $_ENV["APP_ENV"]; goto b1c07; Af7d6: E6148: goto E9e89; c524c: $directoryName = $_POST["name"] ?? null; goto A1f77; Bde07: exit; goto B7fb9; cf3cc: function checkPath($file, $homeDirectory) { goto c67d5; f0570: exit(sprintf("File is not valid: %s", $file)); goto f5d30; c67d5: $file = realpath($file); goto df115; df115: $homeDirectory = rtrim($homeDirectory, "/"); goto d0bbd; d0bbd: if (!(false === str_starts_with($file, $homeDirectory))) { goto bd20a; } goto f0570; f5d30: bd20a: goto d730e; d730e: } goto fbca8; Cbc46: b5a6b: goto c4344; Ed757: Ba9c9: goto de264; Cbc02: echo json_encode($data); goto bfd12; C74d7: checkPath($directory, $homeDirectory); goto c975e; f7f00: if (!(true === str_starts_with($requestUri, "/file-manager/backend/text"))) { goto C217b; } goto Ff6bc; Feea8: exit; goto e911e; D4cab: f27fb: goto E71f3; Bfd9f: Ace5a: goto f1984; Ad941: exit; goto Dcdc7; f6570: E858a: goto B4ea4; e3864: $data = []; goto f6223; Ae0b2: $data = $fileManager->move($file, $moveToDirectory); goto B90ea; f81bd: checkPath($targetDirectory, $homeDirectory); goto Ef60d; F52e1: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto d1e38; } goto efcb0; fdb99: a4259: goto ca994; Aa1bb: $fileManager->download($file); goto C9405; D8c01: $dotenv = new Dotenv(); goto D1f4b; Dcdc7: goto F0fbf; goto F7de7; B8dd2: $id = $_POST["id"] ?? null; goto Cb15a; A1f77: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto B163f; } goto ec6de; ba03e: checkPath($file, $homeDirectory); goto Aa1bb; A8c4c: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto F45ca; } goto Ad941; c97e5: $copyTo = $_POST["to"] ?? null; goto D5fab; E3815: exit; goto F2099; f6223: $directory = $homeDirectory; goto c63a8; B90ea: echo json_encode($data); goto cba28; a909f: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto caf1a; e68de: echo json_encode($data); goto f2fdf; D1f4b: $dotenv->load($envFile); goto f4ba4; E71f3: f3889: goto D8498; c8e4d: if (!(false === is_null($id))) { goto b45d5; } goto Fe337; Df030: if (!(false === is_null($id) && "/" != $id)) { goto bdbcd; } goto f9629; C12b8: a4e5a: goto cf3cc; ba1e3: checkPath($file, $homeDirectory); goto E7799; Dd59f: $id = $_GET["id"] ?? null; goto A90ed; A373d: checkPath($moveToDirectory, $homeDirectory); goto Ae0b2; Cb15a: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Ea63b; } goto Eb8f5; a51c7: checkPath($directory, $homeDirectory); goto f71fd; ec6de: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto a325b; deb6f: $download = $_GET["download"] ?? null; goto c8e4d; B23a5: B163f: goto a1ee9; Be0cb: f9aa9: goto Eab5a; ac4dc: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Bcd85; A820d: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto c97cd; } goto D5e11; Ebec5: echo json_encode($data); goto A2c56; e076c: if (!(true === str_starts_with($requestUri, "/file-manager/backend/compress"))) { goto B68a2; } goto E5e38; b65d8: $sessionFile = sprintf("/home/clp/htdocs/app/files/var/sessions/sess_%s", $sessionId); goto A8c4c; df742: $data = $fileManager->writeFileContent($file, $fileContent); goto Cbc02; Fe337: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto ba03e; C8e10: echo json_encode($data); goto c3d8a; Bffed: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto Ace5a; } goto A6e34; a7216: $data = []; goto ae609; F3337: if (!(true === str_starts_with($requestUri, "/file-manager/backend/makefile"))) { goto f9aa9; } goto A820d; Ce841: exit; goto f8d2b; Bc4e5: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Fe652; a3860: F0fbf: goto dd210; Fcb47: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto A6277; Fe652: checkPath($file, $homeDirectory); goto a2830; cba28: exit; goto E3526; Db691: if (!(true === isset($_POST["name"]) && false === empty($_POST["name"]) && true === isset($_POST["id"]))) { goto B6637; } goto b8837; E9e89: $user = null; goto edacc; D4d00: A2fce: goto b93d4; E6dd0: if (!(true === str_starts_with($requestUri, "/file-manager/backend/folders") && false === is_null($id))) { goto E858a; } goto e3864; ab566: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto C53a5; Eb8f5: $data = []; goto Bc4e5; Dda7c: foreach ($filesDecoded as $file) { goto c18e1; c18e1: $filePath = $file["id"] ?? null; goto a19c5; ceda7: e85dd: goto cc9e8; B21ce: if (!(true === file_exists($file))) { goto c4fbf; } goto d1eac; Bdda7: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($filePath, "/")); goto B21ce; df07e: Eeb75: goto ceda7; a1849: c4fbf: goto df07e; a19c5: if (!(false === is_null($filePath))) { goto Eeb75; } goto Bdda7; d1eac: $files[] = $file; goto a1849; cc9e8: } goto E7101; bd69f: echo $fileContent; goto a757b; b2ad0: if (!(true === str_starts_with($requestUri, "/file-manager/backend/upload"))) { goto A7cd6; } goto fc854; a2830: $data = $fileManager->rename($file, $newFilename); goto Ae228; c3d8a: exit; goto Bfd9f; D21f2: exit; goto B23a5; C7a11: if (!(true === str_starts_with($requestUri, "/file-manager/backend/direct") && true === isset($_GET["download"]))) { goto f8bfb; } goto deb6f; A90ed: $homeDirectory = sprintf("/home/%s/", $user); goto b0862; Beae1: $tmpFile = $_FILES["upload"]["tmp_name"] ?? null; goto D50ed; c578b: if (!(false === is_null($permissions) && false === is_null($id))) { goto Ab0a2; } goto d6ecb; D9081: db900: goto b45d3; B3e72: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto fd0c8; } goto F0827; a547f: echo json_encode($data); goto d98df; fe276: checkPath($copyToDirectory, $homeDirectory); goto fcd95; A2c56: exit; goto f1073; efcb0: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto a51c7; F0827: $targetDirectory = str_replace([".."], [''], $targetDirectory); goto Cb4a5; D9609: session_decode($sessionData); goto fe999; d20fd: $destinationDirectoryName = $_POST["destinationDirectoryName"] ?? null; goto Bffed; F7de7: F45ca: goto c746b; d98df: exit; goto C7611; B69ac: $filename = $_POST["name"] ?? null; goto F52e1; eb645: A7cd6: goto F3337; c63a8: if (!("/" != $id)) { goto Ca205; } goto ff964; B971c: if (!(true === str_starts_with($requestUri, "/file-manager/backend/rename"))) { goto f072b; } goto Db691; f2fdf: exit; goto c9384; D50ed: $fileUploadPath = $_POST["upload_fullpath"] ?? null; goto Db59a; fc854: if (!(true === isset($_FILES["upload"]))) { goto b1784; } goto Beae1; fcd95: $data = $fileManager->copy($file, $copyToDirectory); goto ffbea; b93d4: if (!(true === is_null($user))) { goto E335d; } goto Bde07; A21f2: B6637: goto f7679; D8498: if (!(true === str_starts_with($requestUri, "/file-manager/backend/extract"))) { goto D122a; } goto bc4ee; A6e34: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Ba7ae; D5fab: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto fc86f; Eab5a: if (!(true === str_starts_with($requestUri, "/file-manager/backend/makedir"))) { goto db900; } goto f5ebf; Ff6bc: if (true === isset($_POST["content"]) && true === isset($_POST["id"])) { goto Fb42d; } goto c2c36; Ef60d: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto D7926; D9095: $sessionId = $_COOKIE["cloudpanel"] ?? null; goto b65d8; bd858: $requestUri = $_SERVER["REQUEST_URI"] ?? null; goto Dd59f; Aac3d: checkPath($directory, $homeDirectory); goto c80f6; fc86f: $moveToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto cbf57; fe999: b01c2: goto a3860; c9384: Abdc3: goto D6de9; d4148: $id = $_POST["id"] ?? null; goto c97e5; F28ef: checkPath($file, $homeDirectory); goto df742; ff964: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto d2682; f1073: F76bd: goto f7f00; Cb4a5: $id = $targetDirectory; goto a2413; F2099: d1e38: goto c210d; D56c8: Cd601: goto Ce841; D82dc: Fe878: goto e497e; caf1a: checkPath($file, $homeDirectory); goto F6065; a2413: $targetDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($targetDirectory, "/")); goto f81bd; D6013: echo json_encode($data); goto E3815; C7f00: if (!(false === empty($sessionData))) { goto b01c2; } goto F81d9; De90b: D122a: goto e076c; A6f86: checkPath($file, $homeDirectory); goto D8783; dc83e: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto dbeb8; } goto Ea3bc; F6065: $fileContent = $fileManager->getFileContent($file); goto bd69f; E7101: Ef605: goto C4438; C4438: F5cee: goto Ed757; C9405: b45d5: goto B9cdf; f8d2b: C217b: goto B971c; f942d: if (!(true === str_starts_with($requestUri, "/file-manager/backend/delete"))) { goto Bdb8d; } goto C1a48; f9629: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto ba1e3; B4ea4: if (!(true === str_starts_with($requestUri, "/file-manager/backend/files") && false === is_null($id))) { goto F76bd; } goto a7216; ca994: B68a2:
?>
Did this file decode correctly?
Original Code
<?php
require_once "\x2e\x2e\57\x2e\56\57\166\x65\x6e\144\157\162\x2f\x61\x75\164\x6f\x6c\x6f\141\x64\x2e\160\150\x70"; require_once "\163\162\x63\x2f\x46\x69\x6c\145\57\x4d\x61\156\x61\147\x65\x72\56\160\150\x70"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto D9095; b0862: if (!(false == is_dir($homeDirectory))) { goto a4e5a; } goto B99ea; B9cdf: f8bfb: goto b2ad0; d82b9: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\55\x6d\x61\156\x61\147\145\162\x2f\x62\141\x63\x6b\145\156\144\x2f\x6d\157\166\145"))) { goto Fe878; } goto fdd54; A12ad: $id = $_POST["\x69\144"] ?? null; goto c524c; Bcd85: checkPath($directory, $homeDirectory); goto Eab7b; c746b: $sessionData = file_get_contents($sessionFile); goto C7f00; d2682: Ca205: goto C74d7; B7fb9: E335d: goto bd858; c44c9: B7910: goto d82b9; Cd06c: $fileManager = new FileManager($user); goto E6dd0; a82b2: echo json_encode($data); goto D21f2; b8837: $newFilename = $_POST["\x6e\x61\155\x65"] ?? ''; goto B8dd2; Ae228: echo json_encode($data); goto Cb077; b35df: if (!(true === isset($_POST["\151\x64"]) && true === isset($_POST["\x70\x65\x72\155\151\163\163\151\x6f\x6e\x73"]))) { goto f27fb; } goto f31d8; Da14f: echo json_encode($data); goto Feea8; c4344: Bdb8d: goto C7a11; B99ea: exit; goto C12b8; Dc04f: $files = $_POST["\146\151\x6c\145\163"] ?? null; goto c4e9a; E554f: session_start(); goto D9609; fe804: $permissions = $_POST["\x70\x65\162\155\151\x73\163\x69\x6f\x6e\x73"] ?? null; goto c578b; f31d8: $id = $_POST["\151\x64"] ?? null; goto fe804; E31f2: exit; goto c7a51; Db59a: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "\x2e\56\57") && false === is_null($tmpFile) && false === is_null($id))) { goto Abdc3; } goto ac4dc; de264: $targetDirectory = $_POST["\x74\141\162\147\x65\x74"] ?? null; goto B3e72; Cb077: exit; goto e3e50; e3e50: Ea63b: goto A21f2; af19a: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto F5cee; } goto Dda7c; f71fd: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto D6013; a1ee9: bd5bc: goto D9081; D6de9: b1784: goto eb645; f5ade: $fileContent = $_POST["\x63\157\156\x74\x65\x6e\164"] ?? ''; goto F28ef; C1a48: if (!(true === isset($_POST["\x69\144"]))) { goto b5a6b; } goto A033c; Ba163: if (!(false === is_null($id))) { goto d007a; } goto bc0bd; c975e: $data = $fileManager->getFolders($directory); goto Ded60; E5e38: if (!(true === isset($_POST["\146\x69\x6c\x65\163"]) && true === isset($_POST["\164\141\x72\x67\145\164"]))) { goto a4259; } goto Dc04f; Ffd45: checkPath($file, $homeDirectory); goto fe276; edacc: if (!(true === isset($_SESSION["\137\163\x66\62\x5f\141\164\x74\162\151\x62\165\164\145\163"]["\x63\154\x70\55\x66\x69\x6c\x65\x2d\x6d\x61\x6e\141\147\x65\162"]["\165\163\x65\x72"]) && false === empty($_SESSION["\137\x73\x66\x32\x5f\141\x74\x74\162\151\x62\165\164\x65\x73"]["\143\x6c\x70\x2d\146\x69\x6c\x65\x2d\x6d\x61\x6e\141\x67\x65\162"]["\x75\163\x65\x72"]))) { goto A2fce; } goto Ce7a1; Cf274: $id = $_POST["\151\x64"] ?? null; goto Ba163; f5ebf: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\x6e\141\155\145"]))) { goto bd5bc; } goto A12ad; d002e: $data = $fileManager->makeDirectory($directoryName, $directory); goto a82b2; fdd54: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\x74\x6f"]))) { goto ea350; } goto d4148; d6dff: $copyTo = $_POST["\x74\x6f"] ?? null; goto Fcb47; Ea3bc: $id = $_POST["\151\144"] ?? null; goto d6dff; dd210: $envFile = "\x2e\56\x2f\x2e\56\x2f\56\x65\156\166"; goto D8c01; E1a15: exit; goto f6570; e497e: if (!(true === str_starts_with($requestUri, "\x2f\146\151\x6c\x65\55\x6d\x61\x6e\141\x67\x65\x72\57\x62\x61\143\153\x65\x6e\x64\57\160\x65\x72\x6d\151\163\x73\x69\x6f\156\163"))) { goto f3889; } goto b35df; cbf57: checkPath($file, $homeDirectory); goto A373d; f1984: De1f7: goto De90b; A6277: $copyToDirectory = sprintf("\45\163\x2f\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($copyTo, "\57")); goto Ffd45; Ded60: echo json_encode($data); goto E1a15; d6ecb: $file = sprintf("\45\163\57\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto A6f86; ae609: $directory = sprintf("\x25\163\57\x25\x73\x2f", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto b3667; E3526: ea350: goto D82dc; A75b8: $filesDecoded = json_decode($files, true); goto dd463; A033c: $id = $_POST["\x69\144"] ?? null; goto Df030; c210d: c97cd: goto Be0cb; b1c07: $appVersion = $_ENV["\101\120\x50\137\126\x45\x52\x53\111\117\x4e"]; goto a6b37; c80f6: $data = $fileManager->getFiles($directory); goto b7887; e911e: bdbcd: goto Cbc46; a6190: fd0c8: goto fdb99; c2c36: if (!(false === is_null($id))) { goto fc9e3; } goto a909f; D8783: $data = $fileManager->permissions($file, $permissions); goto a547f; be678: Fb42d: goto Cf274; f7679: f072b: goto f942d; D5e11: $id = $_POST["\x69\144"] ?? null; goto B69ac; f4973: goto Cd601; goto be678; E7799: $data = $fileManager->delete($file); goto Da14f; b7887: b11b8: goto Ebec5; Eab7b: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto e68de; F81d9: session_name("\143\154\160\x2d\x66\151\x6c\145\55\155\x61\x6e\141\147\x65\162"); goto E554f; ffbea: echo json_encode($data); goto E31f2; fbca8: function isFilenameValid($filename) { goto D1bb4; db791: fa9ab: goto e9b8e; e9b8e: return $isFilenameValid; goto f4434; fb4ae: if (!preg_match("\x2f\x5e\50\x3f\x21\56\x2a\x5c\x2e\134\x2e\51\133\x61\55\x7a\x41\x2d\x5a\60\x2d\x39\137\x5c\55\x5c\40\x5c\57\134\x2e\x5d\x2b\x24\x2f", $filename)) { goto fa9ab; } goto d9af9; d9af9: $isFilenameValid = true; goto db791; D1bb4: $isFilenameValid = false; goto fb4ae; f4434: } goto Cd06c; c4e9a: if (!(false === is_null($files))) { goto Ba9c9; } goto A75b8; b3667: if (!(true === is_dir($directory))) { goto b11b8; } goto Aac3d; cad71: $destinationDirectoryName = str_replace(["\x2e\56"], [''], $destinationDirectoryName); goto Ffaac; C7611: Ab0a2: goto D4cab; bc4ee: if (!(true === isset($_POST["\x69\144"]) && true === isset($_POST["\x64\x65\163\x74\151\156\x61\x74\x69\157\156\104\151\162\x65\143\x74\157\162\x79\116\x61\x6d\x65"]))) { goto De1f7; } goto cb20f; C53a5: ini_set("\x64\151\163\160\154\x61\171\137\145\x72\162\x6f\x72\x73", 1); goto Af7d6; Ce7a1: $user = $_SESSION["\x5f\163\146\x32\x5f\141\x74\x74\x72\151\x62\165\164\145\x73"]["\x63\x6c\x70\x2d\146\151\x6c\x65\55\x6d\x61\156\x61\147\x65\162"]["\165\x73\145\162"]; goto D4d00; a757b: fc9e3: goto f4973; bc0bd: $file = sprintf("\45\x73\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto f5ade; bfd12: d007a: goto D56c8; a325b: checkPath($directory, $homeDirectory); goto d002e; b45d3: if (!(true === str_starts_with($requestUri, "\57\146\x69\154\x65\55\x6d\141\156\141\x67\145\x72\x2f\x62\141\x63\153\145\x6e\x64\x2f\x63\157\160\x79"))) { goto B7910; } goto dc83e; Ffaac: $data = $fileManager->extract($file, $destinationDirectoryName); goto C8e10; a6b37: if (!("\144\x65\x76" === $appEnv)) { goto E6148; } goto ab566; dd463: $files = []; goto af19a; cb20f: $id = $_POST["\x69\144"] ?? null; goto d20fd; D7926: echo json_encode($data); goto a6190; c7a51: dbeb8: goto c44c9; Ba7ae: checkPath($file, $homeDirectory); goto cad71; f4ba4: $appEnv = $_ENV["\x41\120\x50\x5f\105\x4e\126"]; goto b1c07; Af7d6: E6148: goto E9e89; c524c: $directoryName = $_POST["\x6e\x61\155\145"] ?? null; goto A1f77; Bde07: exit; goto B7fb9; cf3cc: function checkPath($file, $homeDirectory) { goto c67d5; f0570: exit(sprintf("\x46\x69\x6c\x65\40\x69\x73\x20\156\x6f\x74\40\166\141\x6c\151\x64\x3a\x20\x25\163", $file)); goto f5d30; c67d5: $file = realpath($file); goto df115; df115: $homeDirectory = rtrim($homeDirectory, "\57"); goto d0bbd; d0bbd: if (!(false === str_starts_with($file, $homeDirectory))) { goto bd20a; } goto f0570; f5d30: bd20a: goto d730e; d730e: } goto fbca8; Cbc46: b5a6b: goto c4344; Ed757: Ba9c9: goto de264; Cbc02: echo json_encode($data); goto bfd12; C74d7: checkPath($directory, $homeDirectory); goto c975e; f7f00: if (!(true === str_starts_with($requestUri, "\x2f\x66\151\x6c\145\55\155\x61\x6e\x61\x67\x65\x72\57\142\141\x63\x6b\x65\x6e\144\57\164\145\x78\x74"))) { goto C217b; } goto Ff6bc; Feea8: exit; goto e911e; D4cab: f27fb: goto E71f3; Bfd9f: Ace5a: goto f1984; Ad941: exit; goto Dcdc7; f6570: E858a: goto B4ea4; e3864: $data = []; goto f6223; Ae0b2: $data = $fileManager->move($file, $moveToDirectory); goto B90ea; f81bd: checkPath($targetDirectory, $homeDirectory); goto Ef60d; F52e1: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto d1e38; } goto efcb0; fdb99: a4259: goto ca994; Aa1bb: $fileManager->download($file); goto C9405; D8c01: $dotenv = new Dotenv(); goto D1f4b; Dcdc7: goto F0fbf; goto F7de7; B8dd2: $id = $_POST["\151\144"] ?? null; goto Cb15a; A1f77: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto B163f; } goto ec6de; ba03e: checkPath($file, $homeDirectory); goto Aa1bb; A8c4c: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto F45ca; } goto Ad941; c97e5: $copyTo = $_POST["\164\157"] ?? null; goto D5fab; E3815: exit; goto F2099; f6223: $directory = $homeDirectory; goto c63a8; B90ea: echo json_encode($data); goto cba28; a909f: $file = sprintf("\45\163\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto caf1a; e68de: echo json_encode($data); goto f2fdf; D1f4b: $dotenv->load($envFile); goto f4ba4; E71f3: f3889: goto D8498; c8e4d: if (!(false === is_null($id))) { goto b45d5; } goto Fe337; Df030: if (!(false === is_null($id) && "\57" != $id)) { goto bdbcd; } goto f9629; C12b8: a4e5a: goto cf3cc; ba1e3: checkPath($file, $homeDirectory); goto E7799; Dd59f: $id = $_GET["\x69\x64"] ?? null; goto A90ed; A373d: checkPath($moveToDirectory, $homeDirectory); goto Ae0b2; Cb15a: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Ea63b; } goto Eb8f5; a51c7: checkPath($directory, $homeDirectory); goto f71fd; ec6de: $directory = sprintf("\45\x73\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto a325b; deb6f: $download = $_GET["\x64\x6f\167\156\154\x6f\141\x64"] ?? null; goto c8e4d; B23a5: B163f: goto a1ee9; Be0cb: f9aa9: goto Eab5a; ac4dc: $directory = sprintf("\45\x73\57\x25\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto Bcd85; A820d: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\x6e\x61\155\x65"]))) { goto c97cd; } goto D5e11; Ebec5: echo json_encode($data); goto A2c56; e076c: if (!(true === str_starts_with($requestUri, "\57\146\151\154\145\55\x6d\141\156\x61\x67\145\x72\x2f\x62\141\143\153\x65\156\144\57\x63\x6f\x6d\x70\162\x65\x73\163"))) { goto B68a2; } goto E5e38; b65d8: $sessionFile = sprintf("\x2f\150\157\x6d\x65\x2f\x63\x6c\x70\x2f\150\164\x64\157\143\x73\57\141\160\160\57\x66\151\154\145\163\57\x76\x61\x72\x2f\x73\145\x73\x73\151\157\x6e\x73\x2f\x73\x65\x73\163\x5f\45\163", $sessionId); goto A8c4c; df742: $data = $fileManager->writeFileContent($file, $fileContent); goto Cbc02; Fe337: $file = sprintf("\x25\163\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto ba03e; C8e10: echo json_encode($data); goto c3d8a; Bffed: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto Ace5a; } goto A6e34; a7216: $data = []; goto ae609; F3337: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\x2d\x6d\x61\156\x61\147\145\x72\x2f\x62\141\x63\x6b\x65\x6e\x64\x2f\155\141\153\145\x66\151\154\x65"))) { goto f9aa9; } goto A820d; Ce841: exit; goto f8d2b; Bc4e5: $file = sprintf("\x25\x73\57\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto Fe652; a3860: F0fbf: goto dd210; Fcb47: $file = sprintf("\45\x73\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto A6277; Fe652: checkPath($file, $homeDirectory); goto a2830; cba28: exit; goto E3526; Db691: if (!(true === isset($_POST["\x6e\141\155\145"]) && false === empty($_POST["\x6e\141\x6d\x65"]) && true === isset($_POST["\151\144"]))) { goto B6637; } goto b8837; E9e89: $user = null; goto edacc; D4d00: A2fce: goto b93d4; E6dd0: if (!(true === str_starts_with($requestUri, "\57\146\x69\x6c\145\55\155\141\156\x61\147\145\162\x2f\142\141\143\153\145\x6e\144\x2f\146\157\154\x64\145\x72\x73") && false === is_null($id))) { goto E858a; } goto e3864; ab566: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto C53a5; Eb8f5: $data = []; goto Bc4e5; Dda7c: foreach ($filesDecoded as $file) { goto c18e1; c18e1: $filePath = $file["\x69\144"] ?? null; goto a19c5; ceda7: e85dd: goto cc9e8; B21ce: if (!(true === file_exists($file))) { goto c4fbf; } goto d1eac; Bdda7: $file = sprintf("\x25\x73\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($filePath, "\x2f")); goto B21ce; df07e: Eeb75: goto ceda7; a1849: c4fbf: goto df07e; a19c5: if (!(false === is_null($filePath))) { goto Eeb75; } goto Bdda7; d1eac: $files[] = $file; goto a1849; cc9e8: } goto E7101; bd69f: echo $fileContent; goto a757b; b2ad0: if (!(true === str_starts_with($requestUri, "\57\x66\151\x6c\145\x2d\x6d\141\156\x61\x67\145\162\57\x62\141\143\153\145\x6e\x64\x2f\165\160\154\157\141\144"))) { goto A7cd6; } goto fc854; a2830: $data = $fileManager->rename($file, $newFilename); goto Ae228; c3d8a: exit; goto Bfd9f; D21f2: exit; goto B23a5; C7a11: if (!(true === str_starts_with($requestUri, "\57\x66\x69\154\145\55\155\x61\156\x61\147\x65\162\x2f\x62\141\143\153\145\156\x64\x2f\x64\x69\162\145\143\164") && true === isset($_GET["\x64\x6f\x77\x6e\x6c\157\x61\x64"]))) { goto f8bfb; } goto deb6f; A90ed: $homeDirectory = sprintf("\x2f\150\157\155\x65\57\45\x73\57", $user); goto b0862; Beae1: $tmpFile = $_FILES["\x75\160\x6c\x6f\141\x64"]["\164\x6d\160\x5f\156\141\155\x65"] ?? null; goto D50ed; c578b: if (!(false === is_null($permissions) && false === is_null($id))) { goto Ab0a2; } goto d6ecb; D9081: db900: goto b45d3; B3e72: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto fd0c8; } goto F0827; a547f: echo json_encode($data); goto d98df; fe276: checkPath($copyToDirectory, $homeDirectory); goto fcd95; A2c56: exit; goto f1073; efcb0: $directory = sprintf("\45\163\x2f\x25\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto a51c7; F0827: $targetDirectory = str_replace(["\56\56"], [''], $targetDirectory); goto Cb4a5; D9609: session_decode($sessionData); goto fe999; d20fd: $destinationDirectoryName = $_POST["\144\x65\163\x74\151\x6e\x61\x74\151\157\x6e\x44\x69\162\145\143\164\157\162\x79\x4e\141\x6d\x65"] ?? null; goto Bffed; F7de7: F45ca: goto c746b; d98df: exit; goto C7611; B69ac: $filename = $_POST["\156\141\155\145"] ?? null; goto F52e1; eb645: A7cd6: goto F3337; c63a8: if (!("\x2f" != $id)) { goto Ca205; } goto ff964; B971c: if (!(true === str_starts_with($requestUri, "\x2f\x66\151\x6c\x65\x2d\x6d\x61\x6e\x61\147\x65\162\x2f\x62\x61\x63\x6b\x65\x6e\x64\57\x72\145\x6e\141\x6d\x65"))) { goto f072b; } goto Db691; f2fdf: exit; goto c9384; D50ed: $fileUploadPath = $_POST["\165\x70\x6c\x6f\x61\144\137\x66\x75\154\154\160\141\x74\x68"] ?? null; goto Db59a; fc854: if (!(true === isset($_FILES["\x75\x70\x6c\157\x61\144"]))) { goto b1784; } goto Beae1; fcd95: $data = $fileManager->copy($file, $copyToDirectory); goto ffbea; b93d4: if (!(true === is_null($user))) { goto E335d; } goto Bde07; A21f2: B6637: goto f7679; D8498: if (!(true === str_starts_with($requestUri, "\x2f\146\151\154\145\55\155\141\156\141\147\145\162\57\142\x61\143\153\x65\156\144\57\145\x78\164\162\141\143\x74"))) { goto D122a; } goto bc4ee; A6e34: $file = sprintf("\45\x73\x2f\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Ba7ae; D5fab: $file = sprintf("\x25\163\x2f\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto fc86f; Eab5a: if (!(true === str_starts_with($requestUri, "\x2f\146\x69\x6c\x65\55\x6d\141\156\x61\x67\145\x72\57\x62\x61\x63\x6b\145\x6e\x64\57\155\x61\153\x65\x64\x69\x72"))) { goto db900; } goto f5ebf; Ff6bc: if (true === isset($_POST["\x63\x6f\156\164\145\156\164"]) && true === isset($_POST["\x69\144"])) { goto Fb42d; } goto c2c36; Ef60d: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto D7926; D9095: $sessionId = $_COOKIE["\x63\154\157\165\x64\x70\x61\x6e\145\154"] ?? null; goto b65d8; bd858: $requestUri = $_SERVER["\x52\105\121\125\105\123\124\x5f\x55\x52\111"] ?? null; goto Dd59f; Aac3d: checkPath($directory, $homeDirectory); goto c80f6; fc86f: $moveToDirectory = sprintf("\x25\x73\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($copyTo, "\x2f")); goto cbf57; fe999: b01c2: goto a3860; c9384: Abdc3: goto D6de9; d4148: $id = $_POST["\151\x64"] ?? null; goto c97e5; F28ef: checkPath($file, $homeDirectory); goto df742; ff964: $directory = sprintf("\45\163\57\x25\x73\57", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto d2682; f1073: F76bd: goto f7f00; Cb4a5: $id = $targetDirectory; goto a2413; F2099: d1e38: goto c210d; D56c8: Cd601: goto Ce841; D82dc: Fe878: goto e497e; caf1a: checkPath($file, $homeDirectory); goto F6065; a2413: $targetDirectory = sprintf("\x25\x73\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($targetDirectory, "\x2f")); goto f81bd; D6013: echo json_encode($data); goto E3815; C7f00: if (!(false === empty($sessionData))) { goto b01c2; } goto F81d9; De90b: D122a: goto e076c; A6f86: checkPath($file, $homeDirectory); goto D8783; dc83e: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\164\x6f"]))) { goto dbeb8; } goto Ea3bc; F6065: $fileContent = $fileManager->getFileContent($file); goto bd69f; E7101: Ef605: goto C4438; C4438: F5cee: goto Ed757; C9405: b45d5: goto B9cdf; f8d2b: C217b: goto B971c; f942d: if (!(true === str_starts_with($requestUri, "\57\x66\151\154\x65\55\155\141\x6e\141\x67\145\x72\x2f\142\x61\143\x6b\x65\x6e\x64\x2f\x64\145\x6c\145\164\145"))) { goto Bdb8d; } goto C1a48; f9629: $file = sprintf("\45\163\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto ba1e3; B4ea4: if (!(true === str_starts_with($requestUri, "\x2f\146\151\x6c\x65\55\155\x61\156\x61\x67\145\162\x2f\142\141\x63\153\145\x6e\x64\x2f\146\151\x6c\145\x73") && false === is_null($id))) { goto F76bd; } goto a7216; ca994: B68a2:
Function Calls
None |
Stats
MD5 | ae9bba0a9d7918b3e3140c6c486e6824 |
Eval Count | 0 |
Decode Time | 44 ms |