Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

namespace App\Http\Controllers; use App\Dtos\Controller\ControllerResponse; use App\Dtos\D..

Decoded Output download

<?  namespace App\Http\Controllers; use App\Dtos\Controller\ControllerResponse; use App\Dtos\DTORequest; use App\Entities\ProfileEntity; use App\Entities\UemDeviceEntity; use App\Exceptions\CatchedExceptionHandler; use App\Jobs\FetchIconApp; use App\Models\Client; use App\Models\Event; use App\Models\UemDevice; use App\Models\UemDeviceDetails; use App\Repositories\TagRepository; use App\Repositories\DeviceRepository; use App\Security\SecurityPostureDeviceHandler; use App\Services\GoogleEmmService; use App\Services\SecurityService; use GuzzleHttp\Promise\PromiseInterface; use Hamcrest\Type\IsString; use Illuminate\Http\Client\Pool; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; class DeviceController { public function __construct() { } public function list($parameters = []) { try { goto pjlEE; KmX4T: D7bPh: goto YLhas; FYPQz: $repository = app(DeviceRepository::class); goto G9xiW; pjlEE: $pagination = null; goto AMlCr; kWMpd: $whereConditions[] = ["attribute" => "osType", "operator" => "=", "value" => $parameters["operatingSystem"]]; goto IySfB; DUp8x: $pagination = ["rowsPerPage" => $parameters["rowsPerPage"], "page" => $parameters["page"]]; goto uefU7; RO0y1: $filters["status"] = $parameters["status"]; goto KmX4T; i5KOm: $whereConditions = []; goto uYjFE; euQl6: QRUPG: goto TbgYz; IySfB: TrbN1: goto salNJ; YLhas: if (!(isset($parameters["operatingSystem"]) && $parameters["operatingSystem"] != '')) { goto TrbN1; } goto kWMpd; G6YvH: if (!(isset($parameters["serialOrName"]) && $parameters["serialOrName"] != '')) { goto QRUPG; } goto MxcbV; G9xiW: $listPaginated = $repository->list(pagination: $pagination, whereConditions: $whereConditions, filters: $filters); goto AWNAA; uefU7: irj65: goto G6YvH; salNJ: $whereConditions[] = ["attribute" => "status", "operator" => "!=", "value" => "deleted"]; goto FYPQz; AWNAA: return $listPaginated->formatControllerResponse(); goto WIQbB; TbgYz: if (empty($parameters["status"])) { goto D7bPh; } goto RO0y1; uYjFE: if (!(!empty($parameters["rowsPerPage"]) && !empty($parameters["page"]))) { goto irj65; } goto DUp8x; MxcbV: $whereConditions = [["attribute" => "serialNumber", "operator" => "LIKE", "value" => "%" . $parameters["serialOrName"] . "%", "orCondition" => true], ["attribute" => "deviceName", "operator" => "LIKE", "value" => "%" . $parameters["serialOrName"] . "%", "orCondition" => true]]; goto euQl6; AMlCr: $filters = []; goto i5KOm; WIQbB: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function listDetails($filters = []) : ControllerResponse { try { goto MFtHk; NcSUm: $paginationOptions["rowsPerPage"] = (int) ($filters["rowsPerPage"] ?? 15); goto ONdKZ; VIqYX: if (!isset($filters["paginate"])) { goto Y8ex7; } goto NcSUm; Qa7_b: $listPaginated = $repository->listDetailsPaginated(paginationOptions: $paginationOptions, whereConditions: $whereConditions, orderByConditions: $orderByFilter); goto YnioK; MFtHk: $paginationOptions = []; goto HgMaL; ONdKZ: $paginationOptions["page"] = (int) ($filters["page"] ?? 1); goto H88Ai; Tknmw: $repository = app(DeviceRepository::class); goto Qa7_b; YnioK: return $listPaginated->formatControllerResponse(); goto Fab2Y; HgMaL: $orderByFilter = []; goto aAEVH; H88Ai: Y8ex7: goto Tknmw; aAEVH: $whereConditions = []; goto VIqYX; Fab2Y: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceById($id) : ControllerResponse { try { goto fTZ_m; JEbs2: return $listItem->formatControllerResponse(); goto c44eL; WzEmF: $listItem = $repository->getDeviceById(id: $id); goto JEbs2; fTZ_m: $repository = app(DeviceRepository::class); goto WzEmF; c44eL: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceBySerialNumber($serialNumber) : ControllerResponse { try { goto NDd_D; SZoht: $listItem = $repository->getDeviceBySerialNumber(serialNumber: $serialNumber); goto VOOWb; NDd_D: $repository = app(DeviceRepository::class); goto SZoht; VOOWb: return $listItem->formatControllerResponse(); goto uzTrt; uzTrt: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getSerialsBySerial($serialNumber) : ControllerResponse { try { goto HEY8x; NS8rg: Log::info("Serials: " . var_export($listItem, true)); goto LDE4D; Cue3q: $listItem = $repository->getSerialsBySerial($serialNumber)->getItems(); goto NS8rg; HEY8x: Log::info("Get Serials"); goto s8juM; LDE4D: return new ControllerResponse(true, $listItem, 200); goto uxAAd; s8juM: $repository = app(DeviceRepository::class); goto Cue3q; uxAAd: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceByUdid($udid) : ControllerResponse { try { goto VqLoX; NpjBH: return $listItem->formatControllerResponse(); goto y5Ln8; VqLoX: $repository = app(DeviceRepository::class); goto DEcMB; DEcMB: $listItem = $repository->getDeviceByUdid(udid: $udid); goto NpjBH; y5Ln8: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function updateDeviceUdidBySerialNumber($serialNumber, $udid) : ControllerResponse { try { goto yx29s; d0DAZ: $listItem = $repository->updateDeviceUdidBySerialNumber(serialNumber: $serialNumber, udid: $udid); goto VG8Oz; VG8Oz: return $listItem->formatControllerResponse(); goto yK36H; yx29s: $repository = app(DeviceRepository::class); goto d0DAZ; yK36H: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function setDeviceLikeDeleted($udid, $osType) : ControllerResponse { try { goto M21jJ; ZtbVl: $listItem = $repository->setDeviceLikeDeleted(udid: $udid, osType: $osType); goto rL2yW; rL2yW: return $listItem->formatControllerResponse(); goto wiDjv; M21jJ: $repository = app(DeviceRepository::class); goto ZtbVl; wiDjv: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceDetailsById($id) : ControllerResponse { try { goto VnhmW; wx3Ar: $listPaginated = $repository->getDeviceDetailsById(id: $id); goto EPen2; VnhmW: $repository = app(DeviceRepository::class); goto wx3Ar; EPen2: return $listPaginated->formatControllerResponse(); goto mfOce; mfOce: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function create($params = []) : ControllerResponse { try { goto WLJdV; WLJdV: $newDevice = new UemDeviceEntity($params); goto shlfS; yNYs1: return new ControllerResponse(true, $response->getSingleItem(), 200); goto LgYAW; shlfS: $repository = app(DeviceRepository::class); goto ijhtd; ijhtd: $response = $repository->store($newDevice); goto yNYs1; LgYAW: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } } ?>

Did this file decode correctly?

Original Code

namespace App\Http\Controllers; use App\Dtos\Controller\ControllerResponse; use App\Dtos\DTORequest; use App\Entities\ProfileEntity; use App\Entities\UemDeviceEntity; use App\Exceptions\CatchedExceptionHandler; use App\Jobs\FetchIconApp; use App\Models\Client; use App\Models\Event; use App\Models\UemDevice; use App\Models\UemDeviceDetails; use App\Repositories\TagRepository; use App\Repositories\DeviceRepository; use App\Security\SecurityPostureDeviceHandler; use App\Services\GoogleEmmService; use App\Services\SecurityService; use GuzzleHttp\Promise\PromiseInterface; use Hamcrest\Type\IsString; use Illuminate\Http\Client\Pool; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Http; use Illuminate\Support\Facades\Log; class DeviceController { public function __construct() { } public function list($parameters = []) { try { goto pjlEE; KmX4T: D7bPh: goto YLhas; FYPQz: $repository = app(DeviceRepository::class); goto G9xiW; pjlEE: $pagination = null; goto AMlCr; kWMpd: $whereConditions[] = ["\x61\164\164\x72\x69\x62\x75\x74\x65" => "\157\163\x54\171\x70\x65", "\x6f\160\x65\162\141\x74\x6f\162" => "\75", "\x76\x61\154\x75\145" => $parameters["\157\x70\145\x72\141\x74\x69\x6e\147\123\171\163\x74\x65\155"]]; goto IySfB; DUp8x: $pagination = ["\162\157\167\163\x50\x65\162\120\x61\x67\145" => $parameters["\x72\157\167\163\120\145\162\120\x61\x67\x65"], "\x70\141\147\x65" => $parameters["\x70\x61\147\145"]]; goto uefU7; RO0y1: $filters["\163\x74\x61\164\165\x73"] = $parameters["\163\x74\141\x74\165\x73"]; goto KmX4T; i5KOm: $whereConditions = []; goto uYjFE; euQl6: QRUPG: goto TbgYz; IySfB: TrbN1: goto salNJ; YLhas: if (!(isset($parameters["\x6f\x70\x65\x72\141\x74\x69\156\x67\x53\x79\163\x74\x65\x6d"]) && $parameters["\x6f\160\145\x72\x61\164\151\x6e\x67\x53\x79\x73\164\145\x6d"] != '')) { goto TrbN1; } goto kWMpd; G6YvH: if (!(isset($parameters["\163\145\162\151\141\154\117\x72\x4e\x61\x6d\145"]) && $parameters["\x73\145\162\x69\141\x6c\x4f\162\116\141\155\x65"] != '')) { goto QRUPG; } goto MxcbV; G9xiW: $listPaginated = $repository->list(pagination: $pagination, whereConditions: $whereConditions, filters: $filters); goto AWNAA; uefU7: irj65: goto G6YvH; salNJ: $whereConditions[] = ["\141\x74\164\x72\151\x62\165\164\x65" => "\x73\x74\x61\x74\165\x73", "\x6f\x70\x65\162\x61\x74\x6f\x72" => "\x21\75", "\x76\141\x6c\x75\145" => "\x64\145\x6c\x65\x74\145\x64"]; goto FYPQz; AWNAA: return $listPaginated->formatControllerResponse(); goto WIQbB; TbgYz: if (empty($parameters["\x73\x74\x61\x74\x75\x73"])) { goto D7bPh; } goto RO0y1; uYjFE: if (!(!empty($parameters["\x72\x6f\x77\x73\x50\x65\x72\120\x61\147\145"]) && !empty($parameters["\160\x61\x67\145"]))) { goto irj65; } goto DUp8x; MxcbV: $whereConditions = [["\141\164\164\162\151\x62\x75\x74\x65" => "\x73\145\x72\151\141\x6c\x4e\165\x6d\x62\x65\x72", "\157\160\145\x72\x61\x74\x6f\x72" => "\x4c\111\113\x45", "\x76\x61\x6c\x75\x65" => "\45" . $parameters["\x73\145\162\151\x61\x6c\117\162\x4e\x61\x6d\145"] . "\x25", "\x6f\162\103\157\156\144\151\x74\x69\157\x6e" => true], ["\141\164\x74\162\151\x62\165\x74\x65" => "\x64\145\166\x69\x63\x65\116\x61\155\x65", "\157\160\x65\162\x61\x74\157\162" => "\114\x49\113\105", "\166\141\154\165\x65" => "\x25" . $parameters["\163\x65\x72\151\141\x6c\117\x72\x4e\141\155\145"] . "\45", "\157\x72\103\157\x6e\144\x69\164\151\x6f\156" => true]]; goto euQl6; AMlCr: $filters = []; goto i5KOm; WIQbB: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function listDetails($filters = []) : ControllerResponse { try { goto MFtHk; NcSUm: $paginationOptions["\162\x6f\x77\163\120\x65\162\120\141\147\x65"] = (int) ($filters["\x72\x6f\x77\x73\120\145\x72\120\141\147\145"] ?? 15); goto ONdKZ; VIqYX: if (!isset($filters["\x70\141\x67\x69\156\141\164\145"])) { goto Y8ex7; } goto NcSUm; Qa7_b: $listPaginated = $repository->listDetailsPaginated(paginationOptions: $paginationOptions, whereConditions: $whereConditions, orderByConditions: $orderByFilter); goto YnioK; MFtHk: $paginationOptions = []; goto HgMaL; ONdKZ: $paginationOptions["\x70\x61\147\x65"] = (int) ($filters["\160\141\147\x65"] ?? 1); goto H88Ai; Tknmw: $repository = app(DeviceRepository::class); goto Qa7_b; YnioK: return $listPaginated->formatControllerResponse(); goto Fab2Y; HgMaL: $orderByFilter = []; goto aAEVH; H88Ai: Y8ex7: goto Tknmw; aAEVH: $whereConditions = []; goto VIqYX; Fab2Y: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceById($id) : ControllerResponse { try { goto fTZ_m; JEbs2: return $listItem->formatControllerResponse(); goto c44eL; WzEmF: $listItem = $repository->getDeviceById(id: $id); goto JEbs2; fTZ_m: $repository = app(DeviceRepository::class); goto WzEmF; c44eL: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceBySerialNumber($serialNumber) : ControllerResponse { try { goto NDd_D; SZoht: $listItem = $repository->getDeviceBySerialNumber(serialNumber: $serialNumber); goto VOOWb; NDd_D: $repository = app(DeviceRepository::class); goto SZoht; VOOWb: return $listItem->formatControllerResponse(); goto uzTrt; uzTrt: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getSerialsBySerial($serialNumber) : ControllerResponse { try { goto HEY8x; NS8rg: Log::info("\x53\x65\162\x69\141\154\163\x3a\x20" . var_export($listItem, true)); goto LDE4D; Cue3q: $listItem = $repository->getSerialsBySerial($serialNumber)->getItems(); goto NS8rg; HEY8x: Log::info("\107\x65\x74\x20\x53\145\x72\x69\141\154\x73"); goto s8juM; LDE4D: return new ControllerResponse(true, $listItem, 200); goto uxAAd; s8juM: $repository = app(DeviceRepository::class); goto Cue3q; uxAAd: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceByUdid($udid) : ControllerResponse { try { goto VqLoX; NpjBH: return $listItem->formatControllerResponse(); goto y5Ln8; VqLoX: $repository = app(DeviceRepository::class); goto DEcMB; DEcMB: $listItem = $repository->getDeviceByUdid(udid: $udid); goto NpjBH; y5Ln8: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function updateDeviceUdidBySerialNumber($serialNumber, $udid) : ControllerResponse { try { goto yx29s; d0DAZ: $listItem = $repository->updateDeviceUdidBySerialNumber(serialNumber: $serialNumber, udid: $udid); goto VG8Oz; VG8Oz: return $listItem->formatControllerResponse(); goto yK36H; yx29s: $repository = app(DeviceRepository::class); goto d0DAZ; yK36H: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function setDeviceLikeDeleted($udid, $osType) : ControllerResponse { try { goto M21jJ; ZtbVl: $listItem = $repository->setDeviceLikeDeleted(udid: $udid, osType: $osType); goto rL2yW; rL2yW: return $listItem->formatControllerResponse(); goto wiDjv; M21jJ: $repository = app(DeviceRepository::class); goto ZtbVl; wiDjv: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function getDeviceDetailsById($id) : ControllerResponse { try { goto VnhmW; wx3Ar: $listPaginated = $repository->getDeviceDetailsById(id: $id); goto EPen2; VnhmW: $repository = app(DeviceRepository::class); goto wx3Ar; EPen2: return $listPaginated->formatControllerResponse(); goto mfOce; mfOce: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } public function create($params = []) : ControllerResponse { try { goto WLJdV; WLJdV: $newDevice = new UemDeviceEntity($params); goto shlfS; yNYs1: return new ControllerResponse(true, $response->getSingleItem(), 200); goto LgYAW; shlfS: $repository = app(DeviceRepository::class); goto ijhtd; ijhtd: $response = $repository->store($newDevice); goto yNYs1; LgYAW: } catch (\Exception $e) { \App\Exceptions\CatchedExceptionHandler::handle($e); return new ControllerResponse(false, null, 500); } } }

Function Calls

None

Variables

None

Stats

MD5 9f0c267c977c4ba5935d88b6588cfb6a
Eval Count 0
Decode Time 62 ms