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 ${"\x47\x4cO\x42A\x4cS"}["\x76\x67h\x77\x68v\x63k\x66x\x7a"]="g\x65t";${"\x47LO\x42\..

Decoded Output download

<?php ${"GLOBALS"}["vghwhvckfxz"]="get";${"GLOBALS"}["chqlrvt"]="string";${"GLOBALS"}["kzystox"]="data";${"GLOBALS"}["dmjxqgthby"]="url";${"GLOBALS"}["hjfteixxcxci"]="ch";$tgtzwmp="url";${"GLOBALS"}["malokql"]="head";session_start();function get_html($url){$krskcl="url";$bfmohsf="head";$yhsnjgb="ch";${$bfmohsf}[]="Authorization: 135586ec0389f483a199c6b21f88cbb0";${${"GLOBALS"}["malokql"]}[]="api-key: 6ffd4cb200028635a6c548f1c5820bcc";$psfcsiz="ch";$vfnykzfuntnb="ch";$xmtdwrlhcpc="ch";${${"GLOBALS"}["malokql"]}[]="User-Agent: Mozilla/5.0 (Linux; Android 8.1.0; Redmi 6 Pro Build/OPM1.171019.019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/72.0.3578.99 Mobile Safari/537.36";$iamqqesqimx="ch";$ifwvgix="head";${$vfnykzfuntnb}=curl_init();${"GLOBALS"}["vgptqww"]="ch";curl_setopt(${$psfcsiz},CURLOPT_RETURNTRANSFER,true);curl_setopt(${${"GLOBALS"}["hjfteixxcxci"]},CURLOPT_URL,${$krskcl});${"GLOBALS"}["lvihccpye"]="data";$elybljrak="data";${"GLOBALS"}["fwwnstwerqb"]="ch";curl_setopt(${${"GLOBALS"}["hjfteixxcxci"]},CURLOPT_HTTPHEADER,${$ifwvgix});curl_setopt(${${"GLOBALS"}["hjfteixxcxci"]},CURLOPT_FOLLOWLOCATION,TRUE);curl_setopt(${$iamqqesqimx},CURLOPT_SSL_VERIFYPEER,0);curl_setopt(${${"GLOBALS"}["vgptqww"]},CURLOPT_SSL_VERIFYHOST,0);curl_setopt(${${"GLOBALS"}["fwwnstwerqb"]},CURLOPT_FAILONERROR,0);${$elybljrak}=curl_exec(${$xmtdwrlhcpc});curl_close(${$yhsnjgb});return${${"GLOBALS"}["lvihccpye"]};}function retrieve_remote_file_size($url){$sgyybjl="ch";${"GLOBALS"}["vggbrnguaj"]="ch";${${"GLOBALS"}["hjfteixxcxci"]}=curl_init(${${"GLOBALS"}["dmjxqgthby"]});${"GLOBALS"}["sgveddlegcu"]="ch";$hsdkhu="size";${"GLOBALS"}["vkmjkssbtiex"]="size";curl_setopt(${$sgyybjl},CURLOPT_RETURNTRANSFER,TRUE);curl_setopt(${${"GLOBALS"}["vggbrnguaj"]},CURLOPT_HEADER,TRUE);curl_setopt(${${"GLOBALS"}["hjfteixxcxci"]},CURLOPT_NOBODY,TRUE);${${"GLOBALS"}["kzystox"]}=curl_exec(${${"GLOBALS"}["hjfteixxcxci"]});${${"GLOBALS"}["vkmjkssbtiex"]}=curl_getinfo(${${"GLOBALS"}["hjfteixxcxci"]},CURLINFO_CONTENT_LENGTH_DOWNLOAD);curl_close(${${"GLOBALS"}["sgveddlegcu"]});return${$hsdkhu};}function clean($string){return preg_replace("/[^A-Za-z0-9\. -]/"," ",${${"GLOBALS"}["chqlrvt"]});}${$tgtzwmp}=get_html("https://capi.hungama.com/webservice/hungama/hls/playback.php?f=mp3&id=".strrev($_GET["id"])."&q=".$_GET["quality"]."&dos=android&property=music&ver=5.2.8&dl=1&dlang=eng");${${"GLOBALS"}["vghwhvckfxz"]}=json_decode(${${"GLOBALS"}["dmjxqgthby"]});if(isset($get->node->data->url)){$mcpnvwzbt="name";${$mcpnvwzbt}=pathinfo($get->node->data->url);header("Content-Description: File Transfer");header("Content-Type: audio/mpeg");header("Content-disposition: attachment; filename=".ucwords(str_replace("-"," ",$_GET["name"]))."-[Hungama.Club].mp3");header("Content-Transfer-Encoding: binary");header("Expires: 0");header("Pragma: public");header("Content-Length: ".retrieve_remote_file_size($get->node->data->url));header("Cache-Control: must-revalidate, post-check=0, pre-check=0");ob_clean();flush();readfile($get->node->data->url);exit;} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4cO\x42A\x4cS"}["\x76\x67h\x77\x68v\x63k\x66x\x7a"]="g\x65t";${"\x47LO\x42\x41L\x53"}["\x63\x68\x71\x6cr\x76\x74"]="\x73\x74\x72\x69n\x67";${"\x47\x4c\x4f\x42\x41L\x53"}["kzy\x73t\x6f\x78"]="\x64\x61ta";${"\x47L\x4f\x42\x41L\x53"}["\x64\x6dj\x78\x71\x67t\x68\x62y"]="\x75\x72l";${"GL\x4f\x42\x41L\x53"}["\x68\x6a\x66t\x65i\x78\x78\x63\x78c\x69"]="\x63\x68";$tgtzwmp="url";${"\x47\x4c\x4f\x42ALS"}["m\x61\x6c\x6f\x6b\x71\x6c"]="\x68\x65\x61d";session_start();function get_html($url){$krskcl="\x75rl";$bfmohsf="h\x65\x61\x64";$yhsnjgb="\x63\x68";${$bfmohsf}[]="\x41u\x74h\x6fr\x69z\x61t\x69\x6f\x6e: 135\x35\x38\x36\x65c\x30\x33\x389\x66\x348\x33\x61\x31\x399c6b\x321\x66\x388cbb0";${${"\x47\x4cO\x42\x41\x4cS"}["\x6da\x6c\x6fk\x71\x6c"]}[]="ap\x69-key: 6\x66f\x644cb\x32\x3000\x32\x3863\x35\x616c\x3548f1\x635\x38\x32\x30\x62cc";$psfcsiz="\x63\x68";$vfnykzfuntnb="c\x68";$xmtdwrlhcpc="ch";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6da\x6c\x6f\x6bq\x6c"]}[]="Us\x65r-Ag\x65\x6e\x74:\x20\x4dozi\x6c\x6c\x61/5\x2e\x30 (L\x69nu\x78; A\x6edro\x69\x64 \x38\x2e1\x2e0; \x52\x65\x64m\x69 6 \x50\x72o \x42\x75il\x64/OP\x4d1\x2e\x31\x37\x310\x319.\x301\x39;\x20\x77\x76)\x20Ap\x70l\x65W\x65\x62K\x69\x74/\x35\x33\x37\x2e36 (\x4b\x48\x54\x4d\x4c,\x20li\x6be\x20\x47\x65c\x6bo)\x20V\x65rsi\x6fn/4\x2e0 C\x68ro\x6d\x65/\x372.\x30.357\x38.\x39\x39 M\x6fb\x69\x6ce\x20\x53a\x66\x61ri/5\x337.\x33\x36";$iamqqesqimx="\x63h";$ifwvgix="h\x65ad";${$vfnykzfuntnb}=curl_init();${"\x47\x4c\x4fB\x41\x4c\x53"}["\x76\x67\x70tq\x77\x77"]="c\x68";curl_setopt(${$psfcsiz},CURLOPT_RETURNTRANSFER,true);curl_setopt(${${"G\x4c\x4fB\x41L\x53"}["h\x6af\x74ei\x78\x78c\x78\x63\x69"]},CURLOPT_URL,${$krskcl});${"\x47\x4c\x4fB\x41L\x53"}["\x6c\x76\x69\x68c\x63\x70y\x65"]="\x64\x61\x74a";$elybljrak="\x64a\x74a";${"GL\x4f\x42\x41LS"}["f\x77\x77\x6es\x74\x77\x65\x72\x71\x62"]="\x63\x68";curl_setopt(${${"G\x4c\x4f\x42AL\x53"}["h\x6a\x66\x74ei\x78xc\x78c\x69"]},CURLOPT_HTTPHEADER,${$ifwvgix});curl_setopt(${${"\x47L\x4f\x42A\x4c\x53"}["hj\x66\x74\x65i\x78\x78c\x78\x63\x69"]},CURLOPT_FOLLOWLOCATION,TRUE);curl_setopt(${$iamqqesqimx},CURLOPT_SSL_VERIFYPEER,0);curl_setopt(${${"\x47L\x4fB\x41LS"}["v\x67\x70t\x71\x77\x77"]},CURLOPT_SSL_VERIFYHOST,0);curl_setopt(${${"\x47\x4cOB\x41\x4c\x53"}["f\x77\x77\x6e\x73\x74\x77e\x72q\x62"]},CURLOPT_FAILONERROR,0);${$elybljrak}=curl_exec(${$xmtdwrlhcpc});curl_close(${$yhsnjgb});return${${"\x47LO\x42ALS"}["\x6cv\x69h\x63c\x70y\x65"]};}function retrieve_remote_file_size($url){$sgyybjl="\x63\x68";${"\x47\x4cO\x42\x41\x4c\x53"}["\x76\x67\x67\x62r\x6eg\x75a\x6a"]="\x63\x68";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68jf\x74\x65i\x78\x78\x63\x78\x63\x69"]}=curl_init(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x64m\x6ax\x71\x67\x74\x68\x62\x79"]});${"\x47\x4cO\x42A\x4cS"}["\x73\x67v\x65\x64\x64l\x65\x67\x63u"]="c\x68";$hsdkhu="\x73\x69\x7a\x65";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76k\x6d\x6a\x6b\x73\x73\x62\x74\x69\x65\x78"]="s\x69\x7a\x65";curl_setopt(${$sgyybjl},CURLOPT_RETURNTRANSFER,TRUE);curl_setopt(${${"G\x4cOB\x41\x4cS"}["vg\x67\x62\x72\x6e\x67\x75\x61\x6a"]},CURLOPT_HEADER,TRUE);curl_setopt(${${"\x47L\x4fB\x41\x4c\x53"}["\x68j\x66t\x65\x69\x78x\x63\x78\x63\x69"]},CURLOPT_NOBODY,TRUE);${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x7a\x79\x73\x74o\x78"]}=curl_exec(${${"\x47LOB\x41\x4c\x53"}["\x68\x6aft\x65i\x78\x78\x63\x78\x63\x69"]});${${"GL\x4f\x42A\x4c\x53"}["\x76km\x6a\x6b\x73\x73b\x74i\x65\x78"]}=curl_getinfo(${${"\x47\x4cO\x42ALS"}["h\x6a\x66t\x65\x69xx\x63\x78c\x69"]},CURLINFO_CONTENT_LENGTH_DOWNLOAD);curl_close(${${"G\x4c\x4fB\x41L\x53"}["s\x67\x76\x65\x64d\x6ceg\x63u"]});return${$hsdkhu};}function clean($string){return preg_replace("/[^A-\x5a\x61-\x7a\x30-\x39\\\x2e -]/"," ",${${"\x47\x4c\x4fB\x41\x4c\x53"}["c\x68ql\x72\x76t"]});}${$tgtzwmp}=get_html("\x68\x74t\x70\x73://\x63\x61p\x69.hun\x67\x61\x6d\x61\x2e\x63om/\x77\x65bserv\x69\x63\x65/\x68\x75\x6e\x67\x61\x6da/\x68\x6c\x73/p\x6c\x61\x79b\x61ck.\x70h\x70?f\x3dmp\x33\x26i\x64=".strrev($_GET["\x69d"])."\x26q\x3d".$_GET["qua\x6c\x69t\x79"]."&dos\x3d\x61ndroid&p\x72\x6fpe\x72ty=\x6dus\x69c&ver\x3d5\x2e2.8\x26\x64l\x3d\x31\x26dla\x6eg=\x65\x6e\x67");${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x67\x68w\x68\x76\x63\x6bf\x78z"]}=json_decode(${${"\x47\x4cO\x42\x41L\x53"}["dm\x6a\x78\x71\x67\x74\x68\x62\x79"]});if(isset($get->node->data->url)){$mcpnvwzbt="\x6e\x61\x6d\x65";${$mcpnvwzbt}=pathinfo($get->node->data->url);header("\x43\x6fn\x74ent-D\x65\x73\x63\x72i\x70\x74\x69\x6f\x6e: F\x69\x6c\x65\x20\x54\x72\x61n\x73fe\x72");header("C\x6fnten\x74-\x54\x79pe:\x20\x61\x75\x64\x69\x6f/\x6d\x70\x65g");header("\x43o\x6eten\x74-d\x69\x73\x70\x6f\x73it\x69\x6f\x6e:\x20atta\x63hm\x65n\x74; f\x69\x6ce\x6e\x61me=".ucwords(str_replace("-"," ",$_GET["nam\x65"]))."-[Hu\x6eg\x61\x6da.\x43\x6c\x75\x62].\x6d\x703");header("\x43on\x74\x65nt-\x54\x72ansfer-E\x6ec\x6f\x64\x69\x6e\x67:\x20\x62i\x6e\x61r\x79");header("Ex\x70ires:\x20\x30");header("Pr\x61g\x6d\x61:\x20p\x75\x62l\x69\x63");header("C\x6f\x6e\x74\x65\x6e\x74-L\x65\x6egt\x68: ".retrieve_remote_file_size($get->node->data->url));header("\x43\x61che-C\x6fn\x74\x72\x6fl: mu\x73t-re\x76a\x6ci\x64\x61te,\x20\x70o\x73t-chec\x6b\x3d0, pr\x65-\x63he\x63k=\x30");ob_clean();flush();readfile($get->node->data->url);exit;}
?>

Function Calls

strrev 1
session_start 1

Variables

GLOBALS [{'key': 'vghwhvckfxz', 'value': 'get'}, {'key': 'chqlrvt', 'value': 'string'}, {'key': 'kzystox', 'value': 'data'}, {'key': 'dmjxqgthby', 'value': 'url'}, {'key': 'hjfteixxcxci', 'value': 'ch'}, {'key': 'malokql', 'value': 'head'}]
$tgtzwmp url

Stats

MD5 1b0881b22c06473202e161126985615f
Eval Count 0
Decode Time 338 ms