decoding eval(base64_decode))

th3Meka

Создатель
Регистрация
6 Апр 2014
Сообщения
19
Реакции
1
hello all,

Some problems here for decode eval, don't understand why... Any help will be nice. Check the file in attach. thank you

PHP:
$encoded=file('myFile.txt');

// getString
function getString($a,$b) {
   $c=array(942,324,32,1735);
   $k=gzinflate(base64_decode("KyrNTcosKQYA"));
   $concat=$k[6].$k[1].$k[3].$k[6].$k[5].$k[0];
   $move="$k[5]$k[0]$k[4]$k[2]";
   if($b==72) { $d=$concat($a,$c[0]+$c[1],$c[2]); }
   elseif($b==188) { $d=$concat($a,$c[0],$c[1]); }
   elseif($b==109) { $d=$move($concat($a,$c[0]+$c[1]+$c[2])); }
   return $d;
}

// decodeCode
function decodeCode($a,$b,$c) {
$d=implode($c);
$d=preg_replace("/__halt_compiler.*/","",$d);
if($b==hash("md5","$d")) {
return(gzinflate(base64_decode($a))); }
else { die("md5 Code manipulation detected"); }
}

echo decodeCode(getString($encoded,72), getString($encoded,188));
 
Последнее редактирование:
What are the file contents? The script appears to work for me
 
Назад
Сверху