Burp Post、Get数据包转为上传multipart/form-data格式数据包
方法一:
新建一个网页进行上传,代码代码如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$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
"
;
}
echo
"
;
echo
$query
;
mysql_close(
$con
);
}
?>
|