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

$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x4aa);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,$OO00O0000),'EnteryouwkhRHYKNWOUTAaBbCcDdFfGgIiJjLlMmPpQqSsVvXxZz0123456789+/=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));fclose($O000O0O00);eval($OO00O00O0);
namespace App\Console\Commands;
use App\Models\User;
use App\Utils\CacheKey;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Cache;
class CheckDeviceOnline extends Command
{
protected $signature = 'check:checkdeviceonlie';
protected $description = '';
public function __construct()
{
parent::__construct();
}
public function handle()
{
$onlineUsersCache = Cache::get(CacheKey::ONLINE_IP,[]);
$activeUsers = User::where(User::FIELD_ONLINE,'>',0)->get();
foreach ($activeUsers as $user) {
$userId = $user->id;
$isUserOnline = false;
foreach ($onlineUsersCache as $onlineUser) {
if ($onlineUser['user_id'] === $userId) {
$isUserOnline = true;
break;
}
}
if (!$isUserOnline) {
$user->setAttribute(User::FIELD_ONLINE,0);
$user->setAttribute(User::FIELD_IP_ONLINE,null);
if ($user->save()) {
$this->info('Xa Ngi Dng Thnh Cng.');
}else {
$this->error('Xa Ngi Dng Tht Bi.');
}
}
}
}
};

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=0x4ec;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGFhKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>By_y|pL@`MGJ_tjZCKkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEX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B5labYlFlSmfbYlFl9pctffwe09NUELfbYlFLlLhUn7tJOpF1azcbkNdMxpdMAINUn0FmalKXpJFMaiDzShgWp9tMlMwtIikolzabYlFL9VdolVcULIGXPLfbYlFJ0+F2a0WbO0FMlJfbOlhyazcbw6KLckOAxrb09KTrlKOUXXhTShkuazcbwsNmYlfry0fukpCma0cUiaF2aZKjpoUAaHOy9kAy9NTLxkTLASdmaSdtL7tMlMwtILfbYlFJ0+F2y2cUIphUn7tJO0DolzRT5pdMcvhtfCX7Yiwr5mxqeiV51pwrTeVB5mwyOPX6nVDtneX7OVcZ4mhTShgBaSF2AIGXPLfoipFZ0+cbkZd3wPk1jeS2rITMgoSKo7mBLIOHK5dMFIaojiVQa0wrRiVQypRJFpKXp9tm0hgWp9tm07YpZ{kT\luZ]n\dGXghHn

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 1260
$OO00O00O0 namespace App\Console\Commands; use App\Models\User; use Ap..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 b6100671efe1651ec29969472311da99
Eval Count 3
Decode Time 78 ms