[Reprinted] Micro-shield PHP script encryption and decryption algorithm

Source: Internet
Author: User
Micro-shield PHP encryption expert (PHPCodeLock) is an excellent PHP script encryption software, the server does not need to install any third-party components, encrypted files can run in any common PHP

Micro-shield PHP encryption expert (PHPCodeLock) is an excellent PHP script encryption software, the server does not need to install any third-party components, encrypted files can run in any common PHP
Environment.
This software is 100% free, 100% no plug-in software, no additional charges.





Decryption algorithm:





$ Filename = "install. php"; // file to be decrypted
$ Lines = file ($ filename); // 0, 1, 2 rows

// The first base64 decryption
$ Content = "";
If (preg_match ("/o0o1_o0 ('. *')/", $ lines [1], $ y ))
{
$ Content = str_replace ("o0o1_o0 ('", "", $ y [0]);
$ Content = str_replace ("')", "", $ content );
$ Content = base64_decode ($ content );
}
// Search for the key in the content after the first base64 decryption
$ Decode_key = "";
If (preg_match ("/), '. *',/", $ content, $ k ))
{
$ Decode_key = str_replace ("), '", "", $ k [0]);
$ Decode_key = str_replace ("',", "", $ decode_key );
}
// Intercept the encrypted ciphertext of the file
$ Secret = substr ($ lines [2], 380 );
// Echo $ Secret;

// Directly restores the ciphertext output
Echo" ";

?>


Exercise example:

$ OOO0O0O00 =__ FILE __; $ OOO000000 = urldecode ('th6sbehqla4co _ sadfpnr '); $ OO00O0000 = 628; $ ooo1_o0 = $ OOO000000 {4 }. $ OOO000000 {9 }. $ OOO000000 {3 }. $ ooo=00 {5}; $ ooo=o0. = $ OOO000000 {2 }. $ OOO000000 {10 }. $ OOO000000 {13 }. $ OOO000000 {16}; $ ooo=o0. = $ ooo=o0 {3 }. $ OOO000000 {11 }. $ OOO000000 {12 }. $ ooo=o0 {7 }. $ ooo1_00 {5}; $ o0o1_o0 = 'ooo=o0'; eval_r ($ o0o1_o0 ('prop Bytes Response = '); return;?>
Examples/examples/hgWCIv5 + examples/hy5P3nEO9j2C3uJ/examples/LxWCdPeAaHA/examples/hnJ/In6/examples/ zg2QJTlmtw =

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.