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,0x4a9);$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\Http\Controllers\Admin\Server;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\ServerAreaSave;
use App\Models\BaseServer;
use App\Models\ServerArea;
use App\Models\ServerShadowsocks;
use App\Models\ServerTrojan;
use App\Models\ServerVmess;
use Exception;
use Illuminate\Contracts\Routing\ResponseFactory;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
class AreaController extends Controller
{
public function fetch(Request $request)
{
$reqAreaId = (int)$request->input('area_id');
if ($reqAreaId >0) {
$data = ServerArea::find($reqAreaId);
}else {
$data = ServerArea::get();
}
return response([
'data'=>$data
]);
}
public function save(ServerAreaSave $request)
{
$reqId = (int)$request->input('id');
$reqFlag = $request->input('flag');
$reqCountry = $request->input('country');
$reqCountryCode = $request->input('country_code');
$reqCity = $request->input('city');
$reqLng = $request->input('lng');
$reqLat = $request->input('lat');
if ($reqId >0) {
$serverArea = ServerArea::find($reqId);
}else {
$serverArea = new ServerArea();
}
$serverArea->setAttribute(ServerArea::FIELD_FLAG,$reqFlag);
$serverArea->setAttribute(ServerArea::FIELD_COUNTRY,$reqCountry);
$serverArea->setAttribute(ServerArea::FIELD_COUNTRY_CODE,$reqCountryCode);
$serverArea->setAttribute(ServerArea::FIELD_CITY,$reqCity);
$serverArea->setAttribute(ServerArea::FIELD_LNG,$reqLng);
$serverArea->setAttribute(ServerArea::FIELD_LAT,$reqLat);
if (!$serverArea->save()) {
abort(500,"");
}
return response([
'data'=>true
]);
}
public function drop(Request $request)
{
$reqId = (int)$request->input('id');
if ($reqId <= 0) {
abort(500,"");
}
$serverArea = ServerArea::find($reqId);
if ($serverArea == null) {
abort(500,'');
}
$vmessServers = ServerVmess::all();
$trojanServers = ServerTrojan::all();
$shadowsocksServers = ServerShadowsocks::all();
$servers = collect($vmessServers)->merge($trojanServers)->merge($shadowsocksServers);
foreach ($servers as $server) {
if ($reqId === (int)$server->getAttribute(BaseServer::FIELD_AREA_ID)) {
abort(500,'');
}
}
return response([
'data'=>$serverArea->delete()
]);
}
};

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=0xb80;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGE5KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>id@suRCDuwaA{pWCHIkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunOFaYzamcCGyp6HerZHzW1YjF4KUSvNUFSk0ytW0OyOLfwUApRTr1KT1nOAlYAaacbBylDCBkjcoaMc2ipDMsSdB5vFuyZF3O1fmf4GbPXHTwzYeA2YzI5hZ8mhULpK2cjdo9zcUILTzEXHr8XTzEXhTslfMyShtONTzEXTzEXTzEpKX==tM5idBazFoyjcUnnFunFUuO0Fyxed250FM9SdoaZF1xnco1pdlxTcbk2cbw7tmazcUnnFunFUuO0Fyxed250FM9SdoaZF1xed250FM9SdoaZKXp1F2AIWbnXbri0funFAMaxfBazfuYFWBOsDB5FA2aZfMaZWbklCaYifMA7tmazcUnnFunFTB9LcBxzbrkiF2aTcbk2cbw7tmazcUnnFunFTB9LcBxzbyYlFmclFLyZcBr7tmazcUnnFunFTB9LcBxzbyYlFmclFlYPCBOvf3YvC2szKXp1F2AIWbnXbr1vcoaSF1xTcbk2cbkAFM9QCB47tmazcUnnFunFTB9LcBxzbyYlFmclFlcscbYzKXp1F2AIObijcbn0DB9VKXp1F2AIUBxSfB1pdMy0caxed250FMyjfuYFAM91folVc1xUcbYXd25zcAciC3OvFmL7tmazcUnkdox1dBlVCbOlbri0funFAMaxfBazfeShfbYlwrlSduasDB5ifoaFUuO0FyxUcbYXd25zcTShC2xiF3HIWbklCAYvdmOZd2xScbwIcbi0cB5LFZned250FM9SdoaZtmShFuaJdoljwoc1dMY0DB9VwoclfoYPhyklFbalF3WIkuklFbalF3WptmShkuklFAyZcBykctE9wtipdmWpkuklFbalF3WsNMlVFua0htfiFMaib2lLkZL7tMlMwtILFMaxWbklCAlLwe4XhUn7tJOLCbOiwe0IA2aZfMaZWbklCTP6cMlVctILFMaxWbklCAlLhTShgBaSF2AIGXPLcoy0CUE9wyYlFmclFLyZcBr6KMflftIpKXp9tmklfuaZdJnZcbYXd25zcUidtJfLCbOikz0+koOiforhbUL7tm0hFuaJdoljwoc1dMY0DB9VwuYifMAPA2aZfMaZWbklCaYifMAIkuklFbalF3WptmShkuklFAlLwe0IholVftLLFMaxfBazft0+DB5XfbWPk2lLkZL7tJOZcbyodoymwe0IkuklFbalF3WsNMlVFua0htfMdoymkZL7tJOZcbyed3aVfuk5we0IkuklFbalF3WsNMlVFua0htfjd3aVfuk5kZL7tJOZcbyed3aVfuk5W29LcUE9wtOZcby1cbY0RT5pdmn1ftImC291dmOZGa9jd2OlkZL7tJOZcbyeDbO5we0IkuklFbalF3WsNMlVFua0htfjDbO5kZL7tJOZcbyHdMFINUELFMaxfBazft0+DB5XfbWPk2xVcZFpKXPLFMaxToy0we0IkuklFbalF3WsNMlVFua0htfSCbWmhTShDBCIhtOZcbykctE+HtLIGXPLF2aZfMaZWbklCUE9wyYlFmclFLyZcBr6KMcpdMWPku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kzwe0IA2aZfMaZA2iico93F29jD3H6KMySdtIpKXPLF2aZfMaZFZE9woYvdoxlC3WPkucscbYzA2aZfMaZFZLsNM1lFMflhtO0FM9QCB5Tcbk2cbkzhU0+dBaZc2APkuYPCBOvf3YvC2szA2aZfMaZFZL7tMcvFMaiC2IIhtOzcbk2cbkzwoyzwtOzcbk2cbwpwuShDBCIhtOZcbykctE9NT0IholVftLLF2aZfMaZRT5mcbOnfuOZDBk1foAPWMyzcaYlFmclFjP6OLlyTrOgWakyWa9kOtLpwuShCBkvFmWPYTEXRtgPq6bljRqlm5/ls7RPPQvPJPRmIqmMJCeLvd/mlhjvvwzMl6eMS5blJhepMDWmhTShgWp9tmklfuaZdJnZcbYXd25zcUidtJfLCbOikz0+kuYlFmclFLyZcBrsNMOldoa0cUIptl0pKXp9tm07IkOxmo|L

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 2944
$OO00O00O0 namespace App\Http\Controllers\Admin\Server; use App\Http\C..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 5cc57e1f3b15f3fdaad906d6384001bd
Eval Count 3
Decode Time 113 ms