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\x4cOBA\x4c\x53"}["\x6c\x6a\x63\x64\x69\x78\x6a\x79\x68"]="m\x6fd\x75\x6ce";${"\..
Decoded Output download
<?php ${"GLOBALS"}["ljcdixjyh"]="module";${"GLOBALS"}["xpxwpcrcwmeb"]="response";${"GLOBALS"}["whskqm"]="curl";${"GLOBALS"}["miurlq"]="license_code";${"GLOBALS"}["ijvyrschkjcj"]="c_url";${"GLOBALS"}["mqlkvatts"]="file";${"GLOBALS"}["nbdgigfpr"]="rename_file";${"GLOBALS"}["gjkikxcah"]="wehook_label";${"GLOBALS"}["jagyovgrtsmm"]="maxSequence";${"GLOBALS"}["ubpwpcj"]="sequenceResult";${"GLOBALS"}["kritmxrkvj"]="event";class JBWebhook extends CRMEntity{protected$moduleName="JBWebhook";function vtlib_handler($module,$event){$pvlrsag="event";${"GLOBALS"}["emxcybodl"]="event";$zwnwsaef="event";if(${${"GLOBALS"}["kritmxrkvj"]}=="module.postinstall"){$this->addWorkflowAction();$this->moveFileTofolder1();$this->InsertToServer();}elseif(${$pvlrsag}=="module.preuninstall"){}elseif(${${"GLOBALS"}["kritmxrkvj"]}=="module.enabled"){$this->addWorkflowAction();}elseif(${${"GLOBALS"}["emxcybodl"]}=="module.disabled"){$this->deleteWorkflowAction();}elseif(${${"GLOBALS"}["kritmxrkvj"]}=="module.preupdate"){}elseif(${$zwnwsaef}=="module.postupdate"){};}function addWorkflowAction(){${"GLOBALS"}["svnwwb"]="sequence";${"GLOBALS"}["tqrgiofckyn"]="wehook_label";$clktxubt="maxSequence";global$adb;${${"GLOBALS"}["ubpwpcj"]}=$adb->pquery("SELECT MAX(id) as id from com_vtiger_workflow_tasktypes",array());${"GLOBALS"}["qqzuhlpozu"]="sequence";${$clktxubt}=$adb->query_result(${${"GLOBALS"}["ubpwpcj"]},0,"id");${${"GLOBALS"}["svnwwb"]}=${${"GLOBALS"}["jagyovgrtsmm"]}+1;${${"GLOBALS"}["gjkikxcah"]}=vtranslate("JBWebhook","JBWebhook");$adb->pquery(" INSERT INTO com_vtiger_workflow_tasktypes (id,tasktypename,label,classname,classpath,templatepath,modules) VALUES (?,?,?,?,?,?,?) ",array(${${"GLOBALS"}["qqzuhlpozu"]},"JBWebhook",${${"GLOBALS"}["tqrgiofckyn"]},"JBWebhook","modules/com_vtiger_workflow/tasks/JBWebhook.inc","modules/Settings/Workflows/Tasks/JBWebhook.tpl","{"include":[],\"exclude\":[]}"));}function deleteWorkflowAction(){global$adb;$adb->pquery("DELETE FROM com_vtiger_workflow_tasktypes WHERE tasktypename = ? ",array("JBWebhook"));}function moveFileTofolder1(){$csuwyad="file";${$csuwyad}="modules/JBWebhook/JBWebhook.inc";${${"GLOBALS"}["nbdgigfpr"]}="modules/com_vtiger_workflow/tasks/JBWebhook.inc";rename(${${"GLOBALS"}["mqlkvatts"]},${${"GLOBALS"}["nbdgigfpr"]});}function InsertToServer(){$vhfhyfej="site_URL";$tnpqnzhj="license_code";$qpuzkkh="err";global$site_URL;$aiwvtbfvibt="curl";${"GLOBALS"}["fogfxkos"]="response";global$adb;${${"GLOBALS"}["ijvyrschkjcj"]}="https://www.joobilant.com/add_to_server.php";$irmfycv="c_url";${${"GLOBALS"}["miurlq"]}="46T8-zSOp-JrY5-BcGX";$kcpaoqq="curl";${${"GLOBALS"}["whskqm"]}=curl_init();$fysfrmu="curl";curl_setopt_array(${$kcpaoqq},array(CURLOPT_URL=>${$irmfycv},CURLOPT_RETURNTRANSFER=>true,CURLOPT_ENCODING=>"",CURLOPT_MAXREDIRS=>10,CURLOPT_TIMEOUT=>30,CURLOPT_HTTP_VERSION=>CURL_HTTP_VERSION_1_1,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_SSL_VERIFYHOST=>false,CURLOPT_CUSTOMREQUEST=>"POST",CURLOPT_POSTFIELDS=>"ROOT_URL=".${$vhfhyfej}."&plugin_name=JBWebhook&license_code=".${$tnpqnzhj},CURLOPT_HTTPHEADER=>array("cache-control: no-cache",),));${${"GLOBALS"}["xpxwpcrcwmeb"]}=curl_exec(${${"GLOBALS"}["whskqm"]});${$qpuzkkh}=curl_error(${$fysfrmu});curl_close(${$aiwvtbfvibt});if(${${"GLOBALS"}["fogfxkos"]}=="Module_exists"){include_once"vtlib/Vtiger/Module.php";$wlmecklso="module";${${"GLOBALS"}["ljcdixjyh"]}=Vtiger_Module::getInstance("JBWebhook");if(${$wlmecklso})$module->delete();$adb->pquery("DELETE FROM com_vtiger_workflow_tasktypes WHERE tasktypename = ? ",array("JBWebhook"));unlink("modules/com_vtiger_workflow/tasks/JBWebhook.inc");unlink("modules/Settings/Workflows/Tasks/JBWebhook.tpl");}}}
?>
Did this file decode correctly?
Original Code
<?php ${"G\x4cOBA\x4c\x53"}["\x6c\x6a\x63\x64\x69\x78\x6a\x79\x68"]="m\x6fd\x75\x6ce";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x70xw\x70crcwmeb"]="r\x65s\x70\x6fn\x73\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x77\x68\x73k\x71m"]="c\x75\x72l";${"\x47LO\x42\x41L\x53"}["m\x69u\x72lq"]="\x6ci\x63e\x6e\x73\x65\x5f\x63o\x64\x65";${"\x47\x4c\x4f\x42A\x4c\x53"}["i\x6a\x76\x79\x72s\x63\x68\x6bj\x63\x6a"]="c_u\x72\x6c";${"\x47L\x4f\x42\x41\x4cS"}["\x6d\x71\x6c\x6b\x76at\x74s"]="\x66il\x65";${"\x47L\x4f\x42\x41\x4cS"}["n\x62\x64\x67\x69\x67\x66\x70r"]="\x72e\x6eam\x65\x5f\x66ile";${"\x47L\x4f\x42\x41\x4cS"}["\x67\x6ak\x69\x6b\x78\x63a\x68"]="\x77\x65\x68\x6f\x6fk\x5f\x6c\x61\x62\x65\x6c";${"G\x4c\x4f\x42\x41\x4cS"}["\x6a\x61g\x79o\x76\x67\x72\x74\x73\x6d\x6d"]="m\x61xS\x65\x71\x75e\x6e\x63e";${"\x47\x4cO\x42\x41LS"}["u\x62\x70w\x70\x63\x6a"]="\x73\x65\x71uen\x63\x65\x52\x65\x73\x75lt";${"G\x4c\x4f\x42A\x4cS"}["kr\x69\x74mx\x72\x6bv\x6a"]="eve\x6e\x74";class JBWebhook extends CRMEntity{protected$moduleName="\x4aBW\x65b\x68\x6f\x6f\x6b";function vtlib_handler($module,$event){$pvlrsag="\x65ve\x6e\x74";${"GLOB\x41\x4c\x53"}["e\x6dx\x63\x79b\x6fd\x6c"]="ev\x65\x6et";$zwnwsaef="\x65\x76e\x6e\x74";if(${${"\x47L\x4f\x42A\x4cS"}["\x6b\x72it\x6d\x78\x72\x6bv\x6a"]}=="\x6dodul\x65.\x70o\x73ti\x6es\x74a\x6cl"){$this->addWorkflowAction();$this->moveFileTofolder1();$this->InsertToServer();}elseif(${$pvlrsag}=="mo\x64u\x6c\x65.pr\x65\x75nin\x73\x74\x61\x6cl"){}elseif(${${"G\x4cOB\x41L\x53"}["\x6b\x72\x69\x74\x6dx\x72\x6b\x76\x6a"]}=="\x6do\x64\x75l\x65\x2eenable\x64"){$this->addWorkflowAction();}elseif(${${"G\x4c\x4f\x42\x41\x4c\x53"}["\x65m\x78c\x79\x62\x6fdl"]}=="mo\x64u\x6c\x65\x2e\x64is\x61\x62l\x65d"){$this->deleteWorkflowAction();}elseif(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6b\x72\x69\x74m\x78\x72\x6b\x76\x6a"]}=="modu\x6c\x65.\x70re\x75\x70da\x74e"){}elseif(${$zwnwsaef}=="\x6do\x64ul\x65.p\x6f\x73\x74up\x64at\x65"){};}function addWorkflowAction(){${"\x47\x4c\x4fBA\x4c\x53"}["\x73vn\x77\x77b"]="\x73e\x71ue\x6ec\x65";${"GL\x4fB\x41\x4c\x53"}["\x74\x71\x72\x67\x69o\x66c\x6b\x79\x6e"]="\x77e\x68\x6fok\x5fl\x61\x62e\x6c";$clktxubt="max\x53\x65\x71u\x65\x6e\x63\x65";global$adb;${${"G\x4c\x4f\x42\x41\x4cS"}["\x75\x62p\x77\x70cj"]}=$adb->pquery("\x53\x45LE\x43\x54 \x4dA\x58(\x69d)\x20\x61s\x20i\x64 \x66rom \x63\x6fm_vti\x67er\x5fwo\x72k\x66\x6co\x77_t\x61s\x6btyp\x65\x73",array());${"\x47L\x4f\x42A\x4c\x53"}["qq\x7au\x68\x6cp\x6fz\x75"]="s\x65\x71u\x65\x6ec\x65";${$clktxubt}=$adb->query_result(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75\x62\x70w\x70\x63\x6a"]},0,"i\x64");${${"\x47\x4cO\x42\x41\x4c\x53"}["s\x76\x6ew\x77\x62"]}=${${"\x47\x4cOBA\x4cS"}["\x6a\x61\x67\x79o\x76g\x72\x74smm"]}+1;${${"GL\x4f\x42A\x4cS"}["\x67jkikx\x63a\x68"]}=vtranslate("\x4aB\x57e\x62h\x6fo\x6b","JBWeb\x68\x6fok");$adb->pquery("\x20I\x4eSERT \x49NTO com_vtige\x72\x5f\x77\x6f\x72k\x66low_\x74ask\x74\x79\x70\x65\x73\x20(\x69d,\x74\x61s\x6b\x74yp\x65nam\x65,\x6c\x61b\x65l,c\x6ca\x73s\x6ea\x6de,cl\x61\x73sp\x61th,temp\x6c\x61tepath,\x6d\x6f\x64ul\x65s)\x20 V\x41LUE\x53\x20(?,?,?,?,?,?,?) ",array(${${"\x47\x4c\x4f\x42\x41L\x53"}["q\x71\x7a\x75\x68\x6cpo\x7a\x75"]},"\x4a\x42Web\x68\x6fok",${${"\x47\x4c\x4f\x42A\x4cS"}["\x74q\x72\x67\x69\x6f\x66\x63\x6b\x79\x6e"]},"J\x42\x57\x65\x62\x68\x6fok","modu\x6ces/\x63\x6fm_vtig\x65\x72\x5fw\x6frkf\x6co\x77/\x74\x61\x73ks/\x4aBW\x65\x62hoo\x6b\x2e\x69n\x63","m\x6fdu\x6c\x65s/Set\x74i\x6eg\x73/\x57or\x6b\x66\x6c\x6fws/\x54a\x73\x6b\x73/JBW\x65\x62\x68o\x6f\x6b\x2e\x74\x70\x6c","{\x22i\x6e\x63\x6cu\x64e\x22:[],\"e\x78cl\x75\x64\x65\":[]}"));}function deleteWorkflowAction(){global$adb;$adb->pquery("DELET\x45\x20F\x52\x4f\x4d\x20c\x6fm_v\x74\x69\x67\x65r_\x77\x6fr\x6b\x66l\x6f\x77_t\x61s\x6b\x74\x79pe\x73 \x57\x48ERE\x20\x74\x61s\x6b\x74\x79pen\x61me\x20=\x20? ",array("J\x42W\x65\x62ho\x6f\x6b"));}function moveFileTofolder1(){$csuwyad="\x66ile";${$csuwyad}="\x6dodul\x65s/J\x42\x57eb\x68oo\x6b/J\x42We\x62\x68oo\x6b\x2einc";${${"\x47\x4c\x4fB\x41\x4c\x53"}["\x6eb\x64\x67\x69\x67\x66\x70\x72"]}="\x6d\x6f\x64\x75le\x73/c\x6fm_\x76\x74i\x67er_work\x66\x6co\x77/\x74as\x6bs/\x4a\x42\x57e\x62\x68\x6f\x6f\x6b.\x69n\x63";rename(${${"GL\x4f\x42\x41\x4c\x53"}["\x6d\x71\x6c\x6b\x76at\x74\x73"]},${${"\x47\x4cO\x42ALS"}["n\x62\x64g\x69\x67\x66\x70r"]});}function InsertToServer(){$vhfhyfej="\x73\x69t\x65_U\x52\x4c";$tnpqnzhj="\x6c\x69\x63ens\x65_\x63\x6fd\x65";$qpuzkkh="\x65r\x72";global$site_URL;$aiwvtbfvibt="c\x75\x72\x6c";${"\x47L\x4fB\x41\x4c\x53"}["\x66\x6f\x67\x66\x78\x6b\x6f\x73"]="\x72\x65s\x70\x6f\x6e\x73\x65";global$adb;${${"GL\x4f\x42A\x4c\x53"}["\x69jvy\x72s\x63\x68\x6bjc\x6a"]}="h\x74t\x70\x73://w\x77w\x2ejo\x6f\x62\x69l\x61n\x74\x2ec\x6fm/add\x5f\x74o_se\x72v\x65r.ph\x70";$irmfycv="c_\x75\x72\x6c";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6di\x75r\x6c\x71"]}="46\x54\x38-\x7a\x53\x4f\x70-\x4a\x72Y5-\x42cG\x58";$kcpaoqq="\x63\x75rl";${${"\x47\x4cO\x42\x41\x4cS"}["\x77\x68s\x6b\x71\x6d"]}=curl_init();$fysfrmu="c\x75\x72\x6c";curl_setopt_array(${$kcpaoqq},array(CURLOPT_URL=>${$irmfycv},CURLOPT_RETURNTRANSFER=>true,CURLOPT_ENCODING=>"",CURLOPT_MAXREDIRS=>10,CURLOPT_TIMEOUT=>30,CURLOPT_HTTP_VERSION=>CURL_HTTP_VERSION_1_1,CURLOPT_SSL_VERIFYPEER=>false,CURLOPT_SSL_VERIFYHOST=>false,CURLOPT_CUSTOMREQUEST=>"\x50\x4f\x53T",CURLOPT_POSTFIELDS=>"RO\x4fT\x5f\x55RL=".${$vhfhyfej}."&pl\x75\x67i\x6e\x5f\x6ea\x6de=JB\x57e\x62hook&\x6c\x69\x63e\x6e\x73e\x5f\x63\x6fd\x65=".${$tnpqnzhj},CURLOPT_HTTPHEADER=>array("\x63a\x63\x68\x65-\x63\x6fn\x74ro\x6c: no-\x63ac\x68\x65",),));${${"\x47\x4cO\x42A\x4c\x53"}["\x78\x70xw\x70\x63\x72\x63w\x6deb"]}=curl_exec(${${"G\x4cO\x42\x41\x4c\x53"}["\x77hs\x6b\x71\x6d"]});${$qpuzkkh}=curl_error(${$fysfrmu});curl_close(${$aiwvtbfvibt});if(${${"GL\x4f\x42\x41\x4c\x53"}["fo\x67\x66xk\x6fs"]}=="Module\x5fe\x78is\x74s"){include_once"vtlib/Vti\x67e\x72/Mod\x75\x6c\x65.php";$wlmecklso="\x6dodu\x6c\x65";${${"\x47L\x4fBAL\x53"}["lj\x63\x64\x69\x78\x6a\x79h"]}=Vtiger_Module::getInstance("\x4aBW\x65\x62h\x6f\x6fk");if(${$wlmecklso})$module->delete();$adb->pquery("DE\x4cETE F\x52OM \x63om\x5f\x76\x74\x69ger\x5fwo\x72\x6b\x66\x6c\x6fw\x5fta\x73k\x74ype\x73 \x57\x48\x45\x52\x45 t\x61sk\x74y\x70e\x6eame\x20=\x20?\x20",array("\x4a\x42\x57\x65\x62ho\x6fk"));unlink("m\x6fd\x75l\x65s/co\x6d\x5f\x76ti\x67\x65\x72\x5f\x77orkflo\x77/tas\x6bs/\x4aBW\x65\x62\x68o\x6f\x6b\x2einc");unlink("m\x6f\x64ules/\x53\x65t\x74i\x6e\x67\x73/Wo\x72kf\x6cows/Ta\x73k\x73/\x4aBW\x65\x62ho\x6f\x6b\x2et\x70\x6c");}}}
?>
Function Calls
None |
Stats
MD5 | f92c2683d0880f9674905890aa7453eb |
Eval Count | 0 |
Decode Time | 85 ms |