Php 5.2 zend encoded file error

glblack

Newbie
Joined
Sep 28, 2008
Messages
16
Reaction score
2
Hi mates !

I have decoded a Php 5.2 Zend encoded script with every dezender I've found, but the only one that seems to produce complete and working code is RM 5.1.0 (september 2011)

But still there seems to be some issue.

This is the file code (attached the encoded file):

hxxp://pastebin.com/iz0bBVdy

This is the only decoded file in my script, so there should be something not working on the clear text php code.

The original encoded file gives no problems!

This is the error the file generates:

Warning: include(/var/www/script/modules/reg/adm/1.php) [function.include]: failed to open stream: No such file or directory in /var/www/script/modules/reg/file.php on line 21

Warning: include() [function.include]: Failed opening '/var/www/script/modules/reg/adm/1.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/script/modules/reg/file.php on line 21

... and Apache log shows:
[error] File does not exist: /var/www/script/admin/function.include, referer: hxxp://192.168.1.200/script/admin/modules.php?mod=Reg&f=tree


Basically I think there is a variable that should translate to myfile.php, but like shown above it translate to 1.php and thus the error reported.

Renaming the file to 1.php seems to solve the problem, bud I'd like if someone can look at the code to find the problem or try to decode the attached file to see the resulting code.

I'm not a php programmer, so please help! :D

Thank You
 

Attachments

0 = false
1 = true

"tree" is being cast as a boolean in $f. Try removing (boolean) and see if it works for you.

edit: just fyi, it may or may not create a security issue depending on the rest of the script.
 
You da man! ;)

Removing (boolean) all seems ok and all errors are gone.

I owe you a beer :beer:

Thank You
 
Back
Top