PDA

View Full Version : Manipulation with Zend-encoded files


xariton
08-20-2005, 08:19 AM
You can't decode zend files but you can make some changes with this.
e.g. you have index.php - encoded file.
1. rename it to sindex.php
2. make your own index.php with
<?
include("sindex.php");
?>
3. Now you can add some code like
<?
session_name("your_session_name"); #To change session name

# Here you can change some variables etc.

include("sindex.php");

print_r (get_defined_vars()); #Now you can see ALL vars from encoded file

$arr = get_defined_functions();
print_r($arr["user"]); #You can see all functions in encoded file

?>

With get_defined_functions() you can see what functions exist in encoded-file and maybe you can put your function (with the same name) before include("sindex.php"); and do something with PHP error to refrain from repetition of same-named-functions.
Think by your self what you can do with that ;)

Yahook
08-20-2005, 10:25 AM
Thanks xariton for usefull info :thankyou: