当前位置:网站首页>File upload question type

File upload question type

2022-06-13 08:17:00 BT youth

subject : Through what you have learned , Test its passing WAF Filter rule , Break through uploading to get webshell, The answer is in the root directory key.php In file .

Upload first 1.php file , Inside the preparation of a sentence Trojan horse :<?php eval($_POST[c]);?>

1、 Get content by grabbing packets , It is found that the upload failed

2、 Bypass uploading by suffix : Failure


3、 Bypass by content header : success ( It may also be shielded eval function , Use system Function or assert() function

Go to the upload path :http://192.168.129.128:82/vulnerabilities/1.phtml

Use the ant sword webshell Connect :http://192.168.129.128:82/vulnerabilities/1.phtml

Get into webshell Background management interface :

Get key.php value ;


Another way :

1、 Upload system() Function to view the file in the current path


2、 View the files in the upper level directory , Find out key.php file


3、 Open the upper level directory key.php file , find key value

原网站

版权声明
本文为[BT youth]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270544578457.html