Home  >  Article  >  Backend Development  >  How to decrypt php encrypted files

How to decrypt php encrypted files

王林
王林Original
2019-09-27 17:50:437063browse

How to decrypt php encrypted files

PHP encrypted file decryption method

We know that there are two types of PHP code encryption: true encryption and pseudo encryption. True encryption generally requires Run the PHP ext (usually implemented in C) code to load the PHP file for decoding. To decrypt this kind of file, you must compile the source code of the PHP interpreter yourself, and intercept the source code by Hooking the decoding function of the PHP interpreter, which is more troublesome. .

Pseudo encryption is implemented through PHP’s built-in eval function (required and cannot be bypassed).

Process:

Source code -> Encryption processing (compression, replacement, BASE64, escaping) -> Security processing (verify file MD5 value, restrict IP, Limited domain name, limited time, anti-cracking, anti-command line debugging) -> Finished encryption program, to put it simply: source code encryption shell == encryption program.

PHPJiaMi file decoding steps:

1) Download the tool code to the D:\phpjiami directory

2) PHPJiaMi encrypted PHP file (Can be many files) Copy to the D:\phpjiami\encode folder

3) CMD open the console, enter D:, enter D:\phpjiami

 cd D:\phpjiami

4) Run phpjiami .php, the command is as follows:

php phpjiami.php

5) After execution, open the D:\phpjiami\decode directory to obtain the decoded file

Recommended tutorial: PHP video tutorial

The above is the detailed content of How to decrypt php encrypted files. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn