2013-08-02 49 views
-4

我已經在http://www.phpencode.org/中對我的一個php代碼進行了模糊處理,但忘記取得該文件的備份,現在我需要修改該文件。請幫助我ed-obfuscate。它也有我的許可證檢查,所以我需要使其工作,因爲我修改了我的許可模塊。De-Obfuscate我的PHP代碼

這裏是我的代碼:http://pastebin.com/1bxBpk0Q

[注]如果文件沒有被修改使用膏體的原始版本,此代碼只運行。

+0

更換用'print'自己''eval'。沖洗,重複。 (或者查看所有類似的問題,這裏有自動化的工具..) – mario

+7

在解決這個問題的過程中,你會發現爲什麼混淆是非常不值錢的。 – cdhowie

+0

@mario我在嘗試,但問題是我不能編輯文件,因爲更改字符會阻止所有內容,這種混淆會以這種方式起作用。 –

回答

2

混淆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