pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.27k stars 354 forks source link

Does not obfuscate string value #41

Closed nickcartery closed 5 years ago

nickcartery commented 5 years ago

Trying with your demo, after decoding in unphp.net, I still can see "hello", "that's it!".... I used --obfuscate-string-literal, but It does not work :|


<?php
/*--------------------------
    simple test program !
---------------------------*/
$hello      = "hello ";
$world      = "world ";
$what       = "what ";
$a          = "a ";
$beautiful  = "beautiful ";
$day        = "day ";

for($i=0;$i<=7;++$i)        // small loop!
{
    echo $hello;    echo $world;                                echo PHP_EOL;
    echo $what;     echo $a;    echo $beautiful;    echo $day;  echo PHP_EOL;
}
echo "that's it!".PHP_EOL;
?>
pk-fr commented 5 years ago

as you can easily see in the demo, the checkbox to obfuscate string litterals is labeled: "String literals (pseudo obfuscation)" each character is replaced randomly either by it's value, octal value or hex value. unphp (or other progs) can easily go back to string values. it is not the same with the other (not pseudo) obfuscation features...