After two days of trying install microcode finally I did it:))))))
I made this on RedHat 7.1, Apache 1.3.24 and PHP 4.2.0 (I couldn't do this on older php version 4.0.6, 4.1.2)
I got microcode.so library :)) with my own keys and was very happy but... I want if it works.
I made easy file test.php:
-------------
<?
$sth = 'hello';
echo $sth;
?>
-------------
and trying few things
1. made test1.php and test2.php:
a) purify test.php test1.php
b) encoder test1.php test2.php
2. made test3.php and test4.php:
a) encoder test.php test3.php
b) purify test3.php test4.php
New php file (show.php):
<?
dl("./microcode.so");
databay_microcode_include("./test*.php");
?> // * - 1,2,3,4 - all test*.php files
But "show.php" file dosen't work :(( None of these test*.php files works:((
I always see only "Checksum error!" error....
What I did wrong? What is going wrong?
How finnaly files must be encode?
I must give up without your help.
--------------------
Thanks a lot for answer
Piotr D.
p.s.
I'm very glad for this Microcode tool:)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
do you use the hardcoded keys or the keyfiles?
Which crypto algorithms did you try?
You wrote that you tried test{1..4}.php files.
with "databay_microcode_include()" .
Of course test1.php will definitely NOT work, as it is just a PHP script - all HTML parts converted to valid PHP source.
test2.php is the one that works.
Same for test3 and test4 : purifying the encoded file doesn't make sense, as the purify tool just parses PHP and HTML files to convert the file into pure PHP, so
_FIRST_ purify _THEN_ encoder.
additionally we definitely recommend using <?PHP ?> tags instead of the <? ?> ones, although <? ?> should be parsed correctly by purify anyway...
Please double check that the file you encode does _NOT_ contain any <?PHP ?> tags and that it is plain PHP source.
Please try to encode a file containing just
$sth="hello";
echo $sth;
NO opening or closing PHP tags!!
That file can be encoded directly using "encoder test.php test.enc 20"
Regards
Karsten Richter (krichter@databay.de)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1. I have microcode.so in wrong php_extensions path. Now is Ok and I see in phpinfo() note about microcode:
Databay AG Encryption Support enabled
Copyright Notice (C) 2001-2002 by Databay AG
Version V 0.96
Directive | Local Value | Master Value
enable_keyfile | 0 | 0
keyfile | /etc/microcode/default.key | /etc/microcode/default.key
2. Before your answer I didn't exactly know how these encoding and puryfing works (cutting phptags etc.) - now I know - I made all files again and I have no "Checksum error!" but:
brrrrr - sorry that I so gruesome
At file with databay_microcode_include(...) I see nothing - server gives me 503 error:
503 Service Unavailable
16:41:03 ERROR 503: Service Unavailable.
Other, pure files works ok... but this one with result of purify_encode work strange... server is going crazy...
I uppreciate your work - before I wrote here again I was trying these microcode tool on two servers - RedHat and Debian on PHP 4.2.0
and Apache 1.3.24. Anywhere the same things.
I use hardcoded keys. I tried all algorithms.
Once again Thanks For Your GOOD work
and thanks for future prompt (answer)
Regards
Piotr D.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After two days of trying install microcode finally I did it:))))))
I made this on RedHat 7.1, Apache 1.3.24 and PHP 4.2.0 (I couldn't do this on older php version 4.0.6, 4.1.2)
I got microcode.so library :)) with my own keys and was very happy but... I want if it works.
I made easy file test.php:
-------------
<?
$sth = 'hello';
echo $sth;
?>
-------------
and trying few things
1. made test1.php and test2.php:
a) purify test.php test1.php
b) encoder test1.php test2.php
2. made test3.php and test4.php:
a) encoder test.php test3.php
b) purify test3.php test4.php
New php file (show.php):
<?
dl("./microcode.so");
databay_microcode_include("./test*.php");
?> // * - 1,2,3,4 - all test*.php files
But "show.php" file dosen't work :(( None of these test*.php files works:((
I always see only "Checksum error!" error....
What I did wrong? What is going wrong?
How finnaly files must be encode?
I must give up without your help.
--------------------
Thanks a lot for answer
Piotr D.
p.s.
I'm very glad for this Microcode tool:)
Hi,
do you use the hardcoded keys or the keyfiles?
Which crypto algorithms did you try?
You wrote that you tried test{1..4}.php files.
with "databay_microcode_include()" .
Of course test1.php will definitely NOT work, as it is just a PHP script - all HTML parts converted to valid PHP source.
test2.php is the one that works.
Same for test3 and test4 : purifying the encoded file doesn't make sense, as the purify tool just parses PHP and HTML files to convert the file into pure PHP, so
_FIRST_ purify _THEN_ encoder.
additionally we definitely recommend using <?PHP ?> tags instead of the <? ?> ones, although <? ?> should be parsed correctly by purify anyway...
Please double check that the file you encode does _NOT_ contain any <?PHP ?> tags and that it is plain PHP source.
Please try to encode a file containing just
$sth="hello";
echo $sth;
NO opening or closing PHP tags!!
That file can be encoded directly using "encoder test.php test.enc 20"
Regards
Karsten Richter (krichter@databay.de)
I know what I was doing wrong...
1. I have microcode.so in wrong php_extensions path. Now is Ok and I see in phpinfo() note about microcode:
Databay AG Encryption Support enabled
Copyright Notice (C) 2001-2002 by Databay AG
Version V 0.96
Directive | Local Value | Master Value
enable_keyfile | 0 | 0
keyfile | /etc/microcode/default.key | /etc/microcode/default.key
2. Before your answer I didn't exactly know how these encoding and puryfing works (cutting phptags etc.) - now I know - I made all files again and I have no "Checksum error!" but:
brrrrr - sorry that I so gruesome
At file with databay_microcode_include(...) I see nothing - server gives me 503 error:
503 Service Unavailable
16:41:03 ERROR 503: Service Unavailable.
Other, pure files works ok... but this one with result of purify_encode work strange... server is going crazy...
I uppreciate your work - before I wrote here again I was trying these microcode tool on two servers - RedHat and Debian on PHP 4.2.0
and Apache 1.3.24. Anywhere the same things.
I use hardcoded keys. I tried all algorithms.
Once again Thanks For Your GOOD work
and thanks for future prompt (answer)
Regards
Piotr D.