upload-labs(1-3)

pass-01

The first method:
check the prompt first
insert image description here. Since you use js to check, you only need to disable js at this time. Press F12 and find the settings. Enable and disable js.
insert image description hereThen upload the Trojan horse
insert image description hereto copy the image link and find that the upload is successful
insert image description here. The second method:
You can take the packet capture method. If the packet capture fails, try changing localhost to the local IPv4 address.
After capturing the packet, change the suffix of the uploaded file to php. Then
insert image description heretest the results and the upload is successful.
insert image description here

pass-02

The operation is the same as the second method above, and the upload can be successful.
Of course, there is a second method.
Here, let’s look at the tips first,
insert image description hereBaidu related knowledge:
MIME (Multipurpose Internet Mail Extensions) multipurpose Internet mail extension type. It is a type of way to set a file with a certain extension to be opened with an application. When a file with this extension is accessed, the browser will automatically use the specified application to open it. It is mostly used to specify some client-defined file names and some media file opening methods.
Here we bypass the whitelist, start capturing packets, and modify its MIME type here
(for more information about MIME types, please refer to: https://baike.baidu.com/item/MIME/2900607)
insert image description hereThe upload is successful
insert image description here

pass-03

Here, first modify the httpd.conf in Apache, as shown in the figure below, add .php5 in line 403, and delete '#', restart apache after modification, and upload the
![![Insert picture description here](https://img-blog.csdnimg.cn/17d5f85857424f91bb224cad95de612e.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA55Gf55Gf5Y-RZG9155qE 5bCP5oCq, size_20, color_FFFFFF, t_70 ,g_se,x_1](https://img-blog.csdnimg.cn/5e8d03c22b7c4a5488c6be74f5677efe.png?x-oss-process=image/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA55Gf55Gf5Y-RZG9155q E5bCP5oCq, size_20, color_FFFFFF, t_70, g_se, x_php5 file
insert image description heresuccessfully
insert image description here

Guess you like

Origin blog.csdn.net/m0_51295934/article/details/122840849