encounter an encrypted file, use NotepadPP to open it normally, you can see that it is garbled, and then some of the code can be decompressed using: gzinflate.
but there is a problem. Look at the encrypted file in NotepadPP, which is in UTF-8 format, and then write a PHP file that also uses UTF-8 format.
the contents of the file are as follows:
<?php
$txt = file_get_contents("./en.php");
.... ....
$result = gzinflate(substr($t[1], 10, -8));
var_dump($result);
normally, it can be decompressed, but the result always suggests that NULL, is equivalent to saying that the decompression is not successful.
then found that if I am in the encrypted source file, I can extract it directly, but if I can"t extract it after opening the search with other files, it is estimated that it should be a problem of coding or garbled code. I have also tried to use fopen (". / en.php", "rb") to open binary files, but it still doesn"t work. How can I solve this problem?
this is the encrypted part of the code: