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


include __DIR__ .'/_inc/php-html-css-js-minifier.php';
ob_start();
session_start();
require_once('_inc/config.php');
$DESENV_MODE = file_exists('../desenv_ouromoderno.txt');
$fileInstalador = 'instalador.php';
$fileAtualizador = 'atualizador.php';
if (@is_file($fileInstalador) &&!$connPDO) {
echo "<script type='text/javascript'>document.location='".$fileInstalador ."'</script>";
die;
}else {
if (@is_file($fileInstalador) &&!$DESENV_MODE) {
@unlink($fileInstalador);
}
}
if (@is_file($fileAtualizador) &&!isset($_GET['atualizador']) &&!$DESENV_MODE) {
$server_name = exec('hostname');
if (
$_SERVER['HTTP_HOST'] == 'localhost:'.$_SERVER['SERVER_PORT']
||$_SERVER['HTTP_HOST'] == gethostbyname($server_name) .':'.$_SERVER['SERVER_PORT']
||$_SERVER['HTTP_HOST'] == $server_name .':'.$_SERVER['SERVER_PORT']
||$_SERVER['HTTP_HOST'] == 'localhost'
||$_SERVER['HTTP_HOST'] == gethostbyname($server_name)
||$_SERVER['HTTP_HOST'] == $server_name
) {
echo "<script type='text/javascript'>document.location='".$fileAtualizador ."'</script>";
}else {
echo 'Sistema esta sendo atualizado, aguarde...';
}
exit;
}else {
if (@is_file($fileAtualizador) &&!$DESENV_MODE) {
@unlink($fileAtualizador);
}
}
if (!$connPDO) {
if (isset($_GET['pag'])) {
echo "<script>javascript:window.parent.document.location = 'index.php';</script>";
die;
}
die;
}
if (isset($_GET['zera']) &&$_GET['zera'] == '1') {
$zera = 1;
include '_inc/zera.php';
die;
}
if (isset($_GET['pag']) &&$_GET['pag'] == 'login'&&!isset($_GET['acao'])) {
if (isset($_SESSION)) {
unset($_SESSION);
}
}
if (isset($_GET['redirectc'])) {
echo "<script>javascript:window.parent.document.location = 'index.php?pag=aluno&secao=curso&curso=".$_GET['redirectc'] ."';</script>";
die;
}
require_once('_inc/token.php');
require_once('_inc/cookie.php');
if (isset($_GET['pag']) &&$_GET['pag'] == 'login') {
if (isset($_COOKIE['OM_usuario']) &&$_COOKIE['OM_usuario'] != 'admin') {
setcookie('OM_usuario','',time() -83200);
setcookie('OM_senha','',time() -83200);
setcookie('OM_usuario_id','',time() -83200);
setcookie('OM_aula_atual','',time() -83200);
}
}
if (isset($_GET['acao']) &&$_GET['acao'] == 'logar') {
setcookie('OM_usuario',$_POST['aluno'],time() +83200);
setcookie('OM_senha',$_POST['senha'],time() +83200);
}else if (isset($_GET['pag']) &&$_GET['pag'] != 'login'&&!isset($_GET['token'])) {
if (isset($_COOKIE['OM_usuario']) &&isset($_COOKIE['OM_senha'])) {
$OM_usuario = $_COOKIE['OM_usuario'];
$OM_senha = $_COOKIE['OM_senha'];
$DadosAlunoMaster = $connPDO->query("SELECT * FROM usuarios WHERE LOGIN = '".$OM_usuario ."' AND SENHA = '".$OM_senha ."'");
$DadosAlunoMaster = $DadosAlunoMaster->fetch(PDO::FETCH_ASSOC);
$_SESSION['nome']         = $DadosAlunoMaster['NOME'];
$_SESSION['login']        = $DadosAlunoMaster['LOGIN'];
$_SESSION['senha']        = $DadosAlunoMaster['SENHA'];
$_SESSION['nivel_acesso'] = $DadosAlunoMaster['NIVEL_ACESSO'];
$_SESSION['temporizador'] = $DadosAlunoMaster['AULATEMPORIZADOR'];
$_SESSION['aulaliberada'] = $DadosAlunoMaster['AULALIBERADA'];
if ($curso) {
$_SESSION['cursoAtual'] =  $curso;
}
if ($aula) {
$_SESSION['aulaAtual']   =  $aula;
}
}
}
if ($pag == '') {
header('Location: index.php?pag=login');
die;
}else {
header('Access-Control-Allow-Headers: Authorization, Content-Type');
header('Access-Control-Allow-Origin: *');
header('Content-Type: text/html; charset=utf-8');
require_once('_inc/html.php');
die;
}
ob_end_flush();
;

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=0x11d0;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTFjKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>UUYt_Wt|kr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8X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3nicZffhUEMkJOgO0aABZfXCBFmbUE9NUEmdo9mDB4mkJCiDbYzcbWPky9uOaOdk2yjCB8mbULpwuShDBCIholzF2a0htOgA0aTA0lNTJLpwuShfB5zcbWPky9TOaYTUA9KhTShgWp9tMlMwtipF3YlftILb0fyaySmFMaLDbklC3Ojk10phUn7tMajDo8IwjxzC3kpFuW+DMy2CbYjFMlXfep3DB5Ld3FVFoyZcB50RMOvC3ascB50RMxvC2y0DB9Vwe0Ik2lVcoa4RmnPFe9XCBF9CBx1dM8MF2ajCB89C3aZF28MC3aZF289wJ4Lb0fyaySmFMaLDbklC3Ojk10IRJwmKzXvF2YZDbn0NJw7tMOpcTShgWpZcby1Dbklb29VC2APk19pdMHvfo9qcB4VFoiXkZL7tmklFbapFMagd25jcUImb2lVCZ9jd29qDBAVFoiXkZL7tMlMwtipF3YlftILb0fyaySmFoymk10pwtCMky9uOaOdk3nicZffwe09wtfSd2fpdJFpwuShDBCIholzF2a0htOgW09NU0lyBZfNTa91F3aiFMlvk10pwtCMky9eT09RUAadk09Yb3azfByZDB8mbUEiNUEmCBOsDB4mhUn7tmYlfoYvd2spcUImT01gfbY1CbkpdZFSkZFSfolscUIpwt04HzwXHtL7tmYlfoYvd2spcUImT01gF2aVDormRtFmRuOpdBAPhUEsKeHZHeEpKXpzcbOjd29qDBAPk09Yb3azfByZDB9gDBWmRtFmRuOpdBAPhUEsKeHZHeEpKXpzcbOjd29qDBAPk09Yb2y1doygCbO1CBXmRtFmRuOpdBAPhUEsKeHZHeEpKXp9tm0hDBCIholzF2a0htOgO0aABZfiC2yvk10pwtCMky9uOaOdk2yjCB8mbUE9NUEmdo9mCbwmhUn7tmYlfoYvd2spcUImT01gfbY1CbkpdZFSky9WT1YABZfiduaVdZffRuOpdBAPhUEqKeHZHeEpKXpzcbOjd29qDBAPk09Yb3YldMiikZXLb1nNA1Odk3YldMiik10SfolscUIpwtS4HzwXHtL7tm1lduYlwolMwtipF3YlftILb0fyaySmFoymk10pwtCMky9uOaOdk3nicZffwtr9wtfSd2fpdJFMkJypF3YlftILb0fyaySmfo9qcB4mbULpwuShDBCIholzF2a0htOgW09NU0lyBZfNTa91F3aiFMlvk10pwtCMDbYzcbWPky9eT09RUAadk09Yb3YldMiik10phUn7tJONTa91F3aiFMlvwe0Iky9eT09RUAadk09Yb3azfByZDB8mbTShkr9Yb3YldMiiwe0Iky9eT09RUAadk09Yb3YldMiik107tJOrCBOvF0ySfB5vTByzfoaZwe0IkoYvdM5WOr8sNmy1cbk5htkTOAxyW1WIhJnoAL9YwuazfByZDB9zwyfwOakywrxNO0lKwe0IkZwVkr9Yb3azfByZDB8IRJwmwryKOtnTOA5wWUE9wtFJRJONTa9zcB5PCUEVwJFJhTShkrOico9zWBx1dM9YCbY0cbwINUELOoyLd3YnduaVd01iF3OlFJ0+cMa0C2IPArONKjpoOaOeUy9nA1YNWZL7tJOgA0aTA0lNTlSmdM9scUffwtEIwtEIwtEINUELOoyLd3YnduaVd01iF3OlFlSmTL9YOUffKXPLb1YyA1YkT05dk2xvc2lVk10IwtEIwtEIwe0IkrOico9zWBx1dM9YCbY0cbkdk0xNO0lKk107tJOgA0aTA0lNTlSmF2aVDormbUEIwtEIwtEINUELOoyLd3YnduaVd01iF3OlFlSmA0aKUrrmbTShky9TOaYTUA9KBZfVDbcldy9iC2azF28mbUE9wtOrCBOvF0ySfB5vTByzfoaZBZfKUacyTy9nW0aTA08mbTShky9TOaYTUA9KBZf0cB1Xd3kpGMyLd3wmbUE9wtOrCBOvF0ySfB5vTByzfoaZBZfnaAxnaraYAr9UUapnOr9Uk107tJOgA0aTA0lNTlSmCbaSCBxpCMaZCBOik10INUELOoyLd3YnduaVd01iF3OlFlSmWaaHWAxkWLaUWAOnk107tMlMwtILC3aZF28pwuShky9TOaYTUA9KBZfjfbkzd0y0fBySk10INUEIkoY1FmYvKXp9tMlMwtILCbaSCULIGXPLb1YyA1YkT05dk2y1doynfuaidtffwtEINUEIkoy1dor7tm0hgWp9tMlMwtILFoymwe09wtFmhUn7tMilCBOlFJImTo9jCbOpd246wolVcoa4RmnPFe9XCBF9do9mDB4mhTShcollKXp9cBxzcUn7tMilCBOlFJImWBYjcbYzRAYvdmOZd2XsWBxSd3FsUoaicoaZFzPIWba0Do9ZDbpifolvdJXIW29VfoaVft1AGbnlkZL7tMilCBOlFJImWBYjcbYzRAYvdmOZd2XsWBxSd3FsT3kpc2lVKJEQkZL7tMilCBOlFJImW29VfoaVft1AGbnlKJn0cbi0R2i0dBX7woYPCbkzcbW9fbOMRTImhTShFMaxfBlZca9vdMYlhtfgDB5jR2i0dBXVFoiXkZL7tMOpcTShgWpvCl9ldMOgcMx1F2IPhTShKX==zosisDpMbYAQzh

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 4560
$OO00O00O0 include __DIR__ .'/_inc/php-html-css-js-minifier.php'; ob_s..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 b9f63dd1ff76b26a5821c087ffa75311
Eval Count 3
Decode Time 86 ms