mysql注入漏洞测试网页
<html>
<head>
<title>mysql注入漏洞测试</title>
</head>
<body>
<?php
$mysql_server_name='localhost';
$mysql_username='root';
$mysql_password='shanmao';
$conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_password)
or die('Could not connect:'.mysql_error());
mysql_select_db('test') or die('Could not select database');
$aid = $_GET['id'];
$query="select * from hehe where id=$aid";
$result =mysql_query($query) or die('Query failed:'.mysql_error());
echo "<table>\n";
$row=mysql_fetch_assoc($result);
echo $row["id"];
echo $row["content"];
mysql_free_result($result);
mysql_close($conn);
?>
</body>
</html>
----------------
Lynx
The quieter you become,the more you are able to hear.