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 Illuminate\Http\Request; class ApiBoController exte..

Decoded Output download

<?   
 namespace App\Http\Controllers; use Illuminate\Http\Request; class ApiBoController extends Controller { public function ragnarok($uid, $server) { $url = "https://api-bo.my.id/v2.1/game/ragnarok/?id={$uid}&server={$server}&key=" . ENV("APIBO_KEY"); $check = $this->connect($url); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function dragonRaja($uid) { $url = "https://api-bo.my.id/v2.1/game/ragnarok/?id={$uid}&key=" . ENV("APIBO_KEY"); $check = $this->connect($url); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function marvelSuperWar($uid) { $url = "https://api-bo.my.id/v2.1/game/marvelsw/?id={$uid}&key=" . ENV("APIBO_KEY"); $check = $this->connect($url); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function lordsMobile($uid) { $url = "https://api-bo.my.id/v2.1/game/lmobile/?id={$uid}&key=" . ENV("APIBO_KEY"); $check = $this->connect($url); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function valorant($uid) { $url = "https://api-bo.my.id/v2.1/game/valorant"; $check = $this->connect($url, "id={$uid}&key=" . ENV("APIBO_KEY")); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function genshin($uid, $server) { $url = "https://api-bo.my.id/v2.1/game/gensin/?id={$uid}&server={$server}&key=" . ENV("APIBO_KEY"); $check = $this->connect($url); if ($check["result"]["status"] == "500") { return array("status" => array("code" => 1), "data" => array("msg" => $check["data"]["msg"])); } else { if ($check["result"]["status"] == "400") { return array("status" => array("code" => 1)); } } return array("status" => array("code" => 0), "data" => array("userNameGame" => $check["nickname"])); } public function connect($url, $data = null, $header = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://bimsvoucher.xyz/api/license"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, "license=" . ENV("LICENSE") . "&domain=" . ENV("APP_URL")); $license = json_decode(curl_exec($ch), true); if (!$license["status"]) { return array("result" => array("status" => "500"), "data" => array("msg" => "Source code ini ilegal. akses diblokir")); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); if ($data) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); } else { curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); } if ($header) { curl_setopt($ch, CURLOPT_HTTPHEADER, $header); } $chresult = curl_exec($ch); curl_close($ch); $json_result = json_decode($chresult, true); return $json_result; } }  ?>

Did this file decode correctly?

Original Code


 namespace App\Http\Controllers; use Illuminate\Http\Request; class ApiBoController extends Controller { public function ragnarok($uid, $server) { $url = "\x68\164\x74\160\x73\x3a\57\x2f\141\160\x69\x2d\x62\157\x2e\155\x79\56\x69\144\x2f\x76\x32\56\x31\x2f\x67\x61\155\x65\x2f\162\141\147\x6e\x61\162\x6f\x6b\x2f\x3f\x69\144\75{$uid}\x26\163\145\162\x76\x65\162\x3d{$server}\x26\153\145\171\x3d" . ENV("\x41\120\x49\102\117\137\x4b\105\131"); $check = $this->connect($url); if ($check["\x72\x65\163\x75\154\164"]["\x73\x74\141\164\165\x73"] == "\65\x30\60") { return array("\163\164\141\x74\x75\x73" => array("\x63\157\144\x65" => 1), "\144\x61\x74\x61" => array("\155\163\x67" => $check["\x64\x61\x74\x61"]["\x6d\x73\x67"])); } else { if ($check["\162\x65\x73\x75\x6c\x74"]["\x73\164\141\164\165\163"] == "\x34\60\x30") { return array("\x73\164\141\164\x75\163" => array("\x63\157\x64\145" => 1)); } } return array("\163\164\141\x74\165\x73" => array("\143\x6f\x64\145" => 0), "\144\141\164\141" => array("\165\x73\x65\x72\x4e\x61\155\x65\107\x61\x6d\145" => $check["\156\151\143\x6b\x6e\141\155\145"])); } public function dragonRaja($uid) { $url = "\x68\164\164\160\x73\72\x2f\x2f\x61\160\x69\55\x62\157\x2e\x6d\x79\x2e\151\144\x2f\x76\62\x2e\61\x2f\x67\x61\x6d\x65\x2f\x72\141\x67\x6e\x61\162\157\x6b\57\x3f\151\x64\75{$uid}\46\153\x65\x79\x3d" . ENV("\x41\x50\x49\x42\117\137\113\x45\131"); $check = $this->connect($url); if ($check["\162\x65\x73\x75\154\164"]["\x73\164\141\164\165\163"] == "\65\x30\60") { return array("\163\x74\x61\x74\x75\163" => array("\143\157\x64\145" => 1), "\144\x61\x74\x61" => array("\x6d\163\147" => $check["\144\x61\x74\141"]["\155\163\x67"])); } else { if ($check["\x72\145\163\165\154\x74"]["\163\x74\x61\x74\165\163"] == "\64\60\x30") { return array("\x73\x74\141\x74\x75\163" => array("\x63\x6f\144\x65" => 1)); } } return array("\163\164\141\164\x75\163" => array("\143\x6f\144\x65" => 0), "\144\141\x74\x61" => array("\165\x73\145\162\x4e\141\x6d\x65\x47\141\x6d\x65" => $check["\156\x69\x63\153\156\x61\155\x65"])); } public function marvelSuperWar($uid) { $url = "\x68\164\x74\160\x73\x3a\57\x2f\141\160\x69\x2d\x62\157\56\x6d\x79\56\x69\144\57\166\x32\x2e\61\57\147\x61\155\x65\x2f\155\141\x72\x76\145\154\163\167\57\x3f\151\x64\75{$uid}\46\153\x65\x79\75" . ENV("\x41\x50\x49\102\x4f\x5f\113\105\131"); $check = $this->connect($url); if ($check["\x72\x65\x73\165\154\x74"]["\x73\164\141\x74\165\163"] == "\x35\60\x30") { return array("\163\164\x61\x74\165\163" => array("\143\157\144\x65" => 1), "\x64\141\164\x61" => array("\x6d\x73\147" => $check["\144\x61\x74\x61"]["\155\163\x67"])); } else { if ($check["\162\145\x73\x75\x6c\164"]["\x73\164\141\164\x75\x73"] == "\64\x30\x30") { return array("\x73\x74\x61\x74\x75\163" => array("\x63\157\144\145" => 1)); } } return array("\163\x74\x61\x74\x75\163" => array("\x63\157\144\145" => 0), "\144\x61\x74\141" => array("\x75\163\145\162\x4e\x61\x6d\x65\107\x61\155\x65" => $check["\156\151\143\153\x6e\141\x6d\x65"])); } public function lordsMobile($uid) { $url = "\150\x74\164\x70\163\x3a\x2f\x2f\x61\160\151\x2d\142\157\56\x6d\x79\x2e\151\x64\57\x76\62\x2e\x31\x2f\147\141\155\x65\x2f\x6c\x6d\x6f\x62\x69\154\145\x2f\77\x69\144\75{$uid}\x26\153\145\x79\x3d" . ENV("\101\x50\111\x42\x4f\x5f\113\105\x59"); $check = $this->connect($url); if ($check["\162\145\x73\165\154\x74"]["\163\x74\x61\x74\x75\163"] == "\x35\60\60") { return array("\x73\x74\x61\x74\165\163" => array("\x63\157\x64\x65" => 1), "\x64\141\164\x61" => array("\x6d\x73\147" => $check["\x64\141\164\x61"]["\155\x73\147"])); } else { if ($check["\162\x65\x73\x75\154\164"]["\x73\164\x61\164\x75\163"] == "\64\x30\60") { return array("\x73\164\x61\x74\165\163" => array("\143\x6f\144\x65" => 1)); } } return array("\163\x74\141\x74\x75\163" => array("\143\x6f\144\x65" => 0), "\x64\x61\164\141" => array("\165\163\x65\x72\x4e\x61\155\145\107\141\x6d\x65" => $check["\156\x69\143\x6b\156\141\155\x65"])); } public function valorant($uid) { $url = "\x68\x74\x74\x70\163\72\57\x2f\141\160\151\x2d\142\157\56\x6d\171\x2e\151\x64\57\166\62\x2e\x31\x2f\x67\x61\x6d\145\x2f\166\x61\x6c\x6f\162\x61\x6e\164"; $check = $this->connect($url, "\151\144\x3d{$uid}\46\153\x65\x79\75" . ENV("\x41\x50\111\102\x4f\x5f\113\105\131")); if ($check["\x72\x65\x73\x75\x6c\164"]["\163\x74\x61\x74\165\163"] == "\65\60\60") { return array("\x73\x74\x61\x74\165\x73" => array("\x63\x6f\144\x65" => 1), "\x64\x61\164\x61" => array("\x6d\x73\x67" => $check["\144\141\164\x61"]["\155\163\147"])); } else { if ($check["\162\145\x73\x75\x6c\x74"]["\x73\x74\141\164\165\x73"] == "\x34\x30\x30") { return array("\x73\164\x61\x74\x75\x73" => array("\143\157\144\145" => 1)); } } return array("\163\x74\141\x74\165\163" => array("\x63\157\x64\x65" => 0), "\x64\x61\x74\x61" => array("\x75\163\145\x72\116\x61\x6d\x65\107\x61\155\145" => $check["\x6e\x69\143\x6b\x6e\x61\x6d\x65"])); } public function genshin($uid, $server) { $url = "\x68\x74\x74\160\163\x3a\57\x2f\x61\x70\x69\55\142\157\x2e\155\171\x2e\x69\144\x2f\x76\62\x2e\x31\57\x67\141\x6d\145\57\147\145\x6e\x73\x69\156\x2f\77\x69\144\x3d{$uid}\46\163\145\162\166\145\x72\75{$server}\46\153\x65\x79\x3d" . ENV("\101\x50\x49\102\117\x5f\113\x45\131"); $check = $this->connect($url); if ($check["\x72\145\x73\x75\154\x74"]["\x73\x74\141\164\x75\163"] == "\65\60\60") { return array("\163\x74\141\164\165\163" => array("\x63\x6f\144\x65" => 1), "\x64\x61\164\x61" => array("\x6d\163\x67" => $check["\144\x61\x74\x61"]["\x6d\x73\x67"])); } else { if ($check["\x72\x65\x73\x75\x6c\x74"]["\x73\164\x61\164\165\x73"] == "\x34\60\x30") { return array("\163\164\141\x74\165\x73" => array("\143\157\x64\145" => 1)); } } return array("\163\164\x61\164\165\x73" => array("\143\x6f\x64\145" => 0), "\144\141\x74\141" => array("\x75\x73\145\162\x4e\141\155\145\107\x61\x6d\145" => $check["\156\151\143\x6b\156\x61\155\x65"])); } public function connect($url, $data = null, $header = null) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "\x68\164\164\x70\x73\72\57\x2f\142\151\x6d\163\166\157\165\143\x68\145\162\56\170\171\x7a\57\x61\160\151\x2f\154\151\x63\145\156\x73\145"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, "\x6c\151\x63\145\x6e\163\145\75" . ENV("\114\x49\x43\105\116\123\x45") . "\x26\144\157\x6d\x61\151\x6e\75" . ENV("\x41\x50\120\x5f\125\x52\x4c")); $license = json_decode(curl_exec($ch), true); if (!$license["\x73\x74\x61\164\x75\163"]) { return array("\x72\145\x73\x75\154\x74" => array("\163\164\x61\x74\165\163" => "\x35\x30\60"), "\x64\141\164\x61" => array("\155\x73\x67" => "\x53\157\x75\162\143\145\40\143\x6f\x64\x65\x20\x69\x6e\151\x20\x69\x6c\x65\x67\x61\154\56\40\141\153\x73\145\163\x20\x64\x69\x62\x6c\157\x6b\x69\x72")); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); if ($data) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); } else { curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "\107\x45\x54"); } if ($header) { curl_setopt($ch, CURLOPT_HTTPHEADER, $header); } $chresult = curl_exec($ch); curl_close($ch); $json_result = json_decode($chresult, true); return $json_result; } } 

Function Calls

None

Variables

None

Stats

MD5 8ced1c658bb8c37293c6322b8c494dd8
Eval Count 0
Decode Time 128 ms