Archive for the PHP Category

registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0

Posted on June 18, 2009 with 2 Comments

On a new Zend Framework project created with Zend Studio, accessing the public folder, git following error

Notice: Zend_Loader::Zend_Loader::registerAutoload is deprecated as of 1.8.0 and will be removed with 2.0.0; use Zend_Loader_Autoloader instead in /usr/local/zend/share/ZendFramework/library/Zend/Loader.php on line 207

This was fixed by editing Initializer.php

Find

require_once "Zend/Loader.php";

Replace with

require_once 'Zend/Loader/Autoloader.php';

Find

Zend_Loader::registerAutoload();

Replace with

$loader = Zend_Loader_Autoloader::getInstance();
$loader->registerNamespace('App_');

Decrypt eval gzinflate base64_decode encryped php script

Posted on May 31, 2009 with No Comments

Today i see a php script, that is encrypted with

eval(gzinflate(base64_decode('JUNK_CODE_HERE')));

I tried to decrypt the script, but it have many levels of recurring gzinflate, base64_decode encryption. If some one runs a script encrypted like this, it take more server resource to do all decryption, must consider ioncube, phpshield or zend encoder for encoding php scripts.

I have written a php script that will decrypt scripts encoded with eval, gzinflate, base64_decode. The script can be modified to decrypt other combination of encryption like str_rot13

http://blog.hostonnet.com/files_hon/decode.phps