Sometimes I get requests to make changes on an IonCube protected script, but the protection prevents us, to do this.
In some cases we can make smaller changes with and easy solution.
Firts we have to make a wrapper for the protected PHP, what contains the include for that.
Example;
The name of the protected PHP is PROTECTED.PHP.
We have to make a wrapper what includes the original file, but before we use the include, we have to turn on the output buffering, so the server wont send the output to the browser immediately, only when reached the end of the script, or when we force this.
ob_start(); // Turn on the output buffering
include “PROTECTED.PHP”; // include the IonCube protected script
$output=ob_get_clean(); // read the HTML output to a string variable and clear the contents of the buffer
$new_output=str_replace(“old text”,”new text”,$output); // change the content of the HTML output
echo $new_output; // send out the changed string into the buffer
ob_end_flush(); // send the buffer content out to the browser, and turn off the output buffering.
On this way, you can easily make smaller changes on the output of a protected script.



















