BugkuCTF file upload test

foreword

After writing the web questions for so long, it is considered to have finished all the basic parts of it. The next few days will continue to update the solutions of the BugkuCTF WEB part. In order not to affect the reading, the solutions of each question are in the form of a separate article. Published, thank you for your continued support and understanding, and encouragement~~~

Click on the link to see, is to upload a php file

Let's construct a 1.php file and upload it and try it out

To display non-image files, let's construct a 1.jpg file and try it out

Prompt non-php file, the file we will finally submit is a PHP file, we need to grab this data packet, change the packet and send it to the server

So we upload a 1.jpg file, use BP to capture the package, send it to the repeater, change the file name to 1.php, Go, and the Flag will explode! ! !

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325277141&siteId=291194637