简体   繁体   English

解码wordpress主题php文件

[英]decode wordpress theme php file

Here is the code which is encoded, 是编码的代码,

I tried and paid $4 for weekly plan and get the decoded file but when I paste it in the theme file then it doesn't work. 尝试并支付了$4的每周计划费用,并获得了解码后的文件,但是当我将其粘贴到主题文件中时,它将无法工作。 Looks like it decode but some bugs makes the theme to show white screen of death. 看起来像是解码,但有些错误使主题显示死亡白屏。

I have tried even ioncube_priv8_decoder_v1 to decode and its decoded file also not working with the theme. ioncube_priv8_decoder_v1至尝试过ioncube_priv8_decoder_v1进行解码,并且其解码文件也不适用于主题。 Can some body help please ? 请问有什么身体可以帮助吗?

This one wasn't that difficult...here is some code to get you started: 这并不难...这里有一些代码可以帮助您入门:

<?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);

Next things to do would be load it in an IDE and format it so it's easier to read and properly indented, then if you wish you can start renaming obfuscated variables to something more meaningful; 接下来要做的是将其加载到IDE中并对其进行格式化,以便于阅读和正确缩进,然后,如果您希望可以将混淆的变量重命名为更有意义的变量; but as it stands the decoded output functions just as the encoded one does. 但就目前而言,解码后的输出功能与编码后的功能相同。

Hope that helps & good luck. 希望对您有帮助并祝您好运。

EDIT: Here it is decoded and formatted. 编辑: 在这里它被解码和格式化。 The paste never expires. 粘贴永远不会过期。 I hope you can accept my answer. 我希望你能接受我的回答。

Disclaimer: Their faq states: 免责声明:他们的常见问题陈述:

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. 我们的客户拥有在GNU通用公共许可证下许可的所有WordPress主题的完全自由,可在任何有个人使用限制的网站上使用。

I assume all the themes are GPL licensed and are therefore free from restrictions such as modification or redistribution under the terms of the GNU GPL license. 我认为所有主题都是GPL许可的,因此不受GNU GPL许可条款的限制,例如修改或重新分发。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM