Difficulty: medium
When I saw the source code, it restricted the upload type.
So I opened brupSuite
Enabled interception, and then uploaded a webshell:
Copy the code into a txt file, then change the extension to php, and you will have a webshell file.
Here it is intercepted
Change Content-Type to:
image/png
Then allow it, and the upload is successful
Then follow the upload address and enter the link:
http://192.168.1.2/dvwa/hackable/uploads/111.php
It shows a blank screen, indicating successful exploitation
Open AntSword, enter the address, password: pass
Double-click to see the website structure and the files it contains