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 ${"G\x4c\x4fB\x41\x4cS"}["\x78\x72\x72\x76\x64vz\x73\x6e"]="\x63o\x64\x65";${"\x47\x..

Decoded Output download

<?php ${"GLOBALS"}["xrrvdvzsn"]="code";${"GLOBALS"}["skeqprrgqsf"]="status";${"GLOBALS"}["debpfgdones"]="result";${"GLOBALS"}["rpjqii"]="hash";${"GLOBALS"}["fvtvmu"]="iv";${"GLOBALS"}["csjbqobfcf"]="key";${"GLOBALS"}["pxoefltgfi"]="method";${"GLOBALS"}["qcwogkkxhjz"]="plaintext";${"GLOBALS"}["uwgrwwyla"]="ua";define("PASSWORD",file_get_contents("dont-touch.key"));function auth1(){$pwifubxnb="ua";${$pwifubxnb}=$_SERVER["HTTP_USER_AGENT"];if(!(strpos(${${"GLOBALS"}["uwgrwwyla"]},"Android")>-1)){header("Unauthorized",true,403);exit(0);}}function encrypt($plaintext,$password,$direct=false){${"GLOBALS"}["cdwrwuobtb"]="direct";${"GLOBALS"}["zhxjhloocxc"]="password";$nnfodutmfp="result";${"GLOBALS"}["zypisspjog"]="iv";if(!${${"GLOBALS"}["cdwrwuobtb"]}){${"GLOBALS"}["kqvkqtqmhkb"]="plaintext";${${"GLOBALS"}["kqvkqtqmhkb"]}=json_response(${${"GLOBALS"}["qcwogkkxhjz"]});}${"GLOBALS"}["smqevxbj"]="ciphertext";${"GLOBALS"}["suiqqjt"]="plaintext";${${"GLOBALS"}["pxoefltgfi"]}="AES-256-CBC";${${"GLOBALS"}["csjbqobfcf"]}=hash("sha256",${${"GLOBALS"}["zhxjhloocxc"]},true);${"GLOBALS"}["dkliebglg"]="key";${"GLOBALS"}["tqtjmfctm"]="ciphertext";${"GLOBALS"}["igggikfh"]="ciphertext";${${"GLOBALS"}["fvtvmu"]}=openssl_random_pseudo_bytes(16);${"GLOBALS"}["vvvvdfyrcd"]="iv";${${"GLOBALS"}["tqtjmfctm"]}=openssl_encrypt(${${"GLOBALS"}["suiqqjt"]},${${"GLOBALS"}["pxoefltgfi"]},${${"GLOBALS"}["csjbqobfcf"]},OPENSSL_RAW_DATA,${${"GLOBALS"}["zypisspjog"]});${${"GLOBALS"}["rpjqii"]}=hash_hmac("sha256",${${"GLOBALS"}["igggikfh"]}.${${"GLOBALS"}["fvtvmu"]},${${"GLOBALS"}["dkliebglg"]},true);${$nnfodutmfp}=${${"GLOBALS"}["vvvvdfyrcd"]}.${${"GLOBALS"}["rpjqii"]}.${${"GLOBALS"}["smqevxbj"]};return base64_encode(${${"GLOBALS"}["debpfgdones"]});}function json_response($message=null,$code=200){header_remove();$tbiaztwuconj="code";$mpluigkgnx="status";http_response_code(${$tbiaztwuconj});header("Cache-Control: no-transform,public,max-age=300,s-maxage=900");${"GLOBALS"}["ktpjakjjgbp"]="message";${$mpluigkgnx}=array(200=>"200 OK",400=>"400 Bad Request",422=>"Unprocessable Entity",500=>"500 Internal Server Error");header("Status: ".${${"GLOBALS"}["skeqprrgqsf"]}[${${"GLOBALS"}["xrrvdvzsn"]}]);return json_encode(array("status"=>${${"GLOBALS"}["xrrvdvzsn"]}<300,"data"=>${${"GLOBALS"}["ktpjakjjgbp"]}));}class XcPortal{public$portal_type='xc';public$baseUrl='http://0.0.0.0';function __construct($url){$ibhuykbrb="url";$this->baseUrl=${$ibhuykbrb};}} 
 ?>

Did this file decode correctly?

Original Code

<?php ${"G\x4c\x4fB\x41\x4cS"}["\x78\x72\x72\x76\x64vz\x73\x6e"]="\x63o\x64\x65";${"\x47\x4cO\x42\x41\x4c\x53"}["sk\x65\x71\x70r\x72\x67\x71\x73\x66"]="s\x74\x61t\x75\x73";${"\x47LOB\x41L\x53"}["de\x62p\x66g\x64\x6f\x6ees"]="\x72\x65\x73u\x6ct";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x72pj\x71i\x69"]="\x68\x61s\x68";${"\x47\x4c\x4fB\x41\x4cS"}["\x66\x76tv\x6d\x75"]="\x69\x76";${"GLO\x42\x41L\x53"}["csj\x62q\x6fbfc\x66"]="\x6b\x65y";${"\x47\x4cO\x42\x41\x4c\x53"}["\x70x\x6f\x65fl\x74\x67f\x69"]="\x6d\x65th\x6fd";${"G\x4cO\x42A\x4c\x53"}["\x71\x63\x77\x6fg\x6bkx\x68jz"]="pla\x69\x6et\x65x\x74";${"\x47\x4cOB\x41L\x53"}["u\x77gr\x77w\x79\x6ca"]="\x75\x61";define("\x50A\x53\x53\x57OR\x44",file_get_contents("\x64o\x6e\x74-touc\x68\x2ekey"));function auth1(){$pwifubxnb="\x75\x61";${$pwifubxnb}=$_SERVER["\x48T\x54\x50_USER\x5f\x41\x47ENT"];if(!(strpos(${${"\x47LOB\x41\x4cS"}["\x75\x77\x67\x72\x77\x77\x79la"]},"An\x64\x72oi\x64")>-1)){header("\x55nau\x74horiz\x65d",true,403);exit(0);}}function encrypt($plaintext,$password,$direct=false){${"\x47L\x4f\x42\x41L\x53"}["\x63d\x77rw\x75\x6fbtb"]="\x64i\x72\x65\x63t";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x7a\x68\x78\x6ahloo\x63\x78c"]="\x70\x61s\x73w\x6fr\x64";$nnfodutmfp="\x72\x65s\x75lt";${"\x47\x4c\x4fBAL\x53"}["z\x79\x70\x69ss\x70\x6aog"]="\x69v";if(!${${"GLOB\x41\x4c\x53"}["c\x64\x77\x72\x77\x75\x6f\x62\x74\x62"]}){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["k\x71v\x6b\x71\x74qmh\x6b\x62"]="plain\x74\x65x\x74";${${"\x47\x4c\x4f\x42\x41LS"}["kq\x76k\x71\x74\x71\x6d\x68\x6b\x62"]}=json_response(${${"\x47\x4cOBA\x4cS"}["qc\x77\x6f\x67\x6b\x6bx\x68j\x7a"]});}${"\x47\x4c\x4f\x42\x41\x4cS"}["\x73m\x71\x65v\x78\x62\x6a"]="\x63ip\x68e\x72t\x65\x78t";${"\x47L\x4f\x42\x41\x4c\x53"}["\x73\x75\x69q\x71\x6a\x74"]="\x70la\x69\x6etex\x74";${${"G\x4c\x4fB\x41\x4c\x53"}["pxoe\x66l\x74\x67\x66\x69"]}="A\x45S-\x32\x356-\x43B\x43";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["c\x73\x6a\x62q\x6f\x62\x66\x63f"]}=hash("s\x68\x61\x32\x35\x36",${${"\x47\x4c\x4f\x42ALS"}["\x7a\x68x\x6ah\x6c\x6fo\x63x\x63"]},true);${"GL\x4f\x42AL\x53"}["\x64\x6bl\x69e\x62\x67l\x67"]="key";${"\x47L\x4f\x42A\x4cS"}["\x74\x71tjm\x66c\x74\x6d"]="c\x69\x70\x68\x65r\x74e\x78\x74";${"\x47L\x4f\x42\x41L\x53"}["\x69ggg\x69\x6bf\x68"]="c\x69phe\x72t\x65\x78t";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x66v\x74v\x6d\x75"]}=openssl_random_pseudo_bytes(16);${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x76\x76\x76\x64\x66\x79\x72\x63d"]="iv";${${"G\x4c\x4fB\x41\x4cS"}["tq\x74jm\x66\x63\x74\x6d"]}=openssl_encrypt(${${"G\x4c\x4fBA\x4c\x53"}["\x73\x75\x69\x71q\x6a\x74"]},${${"\x47L\x4f\x42A\x4c\x53"}["\x70x\x6f\x65\x66lt\x67\x66\x69"]},${${"G\x4c\x4f\x42\x41LS"}["\x63\x73jbq\x6f\x62f\x63f"]},OPENSSL_RAW_DATA,${${"G\x4c\x4fB\x41\x4cS"}["zy\x70\x69\x73s\x70\x6a\x6fg"]});${${"\x47\x4cO\x42\x41L\x53"}["\x72pjqii"]}=hash_hmac("sha\x325\x36",${${"\x47L\x4f\x42AL\x53"}["\x69\x67\x67\x67i\x6b\x66h"]}.${${"\x47\x4cOB\x41L\x53"}["\x66\x76\x74v\x6d\x75"]},${${"\x47LO\x42A\x4cS"}["\x64\x6b\x6c\x69eb\x67\x6cg"]},true);${$nnfodutmfp}=${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x76\x76\x76\x64\x66y\x72\x63\x64"]}.${${"\x47L\x4fBALS"}["\x72\x70\x6a\x71i\x69"]}.${${"GL\x4f\x42AL\x53"}["smqe\x76x\x62\x6a"]};return base64_encode(${${"\x47L\x4f\x42ALS"}["\x64\x65\x62\x70fg\x64\x6f\x6e\x65s"]});}function json_response($message=null,$code=200){header_remove();$tbiaztwuconj="c\x6fd\x65";$mpluigkgnx="s\x74\x61\x74\x75\x73";http_response_code(${$tbiaztwuconj});header("C\x61ch\x65-\x43\x6fnt\x72\x6f\x6c:\x20n\x6f-\x74\x72\x61n\x73fo\x72\x6d,\x70\x75b\x6c\x69c,\x6d\x61\x78-a\x67e=\x3300,\x73-m\x61x\x61\x67\x65=\x390\x30");${"\x47L\x4fB\x41\x4c\x53"}["\x6bt\x70ja\x6b\x6ajg\x62p"]="m\x65\x73\x73\x61ge";${$mpluigkgnx}=array(200=>"\x320\x30 OK",400=>"4\x300\x20Bad \x52\x65que\x73\x74",422=>"\x55npr\x6fcess\x61\x62\x6c\x65\x20\x45nti\x74y",500=>"\x35\x300\x20Inter\x6eal\x20Se\x72\x76er E\x72\x72o\x72");header("\x53\x74a\x74us: ".${${"G\x4c\x4f\x42A\x4c\x53"}["\x73\x6b\x65q\x70\x72\x72\x67\x71\x73f"]}[${${"\x47LO\x42\x41\x4cS"}["\x78\x72\x72\x76d\x76\x7a\x73\x6e"]}]);return json_encode(array("\x73\x74a\x74\x75\x73"=>${${"\x47\x4cO\x42\x41LS"}["\x78\x72rvd\x76\x7a\x73n"]}<300,"\x64\x61\x74\x61"=>${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6b\x74p\x6aa\x6bj\x6agbp"]}));}class XcPortal{public$portal_type='xc';public$baseUrl='http://0.0.0.0';function __construct($url){$ibhuykbrb="\x75\x72\x6c";$this->baseUrl=${$ibhuykbrb};}}

Function Calls

define 1
file_get_contents 1

Variables

GLOBALS [{'key': 'xrrvdvzsn', 'value': 'code'}, {'key': 'skeqprrgqsf', 'value': 'status'}, {'key': 'debpfgdones', 'value': 'result'}, {'key': 'rpjqii', 'value': 'hash'}, {'key': 'fvtvmu', 'value': 'iv'}, {'key': 'csjbqobfcf', 'value': 'key'}, {'key': 'pxoefltgfi', 'value': 'method'}, {'key': 'qcwogkkxhjz', 'value': 'plaintext'}, {'key': 'uwgrwwyla', 'value': 'ua'}]

Stats

MD5 042fc69b291eee30853ee2965d393c7a
Eval Count 0
Decode Time 85 ms