Php decrypts eval (gzinflate (str_rot13 (base64_decode

Source: Internet
Author: User

From hacker notes

In this way, the encryption author is very rogue and abnormal, because it is easy to know such encryption and cracking, but it is still abnormal to encrypt the code countless times.

I wrote the following two PHP files:

// B. PHP

<? Php
$Str=file_get_contents(2.txt );
While (preg_match ("/eval (gzinflate (str_rot13 (base64_decode ([^] *)/", $ str, $ match )){
$Fpw.fopen(1.txt, w );
Fputs ($ fp, $ match [1]);
Fclose ($ fp );
System (php a. php );
$Str=file_get_contents(2.txt );
}
?>


// A. PHP

<? Php
$Str=file_get_contents(1.txt );
$ Str = base64_decode ($ str );
$ Str = str_rot13 ($ str );
$ Str = gzinflate ($ str );
$Fpw.fopen(2.txt, w );
Fputs ($ fp, $ str );
Fclose ($ fp );
?>
Save your code as 2.txtand run the following command in CMD:
Php B. PHP
After a while, the program is executed. 2. TXT is the decrypted code.

 

Related Article

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.