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 /* __________________________________________________ | Obfuscated by YAK P..
Decoded Output download
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-06-13 21:39:27 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
/*
* Copyright (C) Incevio Systems, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Munna Khan <[email protected]>, September 2018
*/
namespace App\Http\Controllers\Installer\Helpers; class PermissionsChecker { protected $results = []; public function __construct() { $this->results["permissions"] = []; $this->results["errors"] = null; } public function check(array $folders) { foreach ($folders as $folder => $permission) { if (!($this->getPermission($folder) >= $permission)) { goto mrfH1; } $this->addFile($folder, $permission, true); goto HovUt; mrfH1: $this->addFileAndSetErrors($folder, $permission, false); HovUt: djYsQ: } V5aUL: return $this->results; } private function getPermission($folder) { return substr(sprintf("%o", fileperms(base_path($folder))), -4); } private function addFile($folder, $permission, $isSet) { array_push($this->results["permissions"], ["folder" => $folder, "permission" => $permission, "isSet" => $isSet]); } private function addFileAndSetErrors($folder, $permission, $isSet) { $this->addFile($folder, $permission, $isSet); $this->results["errors"] = true; } }
?>
Did this file decode correctly?
Original Code
<?php
/* __________________________________________________
| Obfuscated by YAK Pro - Php Obfuscator 2.0.14 |
| on 2023-06-13 21:39:27 |
| GitHub: https://github.com/pk-fr/yakpro-po |
|__________________________________________________|
*/
/*
* Copyright (C) Incevio Systems, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Munna Khan <[email protected]>, September 2018
*/
namespace App\Http\Controllers\Installer\Helpers; class PermissionsChecker { protected $results = []; public function __construct() { $this->results["\x70\145\162\155\x69\x73\163\x69\x6f\x6e\163"] = []; $this->results["\145\162\x72\x6f\x72\x73"] = null; } public function check(array $folders) { foreach ($folders as $folder => $permission) { if (!($this->getPermission($folder) >= $permission)) { goto mrfH1; } $this->addFile($folder, $permission, true); goto HovUt; mrfH1: $this->addFileAndSetErrors($folder, $permission, false); HovUt: djYsQ: } V5aUL: return $this->results; } private function getPermission($folder) { return substr(sprintf("\45\x6f", fileperms(base_path($folder))), -4); } private function addFile($folder, $permission, $isSet) { array_push($this->results["\160\x65\x72\155\x69\163\163\x69\157\x6e\x73"], ["\x66\x6f\154\x64\145\162" => $folder, "\160\145\162\x6d\x69\163\163\151\x6f\x6e" => $permission, "\151\163\x53\145\x74" => $isSet]); } private function addFileAndSetErrors($folder, $permission, $isSet) { $this->addFile($folder, $permission, $isSet); $this->results["\145\162\162\x6f\162\x73"] = true; } }
Function Calls
None |
Stats
MD5 | dae5e983d50548a8bf8f5fa7479c5024 |
Eval Count | 0 |
Decode Time | 46 ms |