方法一:
新建一个网页进行上传,代码代码如下:
<html> <head></head> <body> <form method="post" enctype="multipart/form-data"> <input type="text" name="id"> <input type="submit"> </form> </body> </html> <?php $con = mysql_connect("localhost","root","root"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("test", $con); if (isset($_POST['id'])) { $id = $_REQUEST['id']; $query = "SELECT * FROM admin WHERE id = $id "; $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo $row['0'] . " " . $row['1']; echo "<br />"; } echo "<br/>"; echo $query; mysql_close($con); } ?> </html>
方法2:
Burp Post、Get数据包转为上传multipart/form-data格式数据包工具:http://nnz.nz/multipart.php