Hello, anyone know how in php i can decode "loop" which is base64ed or gzinflated etc ... Sample: http://www.unphp.net/ http://ddecode.com/phpdecoder/ Thanks.
Use a base64 decoder there are many sites wich are free on the internet http://www.tareeinternet.com/scripts/decrypt.php
That wont help, i said with "loop" or "iteration", what if script is encoded 100x, i dont want to do it manually
Just adjust the $contents variable to your need. also if it's just a base64 decode, adjust the preg_match echo "1. Reading coded.txt\n"; $contents = "eval(gzinflate(base64_decode('FZzFcuRaFkU/p98LDcQUPRIzsyYdYlaKIb++01OHnXD')));"; echo "2. Decoding\n"; $i=0; while (preg_match("/eval\(gzinflate/",$contents)) { $contents=preg_replace("/<\?|\?>/", "", $contents); eval(preg_replace("/eval/", "\$contents=", $contents)); echo $i++,'<br>'; } echo "3. Writing decoded.txt\n"; $fp2 = fopen("decoded.txt","w"); fwrite($fp2, trim($contents)); fclose($fp2); PHP: