解码 wordpress 主题 php 文件
decode wordpress theme php file
Here是编码后的代码,
我 tried 并支付 </code> 每周计划并获得解码文件,但是当我将它粘贴到主题文件中时它不起作用。看起来它解码了,但一些错误使主题显示死亡白屏。</p>
<p>我什至尝试过 <code>ioncube_priv8_decoder_v1
解码,但它的解码文件也无法使用主题。有人可以帮忙吗?
这个并不难...这里有一些代码可以帮助您入门:
<?php
$code = file_get_contents('/tmp/theme.php'); // read encoded script to string
$code = str_replace(';', ";\n", $code); // break statements onto individual lines
// replace hex encoded " (\x22) with \"
$code = preg_replace_callback('/\\x22/i', function($match) {
return '\"';
}, $code);
// hex decode encoded characters
$code = preg_replace_callback('/\\x([a-fA-F0-9]{2})/i', function($match) {
return chr(hexdec($match[1]));
}, $code);
echo $code; // it's a start!
file_put_contents('/tmp/decoded.php', $code);
接下来要做的是将其加载到 IDE 中并对其进行格式化,使其更易于阅读和正确缩进,然后如果您愿意,可以开始将混淆变量重命名为更有意义的名称;但就目前而言,解码输出功能与编码输出功能一样。
希望对您有所帮助,祝您好运。
编辑:Here 它已被解码和格式化。粘贴永不过期。希望你能采纳我的回答。
免责声明:他们的常见问题解答状态:
Our customers have full liberty to use all our WordPress themes that
are licensed under the GNU general public license on any number of
websites with personal use limitation.
我假定所有主题均已获得 GPL 许可,因此不受 GNU GPL 许可条款下的修改或再分发等限制。
Here是编码后的代码,
我 tried 并支付 </code> 每周计划并获得解码文件,但是当我将它粘贴到主题文件中时它不起作用。看起来它解码了,但一些错误使主题显示死亡白屏。</p>
<p>我什至尝试过 <code>ioncube_priv8_decoder_v1
解码,但它的解码文件也无法使用主题。有人可以帮忙吗?
这个并不难...这里有一些代码可以帮助您入门:
<?php
$code = file_get_contents('/tmp/theme.php'); // read encoded script to string
$code = str_replace(';', ";\n", $code); // break statements onto individual lines
// replace hex encoded " (\x22) with \"
$code = preg_replace_callback('/\\x22/i', function($match) {
return '\"';
}, $code);
// hex decode encoded characters
$code = preg_replace_callback('/\\x([a-fA-F0-9]{2})/i', function($match) {
return chr(hexdec($match[1]));
}, $code);
echo $code; // it's a start!
file_put_contents('/tmp/decoded.php', $code);
接下来要做的是将其加载到 IDE 中并对其进行格式化,使其更易于阅读和正确缩进,然后如果您愿意,可以开始将混淆变量重命名为更有意义的名称;但就目前而言,解码输出功能与编码输出功能一样。
希望对您有所帮助,祝您好运。
编辑:Here 它已被解码和格式化。粘贴永不过期。希望你能采纳我的回答。
免责声明:他们的常见问题解答状态:
Our customers have full liberty to use all our WordPress themes that are licensed under the GNU general public license on any number of websites with personal use limitation.
我假定所有主题均已获得 GPL 许可,因此不受 GNU GPL 许可条款下的修改或再分发等限制。