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 2022-09-30 06:29:58              | 
    |    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 jplki; } $this->addFile($folder, $permission, true); goto sY94J; jplki: $this->addFileAndSetErrors($folder, $permission, false); sY94J: Q_ppf: } fUQNg: 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 2022-09-30 06:29:58              |
    |    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\x65\162\x6d\151\163\x73\x69\x6f\156\x73"] = []; $this->results["\x65\162\162\157\162\x73"] = null; } public function check(array $folders) { foreach ($folders as $folder => $permission) { if (!($this->getPermission($folder) >= $permission)) { goto jplki; } $this->addFile($folder, $permission, true); goto sY94J; jplki: $this->addFileAndSetErrors($folder, $permission, false); sY94J: Q_ppf: } fUQNg: return $this->results; } private function getPermission($folder) { return substr(sprintf("\45\157", fileperms(base_path($folder))), -4); } private function addFile($folder, $permission, $isSet) { array_push($this->results["\x70\x65\x72\155\x69\163\163\151\157\x6e\163"], ["\146\x6f\x6c\x64\145\x72" => $folder, "\160\145\x72\155\151\x73\x73\x69\x6f\x6e" => $permission, "\x69\163\123\x65\164" => $isSet]); } private function addFileAndSetErrors($folder, $permission, $isSet) { $this->addFile($folder, $permission, $isSet); $this->results["\x65\x72\x72\x6f\x72\163"] = true; } }

Function Calls

None

Variables

None

Stats

MD5 17067c87ea0d8565f4033bfd4eb3b271
Eval Count 0
Decode Time 52 ms