Burp Post、Get数据包转为上传multipart/form-data格式数据包

 方法一:

新建一个网页进行上传,代码代码如下:

<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

上一篇:php后台开发(二)Laravel框架


下一篇:linux下c++程序扔在后台运行,如何避免断开ssh会话,程序也关闭