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\x4c\x4f\x42\x41\x4c\x53"}["\x68\x73\x6e\x67si\x64\x76\x6c\x70\x68"]="\x6d\x6..

Decoded Output download

<?php ${"GLOBALS"}["hsngsidvlph"]="mensagem";${"GLOBALS"}["plkvbrbvd"]="data";${"GLOBALS"}["jwqaovklvlx"]="SQLUPSMS";${"GLOBALS"}["ncorxwpkmge"]="status";${"GLOBALS"}["oulnlr"]="UserLocaSMS";${"GLOBALS"}["snvnmynsed"]="send";${"GLOBALS"}["uecvtrvlvfk"]="destinatario";${"GLOBALS"}["nkfwgxdkgvu"]="SQLDestinatario";${"GLOBALS"}["qdetpqmdpjj"]="row";${"GLOBALS"}["unqwwpgtu"]="SQLSMS";${"GLOBALS"}["eurjpd"]="SQLSMS";${"GLOBALS"}["wubhohmkwt"]="servidor_sms";${"GLOBALS"}["aybsnysjgfcb"]="LocaSMSEnabled";${"GLOBALS"}["flvpgwqisp"]="ClickAtellEnabled";require_once("seguranca.php");require_once("config.php");${"GLOBALS"}["nynhkwhqroxi"]="data";require_once("funcoes.php");$myzhfupvnvk="servidor_sms";${${"GLOBALS"}["nynhkwhqroxi"]}=date("Y-m-d H:i:s");${$myzhfupvnvk}="";$cmlmrpxw="LocaSMSEnabled";if((${${"GLOBALS"}["flvpgwqisp"]}==0)&&(${${"GLOBALS"}["aybsnysjgfcb"]}==1)){${${"GLOBALS"}["wubhohmkwt"]}="locasms";}else if((${${"GLOBALS"}["flvpgwqisp"]}==1)&&(${$cmlmrpxw}==0)){${${"GLOBALS"}["wubhohmkwt"]}="clickatell";}else{${"GLOBALS"}["ekxpomg"]="servidor_sms";${${"GLOBALS"}["ekxpomg"]}="erro";}${${"GLOBALS"}["eurjpd"]}="select * from sms WHERE status = 'Aguardando' ";${${"GLOBALS"}["unqwwpgtu"]}=$conn->prepare(${${"GLOBALS"}["unqwwpgtu"]});$SQLSMS->execute();if(($SQLSMS->rowCount())>0){$ybwklky="row";while(${$ybwklky}=$SQLSMS->fetch()){$srcjaimf="SQLDestinatario";$vubgnnutnzv="SQLDestinatario";${$vubgnnutnzv}="select * from usuario WHERE id_usuario = '".${${"GLOBALS"}["qdetpqmdpjj"]}["id_destinatario"]."' ";${${"GLOBALS"}["nkfwgxdkgvu"]}=$conn->prepare(${$srcjaimf});$SQLDestinatario->execute();${${"GLOBALS"}["uecvtrvlvfk"]}=$SQLDestinatario->fetch();if(${${"GLOBALS"}["wubhohmkwt"]}=="locasms"){$ervxhyeh="destinatario";${"GLOBALS"}["xemeoqv"]="status";$pqhjmahgv="PassLocaSMS";${${"GLOBALS"}["snvnmynsed"]}=enviarLocaSMS(${$ervxhyeh}["celular"],${${"GLOBALS"}["qdetpqmdpjj"]}["mensagem"],${${"GLOBALS"}["oulnlr"]},${$pqhjmahgv});${"GLOBALS"}["jnucnl"]="send";${${"GLOBALS"}["xemeoqv"]}=(String)(strpos(${${"GLOBALS"}["jnucnl"]},"SUCESSO")>0)?true:false;if(${${"GLOBALS"}["ncorxwpkmge"]}=="1"){${"GLOBALS"}["utnwvat"]="row";${"GLOBALS"}["hqryqcl"]="row";${${"GLOBALS"}["jwqaovklvlx"]}="update sms set status='Enviado', hora_envio='".${${"GLOBALS"}["plkvbrbvd"]}."' WHERE id_sms = '".${${"GLOBALS"}["utnwvat"]}["id_sms"]."'  ";${${"GLOBALS"}["jwqaovklvlx"]}=$conn->prepare(${${"GLOBALS"}["jwqaovklvlx"]});$SQLUPSMS->execute();echo"SMS ID ".${${"GLOBALS"}["hqryqcl"]}["id_sms"]." enviado!<br>";}}}}else{echo"Nenhuma SMS Disparado!<br>";}function enviarLocaSMS($destino,$mensagem,$UserLocaSMS,$PassLocaSMS){$rwzeycu="destino";${"GLOBALS"}["vdqdhws"]="send";$hooumeyx="send";${${"GLOBALS"}["vdqdhws"]}=file_get_contents("http://54.173.24.177/shortcode/api.ashx?action=sendsms&lgn=$UserLocaSMS&pwd=$PassLocaSMS&msg=".urlencode(${${"GLOBALS"}["hsngsidvlph"]})."&numbers=".urlencode(${$rwzeycu})." ");return${$hooumeyx};} 
?>

Did this file decode correctly?

Original Code

<?php ${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x68\x73\x6e\x67si\x64\x76\x6c\x70\x68"]="\x6d\x65\x6e\x73\x61\x67e\x6d";${"G\x4c\x4f\x42ALS"}["p\x6ck\x76br\x62v\x64"]="\x64\x61\x74a";${"GL\x4f\x42\x41\x4c\x53"}["\x6a\x77\x71\x61\x6f\x76\x6b\x6cv\x6c\x78"]="S\x51\x4c\x55\x50\x53M\x53";${"\x47\x4c\x4f\x42A\x4cS"}["\x6e\x63\x6f\x72x\x77p\x6b\x6dg\x65"]="st\x61t\x75s";${"\x47\x4cOBAL\x53"}["\x6f\x75\x6cn\x6c\x72"]="U\x73\x65r\x4coc\x61\x53\x4dS";${"\x47\x4c\x4fB\x41LS"}["s\x6evnmyn\x73e\x64"]="\x73\x65\x6e\x64";${"\x47LO\x42A\x4c\x53"}["\x75e\x63vtr\x76\x6c\x76f\x6b"]="\x64\x65sti\x6e\x61\x74\x61r\x69o";${"\x47\x4c\x4f\x42AL\x53"}["\x6e\x6bfw\x67\x78\x64\x6b\x67\x76\x75"]="\x53\x51\x4c\x44\x65\x73\x74\x69\x6e\x61\x74\x61ri\x6f";${"G\x4cOB\x41\x4c\x53"}["\x71\x64\x65\x74p\x71m\x64p\x6aj"]="\x72\x6fw";${"G\x4c\x4f\x42\x41L\x53"}["\x75\x6e\x71\x77\x77pgt\x75"]="\x53\x51\x4c\x53\x4d\x53";${"GLOB\x41\x4c\x53"}["\x65\x75\x72\x6a\x70\x64"]="\x53Q\x4cS\x4d\x53";${"\x47\x4cO\x42A\x4c\x53"}["w\x75\x62\x68\x6fhm\x6bwt"]="\x73\x65rv\x69\x64or\x5fs\x6ds";${"GL\x4f\x42A\x4cS"}["\x61\x79\x62\x73\x6e\x79\x73j\x67f\x63\x62"]="\x4c\x6f\x63\x61\x53\x4d\x53E\x6e\x61bl\x65\x64";${"\x47LO\x42\x41\x4c\x53"}["\x66\x6c\x76p\x67\x77\x71\x69\x73\x70"]="\x43\x6ci\x63\x6b\x41\x74\x65\x6c\x6cE\x6ea\x62\x6c\x65d";require_once("\x73\x65\x67\x75ranca\x2ep\x68\x70");require_once("\x63o\x6e\x66i\x67.\x70\x68p");${"\x47L\x4f\x42\x41\x4cS"}["ny\x6eh\x6b\x77\x68\x71r\x6f\x78i"]="\x64a\x74\x61";require_once("fu\x6ec\x6f\x65\x73\x2eph\x70");$myzhfupvnvk="serv\x69\x64\x6fr\x5fs\x6d\x73";${${"\x47\x4c\x4f\x42\x41LS"}["\x6e\x79\x6e\x68kw\x68\x71\x72\x6f\x78\x69"]}=date("\x59-m-\x64 \x48:i:s");${$myzhfupvnvk}="";$cmlmrpxw="\x4c\x6f\x63\x61S\x4dS\x45\x6eabl\x65\x64";if((${${"GLO\x42\x41\x4cS"}["\x66\x6c\x76\x70g\x77\x71\x69\x73p"]}==0)&&(${${"GL\x4f\x42AL\x53"}["\x61\x79\x62\x73ny\x73\x6a\x67f\x63\x62"]}==1)){${${"\x47\x4c\x4f\x42A\x4c\x53"}["w\x75b\x68\x6f\x68\x6dk\x77\x74"]}="l\x6f\x63as\x6ds";}else if((${${"G\x4c\x4f\x42\x41\x4c\x53"}["f\x6cvpg\x77\x71is\x70"]}==1)&&(${$cmlmrpxw}==0)){${${"\x47L\x4fBA\x4cS"}["\x77\x75\x62\x68\x6f\x68\x6dk\x77\x74"]}="\x63lic\x6bat\x65\x6c\x6c";}else{${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x65\x6bxpom\x67"]="\x73\x65\x72\x76\x69d\x6f\x72_sms";${${"\x47\x4c\x4f\x42A\x4cS"}["\x65\x6b\x78\x70\x6f\x6d\x67"]}="\x65r\x72o";}${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65\x75\x72\x6a\x70\x64"]}="s\x65lect\x20* f\x72o\x6d\x20\x73\x6ds WH\x45R\x45 \x73tatus\x20\x3d\x20\x27A\x67\x75ar\x64a\x6e\x64\x6f\x27 ";${${"GL\x4f\x42\x41LS"}["\x75\x6e\x71\x77\x77\x70\x67\x74u"]}=$conn->prepare(${${"\x47\x4c\x4f\x42A\x4c\x53"}["u\x6e\x71w\x77\x70\x67\x74\x75"]});$SQLSMS->execute();if(($SQLSMS->rowCount())>0){$ybwklky="\x72\x6f\x77";while(${$ybwklky}=$SQLSMS->fetch()){$srcjaimf="\x53\x51\x4c\x44e\x73ti\x6eata\x72\x69\x6f";$vubgnnutnzv="\x53\x51\x4c\x44es\x74\x69\x6eata\x72\x69\x6f";${$vubgnnutnzv}="\x73e\x6c\x65\x63t\x20* \x66\x72o\x6d \x75\x73\x75ari\x6f\x20W\x48ERE \x69\x64\x5fu\x73\x75a\x72\x69o = \x27".${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x64\x65t\x70qm\x64\x70\x6aj"]}["id_\x64\x65sti\x6eatari\x6f"]."\x27 ";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["nk\x66\x77\x67\x78d\x6b\x67\x76\x75"]}=$conn->prepare(${$srcjaimf});$SQLDestinatario->execute();${${"GL\x4f\x42\x41\x4c\x53"}["\x75\x65\x63v\x74r\x76\x6cvf\x6b"]}=$SQLDestinatario->fetch();if(${${"\x47\x4cO\x42\x41\x4cS"}["w\x75\x62\x68\x6fh\x6d\x6bw\x74"]}=="\x6co\x63asms"){$ervxhyeh="\x64\x65\x73\x74in\x61\x74\x61r\x69\x6f";${"\x47L\x4f\x42\x41\x4c\x53"}["\x78\x65m\x65oq\x76"]="\x73\x74\x61\x74\x75\x73";$pqhjmahgv="\x50ass\x4c\x6f\x63\x61SM\x53";${${"GLOB\x41\x4cS"}["\x73\x6e\x76\x6e\x6dyn\x73e\x64"]}=enviarLocaSMS(${$ervxhyeh}["\x63\x65lula\x72"],${${"GL\x4f\x42\x41\x4c\x53"}["\x71de\x74pq\x6d\x64\x70jj"]}["mensag\x65\x6d"],${${"G\x4cO\x42\x41LS"}["\x6fu\x6cn\x6c\x72"]},${$pqhjmahgv});${"\x47\x4c\x4f\x42\x41\x4cS"}["\x6an\x75\x63\x6el"]="sen\x64";${${"G\x4c\x4fBA\x4c\x53"}["\x78em\x65\x6f\x71\x76"]}=(String)(strpos(${${"\x47LOB\x41\x4c\x53"}["\x6a\x6e\x75\x63\x6e\x6c"]},"S\x55\x43E\x53S\x4f")>0)?true:false;if(${${"G\x4cOB\x41L\x53"}["\x6eco\x72\x78\x77pk\x6d\x67\x65"]}=="1"){${"\x47\x4c\x4f\x42\x41\x4c\x53"}["u\x74n\x77\x76\x61\x74"]="r\x6fw";${"\x47\x4c\x4f\x42A\x4c\x53"}["\x68\x71ry\x71c\x6c"]="\x72\x6fw";${${"G\x4cO\x42\x41\x4cS"}["\x6awq\x61o\x76k\x6cv\x6c\x78"]}="update \x73\x6ds s\x65\x74 \x73\x74\x61t\x75\x73\x3d\x27Env\x69\x61\x64\x6f',\x20\x68\x6f\x72a_\x65n\x76io\x3d'".${${"\x47\x4c\x4f\x42\x41L\x53"}["\x70\x6ckv\x62\x72\x62v\x64"]}."\x27 WHE\x52E id\x5f\x73\x6d\x73\x20=\x20\x27".${${"\x47\x4c\x4f\x42\x41LS"}["ut\x6e\x77\x76a\x74"]}["\x69d_s\x6d\x73"]."\x27 \x20";${${"\x47L\x4fB\x41\x4c\x53"}["\x6a\x77q\x61o\x76\x6bl\x76\x6cx"]}=$conn->prepare(${${"\x47LOBAL\x53"}["jw\x71ao\x76k\x6c\x76\x6cx"]});$SQLUPSMS->execute();echo"\x53\x4d\x53 \x49\x44 ".${${"\x47\x4cOB\x41L\x53"}["\x68\x71r\x79q\x63\x6c"]}["\x69\x64_\x73ms"]." env\x69ado\x21<br\x3e";}}}}else{echo"Ne\x6e\x68uma\x20\x53MS\x20D\x69\x73p\x61r\x61\x64\x6f!\x3c\x62\x72>";}function enviarLocaSMS($destino,$mensagem,$UserLocaSMS,$PassLocaSMS){$rwzeycu="\x64e\x73t\x69n\x6f";${"GL\x4fB\x41\x4c\x53"}["\x76\x64q\x64\x68\x77\x73"]="\x73en\x64";$hooumeyx="\x73\x65n\x64";${${"\x47LO\x42\x41\x4c\x53"}["\x76\x64qdhws"]}=file_get_contents("\x68\x74t\x70://5\x34.\x31\x373\x2e\x324.\x3177/\x73\x68or\x74\x63o\x64\x65/\x61\x70i.a\x73\x68\x78?a\x63t\x69on=se\x6ed\x73\x6d\x73&l\x67\x6e=$UserLocaSMS&pw\x64=$PassLocaSMS&\x6d\x73g=".urlencode(${${"\x47LO\x42A\x4c\x53"}["h\x73\x6e\x67si\x64\x76\x6c\x70\x68"]})."\x26n\x75\x6dbe\x72s\x3d".urlencode(${$rwzeycu})."\x20");return${$hooumeyx};}
?>

Function Calls

None

Variables

GLOBALS [{'key': 'hsngsidvlph', 'value': 'mensagem'}, {'key': 'plkvbrbvd', 'value': 'data'}, {'key': 'jwqaovklvlx', 'value': 'SQLUPSMS'}, {'key': 'ncorxwpkmge', 'value': 'status'}, {'key': 'oulnlr', 'value': 'UserLocaSMS'}, {'key': 'snvnmynsed', 'value': 'send'}, {'key': 'uecvtrvlvfk', 'value': 'destinatario'}, {'key': 'nkfwgxdkgvu', 'value': 'SQLDestinatario'}, {'key': 'qdetpqmdpjj', 'value': 'row'}, {'key': 'unqwwpgtu', 'value': 'SQLSMS'}, {'key': 'eurjpd', 'value': 'SQLSMS'}, {'key': 'wubhohmkwt', 'value': 'servidor_sms'}, {'key': 'aybsnysjgfcb', 'value': 'LocaSMSEnabled'}, {'key': 'flvpgwqisp', 'value': 'ClickAtellEnabled'}]

Stats

MD5 6ef2add08f939c6398ca940bb94257b5
Eval Count 0
Decode Time 53 ms