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\x4cOBA\x4c\x53"}["k\x6d\x62\x6bo\x69tf\x76l"]="\x63\x68";${"\x47L\x4fB\x41\x..

Decoded Output download

<?php ${"GLOBALS"}["kmbkoitfvl"]="ch";${"GLOBALS"}["vnxxwmytbb"]="fields";${"GLOBALS"}["cxnkqyr"]="contents";${"GLOBALS"}["olulgyyjf"]="heading";${"GLOBALS"}["qhiufjig"]="content";$ccqtmqm="template";if(!defined("_source"))die("Error");${$ccqtmqm}="onesignal";function sendMessage($heading,$content,$url="https://sofavietphat.net/"){$hytprf="ch";${"GLOBALS"}["npkkecujkdz"]="response";${"GLOBALS"}["iijpwahvnu"]="ch";$xbbbwcx="fields";$tqwedlfngflj="fields";$xuubaagqmig="headings";$tytglljp="headings";${"GLOBALS"}["pgmmxxorjth"]="response";$shbbtt="url";$scqsbj="contents";${$scqsbj}=array("en"=>${${"GLOBALS"}["qhiufjig"]});${$tytglljp}=array("en"=>${${"GLOBALS"}["olulgyyjf"]});${$xbbbwcx}=array("app_id"=>"3ab06d2c-fd44-4649-b558-9de8bb828967","included_segments"=>array("All"),"contents"=>${${"GLOBALS"}["cxnkqyr"]},"headings"=>${$xuubaagqmig},"url"=>${$shbbtt});${${"GLOBALS"}["vnxxwmytbb"]}=json_encode(${${"GLOBALS"}["vnxxwmytbb"]});${"GLOBALS"}["uxvocrccf"]="ch";${${"GLOBALS"}["kmbkoitfvl"]}=curl_init();curl_setopt(${$hytprf},CURLOPT_URL,"https://onesignal.com/api/v1/notifications");$wmlpkncp="ch";curl_setopt(${${"GLOBALS"}["uxvocrccf"]},CURLOPT_HTTPHEADER,array("Content-Type: application/json; charset=utf-8","Authorization: Basic N2U0ZDRiN2YtZjcyMS00YjdiLTlmM2YtN2U3ODcwNmY3NzZi"));curl_setopt(${${"GLOBALS"}["kmbkoitfvl"]},CURLOPT_RETURNTRANSFER,TRUE);curl_setopt(${${"GLOBALS"}["kmbkoitfvl"]},CURLOPT_HEADER,FALSE);curl_setopt(${${"GLOBALS"}["iijpwahvnu"]},CURLOPT_POST,TRUE);curl_setopt(${${"GLOBALS"}["kmbkoitfvl"]},CURLOPT_POSTFIELDS,${$tqwedlfngflj});curl_setopt(${$wmlpkncp},CURLOPT_SSL_VERIFYPEER,FALSE);${${"GLOBALS"}["npkkecujkdz"]}=curl_exec(${${"GLOBALS"}["kmbkoitfvl"]});curl_close(${${"GLOBALS"}["kmbkoitfvl"]});return${${"GLOBALS"}["pgmmxxorjth"]};}if(!empty($_POST)){${"GLOBALS"}["bvsdycbdsm"]="heading";$mimbhqebj="url";${${"GLOBALS"}["bvsdycbdsm"]}=$_POST["heading"];${${"GLOBALS"}["qhiufjig"]}=$_POST["content"];${$mimbhqebj}=$_POST["url"];if(${${"GLOBALS"}["olulgyyjf"]}!=""&&${${"GLOBALS"}["qhiufjig"]}!=""){${"GLOBALS"}["ulvmqornz"]="url";${"GLOBALS"}["olduiduy"]="content";sendMessage(${${"GLOBALS"}["olulgyyjf"]},${${"GLOBALS"}["olduiduy"]},${${"GLOBALS"}["ulvmqornz"]});transfer("Tin nhn  c gi","index.php?com=onesignal");}} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4cOBA\x4c\x53"}["k\x6d\x62\x6bo\x69tf\x76l"]="\x63\x68";${"\x47L\x4fB\x41\x4cS"}["\x76\x6e\x78x\x77\x6d\x79t\x62b"]="\x66i\x65\x6c\x64s";${"\x47\x4c\x4fBA\x4c\x53"}["\x63\x78n\x6bqyr"]="\x63\x6f\x6e\x74\x65n\x74\x73";${"\x47\x4c\x4f\x42\x41LS"}["\x6f\x6cu\x6cg\x79yjf"]="\x68e\x61\x64\x69\x6eg";${"G\x4c\x4f\x42AL\x53"}["\x71\x68i\x75\x66\x6a\x69\x67"]="\x63\x6fnte\x6et";$ccqtmqm="\x74\x65\x6d\x70\x6c\x61te";if(!defined("\x5fs\x6f\x75\x72\x63e"))die("\x45r\x72\x6f\x72");${$ccqtmqm}="o\x6ee\x73\x69gn\x61l";function sendMessage($heading,$content,$url="h\x74tp\x73://\x73\x6f\x66\x61\x76\x69\x65\x74ph\x61t\x2ene\x74/"){$hytprf="\x63\x68";${"\x47\x4c\x4f\x42\x41L\x53"}["\x6e\x70k\x6b\x65c\x75\x6a\x6bdz"]="r\x65\x73\x70\x6fn\x73e";${"G\x4cOB\x41L\x53"}["i\x69\x6a\x70\x77\x61\x68\x76\x6e\x75"]="ch";$xbbbwcx="\x66\x69e\x6cds";$tqwedlfngflj="\x66ie\x6c\x64s";$xuubaagqmig="he\x61\x64\x69\x6e\x67\x73";$tytglljp="\x68\x65\x61\x64\x69\x6eg\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70\x67\x6d\x6d\x78\x78\x6f\x72\x6a\x74\x68"]="\x72es\x70o\x6e\x73\x65";$shbbtt="\x75\x72\x6c";$scqsbj="\x63\x6f\x6e\x74\x65\x6e\x74\x73";${$scqsbj}=array("en"=>${${"G\x4cOBAL\x53"}["\x71\x68i\x75\x66jig"]});${$tytglljp}=array("\x65n"=>${${"\x47\x4cO\x42A\x4cS"}["\x6f\x6c\x75lg\x79y\x6a\x66"]});${$xbbbwcx}=array("\x61pp\x5fid"=>"3a\x6206\x642\x63-\x66d4\x34-\x34\x36\x349-b\x35\x35\x38-\x39\x64\x658b\x62\x38\x32\x389\x367","\x69\x6ec\x6c\x75d\x65\x64\x5fse\x67\x6de\x6ets"=>array("A\x6cl"),"c\x6f\x6etent\x73"=>${${"GLOBAL\x53"}["\x63\x78nkqyr"]},"h\x65a\x64\x69ngs"=>${$xuubaagqmig},"\x75\x72l"=>${$shbbtt});${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x76nx\x78\x77m\x79tb\x62"]}=json_encode(${${"G\x4c\x4fB\x41\x4c\x53"}["\x76nxxw\x6d\x79\x74\x62b"]});${"G\x4cO\x42\x41\x4c\x53"}["\x75\x78\x76\x6f\x63\x72cc\x66"]="\x63\x68";${${"\x47L\x4f\x42\x41\x4c\x53"}["\x6b\x6d\x62\x6bo\x69\x74\x66v\x6c"]}=curl_init();curl_setopt(${$hytprf},CURLOPT_URL,"ht\x74\x70\x73://o\x6e\x65\x73igna\x6c.c\x6f\x6d/ap\x69/v1/\x6eoti\x66\x69\x63\x61ti\x6fns");$wmlpkncp="ch";curl_setopt(${${"\x47\x4c\x4f\x42AL\x53"}["\x75x\x76\x6f\x63rcc\x66"]},CURLOPT_HTTPHEADER,array("\x43on\x74\x65n\x74-\x54ype:\x20\x61ppli\x63at\x69\x6fn/\x6as\x6fn\x3b\x20\x63\x68ar\x73et\x3d\x75\x74f-\x38","\x41u\x74h\x6f\x72ization:\x20\x42a\x73\x69c \x4e\x32\x550Z\x44\x52iN\x32Y\x74Z\x6a\x63\x79MS\x30\x30\x59jd\x69L\x54lm\x4d\x32Y\x74\x4e2U3OD\x63w\x4em\x593\x4ez\x5a\x69"));curl_setopt(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x6d\x62ko\x69\x74fv\x6c"]},CURLOPT_RETURNTRANSFER,TRUE);curl_setopt(${${"\x47\x4cO\x42\x41\x4c\x53"}["km\x62k\x6f\x69\x74\x66v\x6c"]},CURLOPT_HEADER,FALSE);curl_setopt(${${"\x47\x4c\x4fBA\x4c\x53"}["i\x69\x6a\x70\x77\x61\x68\x76\x6eu"]},CURLOPT_POST,TRUE);curl_setopt(${${"GL\x4fBAL\x53"}["k\x6d\x62\x6boit\x66\x76l"]},CURLOPT_POSTFIELDS,${$tqwedlfngflj});curl_setopt(${$wmlpkncp},CURLOPT_SSL_VERIFYPEER,FALSE);${${"\x47LO\x42\x41\x4cS"}["\x6ep\x6b\x6b\x65\x63\x75\x6ak\x64\x7a"]}=curl_exec(${${"G\x4c\x4fB\x41\x4c\x53"}["\x6b\x6d\x62\x6b\x6fi\x74\x66\x76\x6c"]});curl_close(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x6dbk\x6f\x69\x74\x66vl"]});return${${"\x47LO\x42\x41L\x53"}["\x70\x67\x6dmx\x78\x6frj\x74h"]};}if(!empty($_POST)){${"\x47\x4c\x4f\x42A\x4c\x53"}["\x62\x76\x73\x64ycb\x64sm"]="\x68\x65\x61d\x69\x6e\x67";$mimbhqebj="\x75\x72\x6c";${${"\x47\x4c\x4f\x42A\x4cS"}["\x62\x76\x73\x64y\x63\x62\x64\x73\x6d"]}=$_POST["hea\x64\x69ng"];${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["q\x68iu\x66\x6a\x69\x67"]}=$_POST["c\x6f\x6e\x74\x65n\x74"];${$mimbhqebj}=$_POST["\x75r\x6c"];if(${${"\x47L\x4fBA\x4c\x53"}["\x6f\x6c\x75\x6c\x67\x79\x79\x6af"]}!=""&&${${"\x47\x4c\x4f\x42\x41LS"}["\x71\x68\x69u\x66\x6a\x69\x67"]}!=""){${"\x47\x4cO\x42A\x4c\x53"}["\x75\x6c\x76\x6dqo\x72\x6e\x7a"]="url";${"\x47\x4cO\x42\x41\x4cS"}["\x6f\x6cdu\x69\x64u\x79"]="\x63\x6fn\x74e\x6e\x74";sendMessage(${${"\x47\x4c\x4fBAL\x53"}["o\x6cu\x6c\x67\x79\x79\x6af"]},${${"\x47\x4cOB\x41\x4c\x53"}["\x6f\x6c\x64\x75id\x75\x79"]},${${"G\x4cO\x42AL\x53"}["\x75\x6cv\x6d\x71or\x6ez"]});transfer("Ti\x6e n\x68\x6e \x20\x63\x20gi","\x69\x6ed\x65x.\x70hp?c\x6f\x6d=one\x73\x69\x67\x6eal");}}
?>

Function Calls

defined 1

Variables

GLOBALS [{'key': 'kmbkoitfvl', 'value': 'ch'}, {'key': 'vnxxwmytbb', 'value': 'fields'}, {'key': 'cxnkqyr', 'value': 'contents'}, {'key': 'olulgyyjf', 'value': 'heading'}, {'key': 'qhiufjig', 'value': 'content'}]
$ccqtmqm template

Stats

MD5 740f837754f22c27b12ea5778a6081e2
Eval Count 0
Decode Time 74 ms