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 /* base64_encode * Generated by Ampare PHP Encoder php7 php8 */$OOO000000=urldecode(..
Decoded Output download
include_once 'config.php';
include_once 'lib/Database/Connection.php';
$conn = Connection::getConn();
function config($name)
{
global $conn;
$sql = $conn->query("SELECT valor FROM configs WHERE nome='$name'")->fetch();
return $sql['valor'];
}
header('Content-Type: application/json; charset=utf-8');
$servidores = array();
$payloads = array();
$portas = array();
$sql = $conn->query('SELECT Name, TYPE, FLAG, ServerIP, CheckUser, ServerPort, SSLPort, USER, PASS FROM servidores');
while ($row = $sql->fetch(PDO::FETCH_ASSOC)) {
$servidores[] = $row;
}
$sql = $conn->query('SELECT Name, FLAG, Payload, SNI, TlsIP, ProxyIP, ProxyPort, Info FROM payloads');
while ($row = $sql->fetch(PDO::FETCH_ASSOC)) {
$payloads[] = $row;
}
$sql = $conn->query('SELECT Porta FROM portas');
while ($row = $sql->fetch(PDO::FETCH_ASSOC)) {
$portas[] = $row;
}
$dados = array(
'Version'=>config('versao'),
'ReleaseNotes'=>config('notas'),
'Sms'=>config('sms'),
'UrlUpdate'=>config('update'),
'logoonline'=>config('logoonline'),
'fundoonline'=>config('fundoonline'),
'EmailFeedback'=>config('email'),
'UrlContato'=>config('contato'),
'UrlTermos'=>config('termos'),
'CheckUser'=>config('checkuser'),
'Udp'=>$portas,
'Servers'=>$servidores,
'Networks'=>$payloads,
);
$dados = json_encode($dados,JSON_UNESCAPED_UNICODE |JSON_PRETTY_PRINT);
$pronto = str_replace('\','',$dados);
echo $pronto;
if(isset($_GET['download'])){
if(!$_SESSION['login']){
header('location: /');
}
$config = 'config.json';
if(file_exists($config)){
unlink($config);
}
file_put_contents($config,$pronto);
header('Content-disposition: attachment; filename=config.json');
header('Content-type: application/json');
};
Did this file decode correctly?
Original Code
<?php /* base64_encode * Generated by Ampare PHP Encoder php7 php8 */$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=0x8ac;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGMxKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCdnY3JsLzVVWnRZUk8xVjJGQ1hzQUVReTBpYjNXOXFqTXVwemtKb1M0NnhuOGZIYSt2TlBEbWVHTDdoQktkSXdUPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs='));return;?>{hYLSJm\vgEDmpY/IF1lcF1lcF1leDqZYM9SQvWU5kbsu40eIUsEN50ed4Ort4tz7JAmIF1/dvADgvOzt4tzvJAmIF1lgv1/dvRrXFAmdv1lgv1/d6Y/dvADgvAmdv1ruJADgv1/dvADgvOrXFADgvADgv1lgxOrq4iLYfODQQy4XbEJ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