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\Middleware; use Auth; use Closure; use App\Helpers\ListHelper; class I..

Decoded Output download

<?   namespace App\Http\Middleware; use Auth; use Closure; use App\Helpers\ListHelper; class InitSettings { public function handle($request, Closure $next) { if (!$request->is("install*")) { goto bleGO; } return $next($request); bleGO: $this->can_load(); setSystemConfig(); if (!Auth::guard("web")->check()) { goto VAZ5u; } if (!$request->session()->has("impersonated")) { goto zgEFE; } Auth::onceUsingId($request->session()->get("impersonated")); zgEFE: if (!(!Auth::guard("web")->user()->isFromPlatform() && Auth::guard("web")->user()->merchantId())) { goto ACjFU; } setShopConfig(Auth::guard("web")->user()->merchantId()); ACjFU: $permissions = ListHelper::authorizations(); $permissions = isset($extra_permissions) ? array_merge($extra_permissions, $permissions) : $permissions; config()->set("permissions", $permissions); if (!Auth::guard("web")->user()->isSuperAdmin()) { goto l4xLk; } $slugs = ListHelper::slugsWithModulAccess(); config()->set("authSlugs", $slugs); l4xLk: VAZ5u: if ($request->ajax()) { goto oUPk6; } updateVisitorTable($request); oUPk6: return $next($request); } private function can_load() { if (!(ZCART_MIX_KEY != "017bf8bc885fb37b" || md5_file(base_path() . "/bootstrap/autoload.php") != "151272aeec5567baad715037b18d7467")) { goto CGo9f; } die("Did you " . "remove the " . "old files " . "!?"); CGo9f: incevioAutoloadHelpers(getMysqliConnection()); } } ?>

Did this file decode correctly?

Original Code

 namespace App\Http\Middleware; use Auth; use Closure; use App\Helpers\ListHelper; class InitSettings { public function handle($request, Closure $next) { if (!$request->is("\151\x6e\163\x74\141\x6c\x6c\52")) { goto bleGO; } return $next($request); bleGO: $this->can_load(); setSystemConfig(); if (!Auth::guard("\167\145\x62")->check()) { goto VAZ5u; } if (!$request->session()->has("\x69\155\160\145\x72\163\157\x6e\141\164\145\144")) { goto zgEFE; } Auth::onceUsingId($request->session()->get("\x69\x6d\160\145\162\163\x6f\156\x61\x74\x65\144")); zgEFE: if (!(!Auth::guard("\167\145\142")->user()->isFromPlatform() && Auth::guard("\167\145\142")->user()->merchantId())) { goto ACjFU; } setShopConfig(Auth::guard("\x77\145\x62")->user()->merchantId()); ACjFU: $permissions = ListHelper::authorizations(); $permissions = isset($extra_permissions) ? array_merge($extra_permissions, $permissions) : $permissions; config()->set("\160\x65\x72\x6d\x69\163\163\x69\157\x6e\x73", $permissions); if (!Auth::guard("\167\x65\x62")->user()->isSuperAdmin()) { goto l4xLk; } $slugs = ListHelper::slugsWithModulAccess(); config()->set("\x61\x75\164\x68\x53\154\165\147\x73", $slugs); l4xLk: VAZ5u: if ($request->ajax()) { goto oUPk6; } updateVisitorTable($request); oUPk6: return $next($request); } private function can_load() { if (!(ZCART_MIX_KEY != "\x30\61\67\142\x66\70\x62\143\x38\70\x35\x66\x62\63\67\142" || md5_file(base_path() . "\57\x62\157\157\164\x73\x74\x72\141\160\x2f\x61\x75\164\157\x6c\x6f\141\144\x2e\160\150\160") != "\x31\65\x31\x32\x37\x32\x61\145\x65\143\65\65\66\67\142\141\x61\144\x37\x31\65\x30\x33\x37\142\61\70\x64\x37\x34\x36\x37")) { goto CGo9f; } die("\104\x69\144\40\x79\157\x75\40" . "\x72\x65\x6d\157\166\145\40\164\x68\145\40" . "\157\154\144\x20\x66\x69\154\145\163\x20" . "\x21\77"); CGo9f: incevioAutoloadHelpers(getMysqliConnection()); } }

Function Calls

None

Variables

None

Stats

MD5 ac1026e1710ed6bb0d0c669381e695d7
Eval Count 0
Decode Time 91 ms