A new breakthrough in website decompression and uploading

Source: Internet
Author: User

It was originally a website, linux + php + Sybaser. After uploading to the background, I tried every means to upload images normally. However, there is another way to upload images on the website. See figure 1.
 

 
However, after you put c.php in a compressed package, you will be automatically converted to c.php.txt. Now we can use the rar feature. Under normal circumstances, we cannot change c. php to "c. php." Under win, but we can change the name in the compressed package. See figure 2
 
 
After the name is changed, the php program on the site is automatically decompressed to c. php.
 
The significance of this method is that, if this method is used for upload, the last vertex will be automatically removed under win, thus bypassing system filtering. However, this website is linux, so I do not know whether it is a system decompression problem or a php decompression program problem.
 
This method is similar to packet capture and uploading. Add a file suffix to the data in the package. However, this method does not work on this website, because it is a linux system, linux can treat "c. php." As a qualified file name.
 
As for this type of upload and decompress sites, I wonder if I can prevent such files from being suffixed In the zip package? Whether it is a system problem or a decompression program problem, I will not go into details, it is the webshell that has successfully uploaded.
 
Author: www.91ri.org

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.