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