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 /* Dev By Hoang Skyht 18-06-2024 */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72..

Decoded Output download


namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
class Admin
{
public function handle($request,Closure $next)
{
$authorization = $request->input('auth_data') ??$request->header('authorization');
if ($authorization) {
$authData = explode(':',base64_decode($authorization));
if (count($authData) != 3) {
abort(403,'');
}
$user = \App\Models\User::where('password',$authData[2])
->where('email',$authData[0])
->first();
if ($user === null) {
abort(403,'');
}
$request->session()->put('email',$user->email);
$request->session()->put('id',$user->id);
if ($user->isAdmin()) {
$request->session()->put('is_admin',true);
}
}
if (!$request->session()->get('is_admin')) {
abort(403,'Khng C Quyn Truy Cp');
}
return $next($request);
}
};

Did this file decode correctly?

Original Code

<?php /* Dev By Hoang Skyht 18-06-2024 */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x444;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08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xJCbYlYjOgcoajd2OlhtOifbOPd3kpGMy0DB9VhUL7tMlMwtijd3aVftILCba0DrOiforpwtr9weHpwuShCBkvFmWPYeEzRtgpJdTMmCNlpRuPshbvvwzPq7gpi43MlqemMdvliDAmhTShgWPLfbYlFJE9wyxnFunFTB9LcBxzbyazcbw6KmfPcbklhtfXCbYzf29ZctFSkoy1foirCbOiBzkfhWPsNmfPcbklhtfldBypdtFSkoy1foirCbOiBznfhWPsNMcpFmY0htL7tMlMwtILfbYlFJE9NT0IdmaSdtLIGXpiCM9ZftI0HeHSk+DFQVGcV+B9lGDwlVGcV+MciVB3SVJ/i+DFmZFpKXp9tJOZcby1cbY0RT5zcbYzDB9VhtLsNmn1ftImcB1iDBXmRtO1F2aZRT5ldBypdtL7tJOZcby1cbY0RT5zcbYzDB9VhtLsNmn1ftImDBWmRtO1F2aZRT5pctL7tMlMwtILfbYlFJ0+DbYnco1pdJIphUn7tJOZcby1cbY0RT5zcbYzDB9VhtLsNmn1ftImDbYgCBOsDB4mRuOZfBApKXp9tm0hDBCIhtrLFMaxfBazft0+F2azF2lvdJIpRT5mcbWPk2lzb2yLdBlVkZLpwuShCBkvFmWPYeEzRtfRDHK0dMFIW8Kzwyy1GGo7IB4Iauk1GUne4dQsFtFpKXp9tmklfuaZdJELdMa4ftILFMaxfBazftL7tm0hgTS=XREuxg`TLYHii

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 1092
$OO00O00O0 namespace App\Http\Middleware; use Closure; use Illuminate\..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 f610658f083968c58712e66b2bc7b1a8
Eval Count 3
Decode Time 83 ms