Why is such code in the PHP file? What do you mean

Source: Internet
Author: User
Why is such code in the PHP file? What does it mean? & Lt ;? & Nbsp; $ O00OO0urldecode (% 6E1% 7A % 62% 2F % 6D % 615% 5C % 76% 740% 2D % 6928% 70% 78% 75% 2A6% 6C % 71% 6B % 79% 5F % 72% 64% 679% 73% 77% 6F4% 2B % 6637% 6A ); $ O00O0O $ O00OO0 {why is such code in the PHP file? What does it mean?

$O00OO0=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%6637%6A");$O00O0O=$O00OO0{3}.$O00OO0{6}.$O00OO0{33}.$O00OO0{30};$O0OO00=$O00OO0{33}.$O00OO0{10}.$O00OO0{24}.$O00OO0{10}.$O00OO0{24};$OO0O00=$O0OO00{0}.$O00OO0{18}.$O00OO0{3}.$O0OO00{0}.$O0OO00{1}.$O00OO0{24};$OO0000=$O00OO0{7}.$O00OO0{13};$O00O0O.=$O00OO0{22}.$O00OO0{36}.$O00OO0{29}.$O00OO0{26}.$O00OO0{30}.$O00OO0{32}.$O00OO0{35}.$O00OO0{26}.$O00OO0{30};eval($O00O0O("JE8wTzAwMD0iem5kRkhJZndLbWp1TVRob3BQYlZEWVN0WHNlUk9XWlVBR3ZhcUxjeUJpRWdRQ3hKTmxrclFGSVBaa3N5RVZHdFd1clRMT1lIZ2p6cGJhaFVtQkN4RG5kSmZTS3dpY1JNb3F2bE5lWEFPZzl5SlpETUtWSHZJQmV3Q3pNY2oyOXRZYzV5SlpEY0V1YU1nb0xkamU5UUluUHdJcU1MbXkwRUsySFFLMmVkWWU5UUluUHdJcU1MbXkwRWxaSWVqZTkwSmJVYUNIOUdKbkhHSlEwY0sySGFDQk4wa1pJZWplOTBKYlVhQ3p2M0NCbHNJbmUwWW5Ic1d6djNDQmxzSjJINUkyOXdDWldhSTJIY2IyVWVLMk53SmJpMEpCOXRrbkN3WTIwTUkySGNiMmV0Q1Y5c1lCUHRq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2Nm1hZE5FOVFXMzQxWTd4cFdTQVQ2cm96UHEvZkFoY1Q2WDhTM1VMSW52ZU9HeS9LbnJ5a1owTU9RNE5xR3ZhSkI1QWtucndDQmo5a1ZOUUt3OUdLM1d0ajNOUWtjaXdDQnk5a0ZOMGhCdmVLMnJlQ2JvY2taVTVLbng5a0ZVZWhab2RqM05Ra0c0TnFHdlFqM2xMS1pvTVluUHRDM0hyQzJ4OWtWTHJJVlBRajNsTEtab2NPVkMxWVZOMEpCOXRrWmxlQ0ZsZUsycnNqMjlYQ3pNTGtaYU1ZbjlGSkI1c0NWOXdZejVMWUJJR1kyVWVTRk53al....

I downloaded the source code of the Home Education Network from the internet. all php files contain such things. what does this mean?

Share: More


------ Solution --------------------
This website code does not affect normal use.
You only need to enable the php short Mark function
------ Solution --------------------
Short open tag pick up points
------ Solution --------------------
You can execute the short tag after enabling the short tag. the Source Code is encode, and you can understand it in decode.
------ Solution --------------------
I will tell you how to solve the problem after you paste all the code
------ Solution --------------------
First, you need to understand PHP

Then, start the solution.
You need to understand the meaning of this code:


$O00OO0=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%6637%6A");
$O00O0O=$O00OO0{3}.$O00OO0{6}.$O00OO0{33}.$O00OO0{30};
$O0OO00=$O00OO0{33}.$O00OO0{10}.$O00OO0{24}.$O00OO0{10}.$O00OO0{24};
$OO0O00=$O0OO00{0}.$O00OO0{18}.$O00OO0{3}.$O0OO00{0}.$O0OO00{1}.$O00OO0{24};
$OO0000=$O00OO0{7}.$O00OO0{13};$O00O0O.=$O00OO0{22}.$O00OO0{36}.$O00OO0{29}.$O00OO0{26}.$O00OO0{30}.$O00OO0{32}.$O00OO0{35}.$O00OO0{26}.$O00OO0{30};

print_r($GLOBALS);


The output result is:

/*
......
[O00OO0] => n1zb/ma5\vt0i28-pxuqy*6lrkdg9_ehcswo4+f37j
[O00O0O] => base64_decode
[O0OO00] => strtr
[OO0O00] => substr
[OO0000] => 52
*/



Next, change eval ($ O00O0O to die (base64_decode

Then run the file to see what the output is...

Then I output a bunch of things similar to the source file, but the useful code is at the end, and the final code is the eval part,

Yes:



eval('?>'.$O00O0O($O0OO00($OO0O00($O0O000,$OO0000*2),$OO0O00($O0O000,$OO0000,$OO0000),$OO0O00($O0O000,0,$OO0000))));


Replace the variable with the function:
Note: The previous eval ('?> is removed. '.

base64_decode(strtr(substr($O0O000,52*2),substr($O0O000,52,52),substr($O0O000,0,52)))

Then you see the source code .....


So the method is to change eval to die... and the eval can be solved through continuous running ......


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.