Article : Zend encryption error?
Zend encryption error?
Hi guys,
I am using Zend Guard 5.5 and I'm having an issue with encryption. Zend says "The operation has completed successfully." but I'm getting an issue with the script.
I'm using 000webhost as I know that they support Zend. Also, It is only with this file so far, all others work fine.
So here is the unencrypted script
Code: Select all
@require('license.php');
$key = $license;
$serverip = $_SERVER['SERVER_ADDR'];
$domain = $_SERVER['HTTP_HOST'];
$hostname = str_replace('www.', '', $domain);
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "https://hwid.in/");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
$output=curl_exec($ch);
curl_close($ch);
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, "https://hwid.in/licensing/checking.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'productkey='.$key.'&serverip='.$serverip.'&time='.date("F j, Y, g:i a").'&domain='.$hostname);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
$output=curl_exec($ch);
curl_close($ch);
$verify = explode('',$output);
$verify = explode('',$verify[1]);
$verify = $verify[0];
if($verify == 'Invalid') {
die('Invalid Key or Distributed Script');
}elseif ($verify == 'Banned') {
$verify1 = explode('',$output);
$verify1 = explode('',$verify1[1]);
$verify1 = $verify1[0];
echo 'Your License has been Banned. Contact your Script Seller.';
echo $verify1;
echo $_SERVER['SERVER_ADDR'];
die();
}elseif ($verify == 'Expired') {
echo 'Your Script License has expired. Contact Script Seller to increase the License';
die();
}elseif ($verify == 'TRIAL') {
?>
echo '
This website is running a trial license of the script. This message will be removed when a full license is brought
';
}
?>
This code works flawlessly.
But when I try and use it when It is encrypted I get different errors.
I've tried this with settings for php 5.2 and 5.3
Just this but on different lines usually just 0,82,266,316 ect.
"Fatal error: Unable to read 2116 bytes in /home/a5721607/public_html/testtest/liccheck.php on line 316"
It may be the encoder but It did a regular echo just fine and I did not get any errors online. I've tryed it with no optimization full, different obfuscation types, all with the same result.
Here is the file I got when I encrypted it.http://multiupload.biz/qt4yhpva1ne3/lic ... z.php.html It's a single php source 1 page.
Any ideas on what can be making this happen? Thanks guys.