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 // Chane Base64 fournie $base64_code = 'JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMD..
Decoded Output download
Code dcod:
b"$O000O0O00=$OOO000O00($OOO0O0O00,'rb');$O0O00OO00($O000O0O00,0x4d3);$OO00O00O0=$OOO0000O0($OOO00000O($O0O00OO00($O000O0O00,0x17c),'0FVsOIDpKy7JMw12kz6quec4EmY5vdCfhBxtQNi8/9GWSUaTj3+XlAbHrLRPgnoZ=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));eval($OO00O00O0);"
Contenu lu (1):
<?php
Contenu lu (2):
// Chane Base64 fournie
Contenu traduit:
b'oo egu9V huDVSX f+U49mV
'
Did this file decode correctly?
Original Code
<?php
// Chane Base64 fournie
$base64_code = 'JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NGQzKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxN2MpLCcwRlZzT0lEcEt5N0pNdzEya3o2cXVlYzRFbVk1dmRDZmhCeHRRTmk4LzlHV1NVYVRqMytYbEFiSHJMUlBnbm9aPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky8nKSk7ZXZhbCgkT08wME8wME8wKTs=';
// Dcoder la chane Base64
$decoded_code = base64_decode($base64_code);
// Afficher le code dcod pour l'analyser
echo "Code dcod:\n";
echo $decoded_code;
echo "\n\n";
// Dfinir la chane initiale
$OOO000000 = urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64'); // fg6sbehpra4co_tnd
// Reconstituer les fonctions et variables manquantes
$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];
$OOO0000O0 = 'base64_decode';
$OOO000O00 = $OOO000000[0] . $OOO000000[12] . $OOO000000[7] . $OOO000000[5] . $OOO000000[15]; // 'fopen'
$O0O000O00 = $OOO000000[0] . $OOO000000[1] . $OOO000000[5] . $OOO000000[14]; // 'file'
$O0O000O0O = $O0O000O00 . $OOO000000[11]; // 'fileg'
$O0O000O00 = $O0O000O00 . $OOO000000[3]; // 'fileg6'
$O0O00OO00 = $OOO000000[0] . $OOO000000[8] . $OOO000000[5] . $OOO000000[9] . $OOO000000[16]; // 'fgets'
$OOO00000O = $OOO000000[3] . $OOO000000[14] . $OOO000000[8] . $OOO000000[14] . $OOO000000[8]; // 'g4sgo'
$OOO0O0O00 = __FILE__;
$OO00O0000 = 0x1f24;
// Variables de base64 dcod
$O000O0O00 = fopen($OOO0O0O00, 'rb');
// Lire le contenu du fichier et afficher les rsultats intermdiaires
$content_1 = fgets($O000O0O00, 0x4d3);
echo "Contenu lu (1):\n";
echo $content_1;
echo "\n\n";
$content_2 = fgets($O000O0O00, 0x17c);
echo "Contenu lu (2):\n";
echo $content_2;
echo "\n\n";
$trans_content = strtr($content_2, '0FVsOIDpKy7JMw12kz6quec4EmY5vdCfhBxtQNi8/9GWSUaTj3+XlAbHrLRPgnoZ=', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/');
echo "Contenu traduit:\n";
echo $trans_content;
echo "\n\n";
$OO00O00O0 = base64_decode($trans_content);
echo "Code Base64 dcod:\n";
echo $OO00O00O0;
echo "\n\n";
// Excuter le code dcod
eval($OO00O00O0);
?>
Function Calls
fgets | 2 |
fopen | 1 |
strtr | 1 |
urldecode | 1 |
base64_decode | 2 |
Stats
MD5 | 1f92dc952db3e9918286d7745545dcb5 |
Eval Count | 0 |
Decode Time | 104 ms |