开发者

base64_encode an eval();

Is threre a way to encode something like this :

eval("echo 'String';");

with base64_encode, and then to call base64_decode and get the result 开发者_如何学CString without any echo or additional eval functions?


You are asking for base64_decode to execute arbitrary code? That doesn't work. It operates on data, not code, and so whatever you decode has to be a data string. Can't you just encode 'String' directly? Otherwise, you'll have to run eval again to turn data into code: eval(base64_decode($mysterydata));.


eval('die(base64_decode("bla"))');

something like this?

if you want to obfuscate your code have a look at this site: http://demo.dmwtechnologies.com/PHP/PhpObfuscator/index.php


Not with echo in the eval, but how about this?:

echo base64_decode(base64_encode(eval("return 'String';")));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜