【问题标题】:De-Obfuscate PHP Code of mine去混淆我的 PHP 代码
【发布时间】:2013-08-02 23:28:50
【问题描述】:

我在http://www.phpencode.org/ 混淆了我的一个php 代码,但忘记备份那个文件,现在我需要修改那个文件。请帮助我进行混淆处理。它也有我的许可检查,所以我需要在我修改了我的许可模块时让它工作。

这是我的代码:http://pastebin.com/1bxBpk0Q

[注意] 此代码仅在文件未修改时运行,使用原始版本的粘贴。

【问题讨论】:

  • 您自己将eval 替换为print。冲洗,重复。 (或者查看所有类似的问题,有自动化工具可以解决这个问题..)
  • 在解决这个问题的过程中你会发现为什么混淆几乎毫无价值。
  • @mario 我正在尝试,但问题是我无法编辑文件,因为更改字符会停止一切,这种混淆以这种方式工作。
  • 哦,是的..我明白了..这太容易了...谢谢!你是对的@cdhowie,“混淆几乎毫无价值”

标签: php deobfuscation


【解决方案1】:

混淆 PHP 代码。当然是一文不值。

这是一个解密器:http://decode-phpencode.eu.pn/

这里是源代码:

<?php

/* This program is released under the MIT license http://opensource.org/licenses/MIT */

# stripslashes may be needed on servers that uses magicquotes
$file = stripslashes($_POST['file']);
# This decodes the first eval string
$first_eval_string = base64_decode(preg_replace("/.*eval\(base64_decode\(\"([^\"]+)\".*/", "$1", $file));
# That contains an array with byte positions inside the encryted string
$array = preg_split("/,/", preg_replace("/.*array\(([\d,]+).*/", "$1", $first_eval_string));
# The area where the code begins we get it just by summing the numbers in the array
$begin = array_sum($array);
# We get the content from that area and decrypted. That's it.
echo "<?php\n";
echo gzinflate(
    base64_decode(
        trim(
            substr($file,$begin)
        )
    )
);

谷歌搜索“phpencode.org 解码器”的第一个结果是另一个解码器:http://lombokcyber.com/detools/welcome/cdecodezeura1

【讨论】:

    猜你喜欢
    • 2017-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-20
    • 1970-01-01
    • 1970-01-01
    • 2023-04-08
    • 2016-05-14
    相关资源
    最近更新 更多