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 /* Ouro Moderno A cpia ou reproduo deste contedo, sem expressa autorizao proibida...

Decoded Output download


session_start();
require_once('_inc/config.php');
require_once('Config.php');
new Config();
$dadosescola = mysql_fetch_array(mysql_query('SELECT * FROM escola'));
$dadoslicenca = mysql_fetch_array(mysql_query('SELECT * FROM licencas'));
$codigodeinstalacao = decryptImg();
if ($codigodeinstalacao) {
}else {
$codigoesconder = substr(str_shuffle(str_repeat('0123456789abcdefghijklmnopqrstuvwxyz',5)),0,5);
$codigodeinstalacao = encryptImg($codigoesconder);
}
$parametros = base64_encode(date('Ymd') .'-'.$dadosescola['CODCLIENTE'] .'-'.$codigodeinstalacao .'-'.$_SERVER['SERVER_NAME']);
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,'https://api.ouromoderno.com.br/licensa/buscar/cliente/'.$parametros);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
$retorno = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Erro na requisio cURL: '.curl_error($ch);
die;
}
curl_close($ch);
$jsondados  = json_decode($retorno);
$retornoa = array();
if (isset($jsondados->{'modulo'})) {
$retornoa['modulo'] = base64_decode($jsondados->{'modulo'});
}
if (isset($jsondados->{'licenca'})) {
$retornoa['licenca'] = base64_decode($jsondados->{'licenca'});
}
if (isset($jsondados->{'validade'})) {
$retornoa['validade'] = base64_decode($jsondados->{'validade'});
}
if (isset($jsondados->{'codigo'})) {
$retornoa['codigo'] = base64_decode($jsondados->{'codigo'});
}
if (isset($jsondados->{'erro'})) {
$retornoa['erro'] = $jsondados->{'erro'};
}
if (isset($_GET['atualizar'])) {
$_SESSION['id'] = 1;
mysql_query('DELETE FROM atualizacao WHERE tipo = 6');
mysql_query('INSERT INTO atualizacao(atualizacao,tipo)values(now(),6);');
require_once('services/LicencaService.php');
$exception = '';
$licencaService = new LicencaService();
if (isset($retornoa['licenca']) &&$retornoa['licenca'] != ''&&$retornoa['licenca'] != $dadoslicenca['LICENCA']) {
$licencaVO = $licencaService->saveLicenca(trim($retornoa['licenca']),$dadosescola['CODCLIENTE'],time());
}
if (isset($retornoa['modulo']) &&$retornoa['modulo'] != ''&&$retornoa['modulo'] != $dadoslicenca['CONTROLE']) {
$licencaService->saveModulo($retornoa['modulo']);
}
}else {
print(json_encode($retornoa));
}
try {
exec("C:\windows\system32\wbem\wmic.exe  cpu get Name",$ProcessorName,$res);
exec("C:\windows\system32\wbem\wmic.exe  MEMORYCHIP get Capacity",$RamMemory,$res);
unset($RamMemory[0]);
$RamMemory = CovertebytesToSize(array_sum($RamMemory));
$pcconfig = $ProcessorName[1] .' '.$RamMemory;
$enviadados = mysql_query('SELECT macaddress,processorID,nomeservidor,caminhofisico,cpuname FROM om_computador ORDER BY id DESC LIMIT 1');
$itens = array();
while (($row = mysql_fetch_array($enviadados))) {
$itens[] = $row;
}
if (count($itens) == 0) {
$itens[] = array('macaddress'=>$dadosescola['ENDERECO_MAC'],'processorID'=>'','nomeservidor'=>'','caminhofisico'=>'','cpuname'=>'');
}
$itens = json_encode($itens);
$itens = base64_encode($itens);
$url = 'https://api.ouromoderno.com.br/cliente/servidor/log/'.$dadosescola['CODCLIENTE'] .'/'.$itens;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
$retorno = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Erro na requisio cURL: '.curl_error($ch);
}
curl_close($ch);
}catch (Exception $e) {
}
;

Did this file decode correctly?

Original Code

<?php /* Ouro Moderno  A cpia ou reproduo deste contedo, sem expressa autorizao  proibida. Fica proibida a  engenharia reversa para desencryptar os dados. */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x11c8;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTFjKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>rftxS{EQkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRt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LcbkVdZ5jd20VCmwvdoljcB5zCU9JfbYjCbwvC2xpcB50cU8mRJOXCbkidBa0FM9zhTShC3aZdy9zcbOvFuWPkoYPRrYaALxNAyOgALaAaakKayknTlYoOawSfuk1cUL7tMY1FMxgF2a0d3n0htOjDtxeaakHT1nAb1YTTy9BOakkOllWOAaURociduYlhTShC3aZdy9zcbOvFuWPkoYPRrYaALxNAyOgA1YHb1cyALloBAiNA1WScMySF2ApKXPLFMa0d3kVdZE9woY1FMxgcbilCZILC2IpKXppcJEPC3aZdy9lFmkVdZILC2IphUn7tMajDo8Ik0aZFM8IdMrIFMaxfBlzDFKmX6YvwoYaALX6wtFVC3aZdy9lFmkvFJILC2IpKXpLDBA7tm0hC3aZdy9jdo9zcUILC2IpKXPLDmYvdMOico9zwtE9wopzd25gcoajd2OlhtOZcbOvFM5vhTShkuklfo9ZdM9iwe0ICbkZCbLPhTShDBCIholzF2a0htOQF29VcoyLd3HsNmSmdB9LfBxvk30phUn7tJOZcbOvFM5vCaSmdB9LfBxvk10INUnJCbYlYjOgcoajd2OlhtOQF29VcoyLd3HsNmSmdB9LfBxvk30pKXp9tMlMwtipF3YlftILDmYvdMOico9zRT57k2xpC2aVC2rmgULpwuShkuklfo9ZdM9iBZfSDBYldMYik10INUnJCbYlYjOgcoajd2OlhtOQF29VcoyLd3HsNmSmdoljcB5jCUf9hTShgWppcJEPDbYzcbWPkopzd25LCBOvFZ0+GZf2CBxpcoyLcUf9hULIGXPLFMa0d3kVd2ydk3cidolLCBOlk10INUnJCbYlYjOgcoajd2OlhtOQF29VcoyLd3HsNmSmfMySDBOicoAmgUL7tm0hDBCIholzF2a0htOQF29VcoyLd3HsNmSmC29LDBfvk30phUn7tJOZcbOvFM5vCaSmC29LDBfvk10INUnJCbYlYjOgcoajd2OlhtOQF29VcoyLd3HsNmSmC29LDBfvk30pKXp9tMlMwtipF3YlftILDmYvdMOico9zRT57k2aZFM8mgULpwuShkuklfo9ZdM9iBZflFmkvk10INUELDmYvdMO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Zdy9zcbOvFuWPkoYPRrYaALxNAyOgA1YHb1cyALloBanyOawScMySF2ApKXpjfbkSb3Ylfo9XftILC2ISW1aUTr9Way9TA0xgaLaUUAccUr9TatxMCBxzcUL7tJOZcbOvFM5vwe0IC3aZdy9lGoajhtOjDtL7tMlMwtijfbkSb2aZFM5vhtOjDtLpwuShcBYPdZEmObkZdZnVCUnZcby1DbYpX6geP28IC1aUTePIkZ5jfbkSb2aZFM9ZhtOjDtL7tm0hC3aZdy9jdo9zcUILC2IpKXp9C2y0C2IIhra4C2aXfolvdJELcULIGXp9tjS=`GHXc{whVxBHxQ|J`

Function Calls

fopen 1
fread 3
strtr 2
fclose 1
urldecode 1
str_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O0O000O00 fgets
$O0O000O0O fgetc
$O0O00OO00 fread
$OO00O0000 4552
$OO00O00O0 session_start(); require_once('_inc/config.php'); require_o..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 ce44d964f9826d650781bb2f4cd796a4
Eval Count 3
Decode Time 99 ms