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 /* Este arquivo protegido pela lei de direitos autorais e fornecido sob licena. A e..

Decoded Output download


require 'conf/conf.php';
mysqli_set_charset($conn,"utf8");
$result = "SELECT eg.id, eg.name as titulo, eg.ch_id, eg.time, eg.time_to, eg.duration, eg.descr, eg.real_id, eg.category, eg.director, eg.actor, it.id, it.name, it.logo, it.xmltv_id "
."FROM epg eg "
."INNER JOIN  itv it "
."ON it.id = eg.ch_id ";
$results = mysqli_query($conn,$result);
$xmltv = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><tv generator-info-name="CDN"></tv>');
$channels = [];
while ($dados = mysqli_fetch_assoc($results)) {
$channel_id = $dados['xmltv_id'];
if (!isset($channels[$channel_id])) {
$channel = $xmltv->addChild('channel');
$channel->addAttribute('id',$channel_id);
$display_name = $channel->addChild('display-name',htmlspecialchars($dados['name']));
$icon = $channel->addChild('icon');
$server = $_SERVER['HTTP_HOST'];
$icon->addAttribute('src','http://'.$server .'/portal/misc/logos/320/'.$dados['logo']);
$channels[$channel_id] = $channel;
}
$start = date('YmdHis O',strtotime($dados['time']));
$stop = date('YmdHis O',strtotime($dados['time_to']));
$programme = $xmltv->addChild('programme');
$programme->addAttribute('start',$start);
$programme->addAttribute('stop',$stop);
$programme->addAttribute('start_timestamp',strtotime($dados['time']));
$programme->addAttribute('stop_timestamp',strtotime($dados['time_to']));
$programme->addAttribute('channel',$dados['xmltv_id']);
$title = $programme->addChild('title',htmlspecialchars($dados['titulo']));
$desc = $programme->addChild('desc',htmlentities($dados['descr'],ENT_XML1,'UTF-8'));
}
header('Content-type: application/xml');
header('Content-Disposition: attachment; filename="epg.xml"');
echo $xmltv->asXML();
mysqli_close($conn);
;echo '
';;

Did this file decode correctly?

Original Code

<?php /* Este arquivo  protegido pela lei de direitos autorais e fornecido sob licena. A engenharia reversa deste arquivo  estritamente proibida. */$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=0x8e8;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NTA4KTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdFbnRlcnlvdXdraFJIWUtOV09VVEFhQmJDY0RkRmZHZ0lpSmpMbE1tUHBRcVNzVnZYeFp6MDEyMzQ1Njc4OSsvPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>Ixekr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLT09NHeEXHr8XhtONT08XHeEXHr8Pkr8XTzEXT08XHtILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAs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ZxPfo1ScB50DbOpcbHPkoOico9zBZfLcbYjFJffRraKay9CTAXxRtfaarCsKtFphTShgWpPcByLcbwPk0YvdmOldmWsfulXcTPICbnXdoljCbOpd24vGo1SkZL7tMilCBOlFJImW29VfoaVft1rDbYXd3YpfolvdjPICbO0CBYPdBaVfeSIcMlScB5idBA9wMaXcZ54dBXJkZL7tMajDo8IkuisduO2RT5iF1iYTtIpKXpsGbYxdolgC2xvF2APkoYvdM4pKXP7cBYPdZEmeWPmKzS=_]TK|VuE{SMIJ\

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 2280
$OO00O00O0 require 'conf/conf.php'; mysqli_set_charset($conn,"utf8"); ..
$OOO000000 fg6sbehpra4co_tnd
$OOO00000O strtr
$OOO0000O0 base64_decode
$OOO000O00 fopen
$OOO0O0O00 index.php

Stats

MD5 e615dc73a572b61bc2d0016e12d60cf7
Eval Count 3
Decode Time 126 ms