[英]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 String
without any echo or additional eval functions? 使用base64_encode ,然后调用base64_decode并获取结果String
而没有任何回显或其他eval函数?
You are asking for base64_decode
to execute arbitrary code ? 您是否要求base64_decode
执行任意代码 ? 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? 您不能直接编码'String'
吗? Otherwise, you'll have to run eval
again to turn data into code: eval(base64_decode($mysterydata));
否则,您将不得不再次运行eval
才能将数据转换为代码: eval(base64_decode($mysterydata));
. 。
eval('die(base64_decode("bla"))'); 的eval( '死亡(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 如果您想混淆代码,请访问以下站点: http : //demo.dmwtechnologies.com/PHP/PhpObfuscator/index.php
不是在eval
带有echo
,但是如何呢?:
echo base64_decode(base64_encode(eval("return 'String';")));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.