DVWA文件上传中级

一、码中对MIME进行过滤:

if( ( $uploaded_type == "image/jpeg" || $uploaded_type == "image/png" ) &&
        ( $uploaded_size < 100000 ) ) {

        // Can we move the file to the upload folder?
        if( !move_uploaded_file( $_FILES[ 'uploaded' ][ 'tmp_name' ], $target_path ) ) 

二、因此上传图片木马,通过Burp抓包,将文件名称后缀改为.php,上传成功

 

image

 三、通过蚁剑连接。

 

posted @ 2026-01-28 14:58  hopeccie  阅读(5)  评论(0)    收藏  举报