<?
$mysql_server_name = “localhost”;
$mysql_username = “root”;
$mysql_password = “password”;
$mysql_database = “phpzr”; //??ݿ??
$conn=mysql_connect( $mysql_server_name, $mysql_username, $mysql_password );
mysql_select_db($mysql_database,$conn);
$id=$_GET[‘id’];
$sql = “select username,password from admin where id=$id”;
$result=mysql_db_query( $mysql_database, $sql,$conn );
$row=mysql_fetch_row($result);
?>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″>
<title>Php Sql Injection Test </title>
</head>
<body>
<p align=”center”><b><font color=”#FF0000″ size=”5″ face=”华文行楷”> </font><font color=”#FF0000″ size=”5″ face=”华文新魏”>PHP
注入测试专用</font></b></p>
<table width=”100%” height=”25%” border=”1″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<td><?=$row[0]?></td>
</tr>
<tr>
<td><?=$row[1]?></td>
</tr>
</table>
<p><u><font color=”#0000FF”>BY:孤狐浪子 QQ:393214425 </font></u></p>
<p><font color=”#0000FF”>Blog: Http://itpro.blog.163.com</font></p>
<p> </p>
</body>
</html>
创建数据库代码:保存成test.sql 使用phpmyadmin执行就ok了
CREATE DATABASE `phpzr` ; //创建数据库名称
CREATE TABLE admin (
id int(10) unsigned NOT NULL auto_increment,
username char(10) NOT NULL default ”,
password char(10) NOT NULL default ”,
useremail char(20) NOT NULL default ”,
groupid int(11) NOT NULL default ‘0’,
PRIMARY KEY (id)
) TYPE=MyISAM;
INSERT INTO admin VALUES (1, ‘admin’, ‘itpro.blog.163.com’,[email protected]/* */’, 1);
INSERT INTO admin VALUES (2, ‘admin1’, ‘itpro.blog.163.com’,[email protected]/* */’, 2);
INSERT INTO admin VALUES (3, ‘admin2’, ‘itpro.blog.163.com’,[email protected]/* */’, 3);
INSERT INTO admin VALUES (4, ‘admin3’, ‘itpro.blog.163.com’,[email protected]/* */’, 4);
INSERT INTO admin VALUES (5, ‘admin4’, ‘itpro.blog.163.com’,[email protected]/* */’, 5);
CREATE TABLE admin1 (
id int(10) unsigned NOT NULL auto_increment,
username char(10) NOT NULL default ”,
password char(10) NOT NULL default ”,
useremail char(20) NOT NULL default ”,
groupid int(11) NOT NULL default ‘0’,
PRIMARY KEY (id)
) TYPE=MyISAM;
INSERT INTO admin1 VALUES (1, ‘admin’, ‘itpro.blog.163.com’,[email protected]/* */’, 1);
INSERT INTO admin1 VALUES (2, ‘admin1’, ‘itpro.blog.163.com’,[email protected]/* */’, 2);
INSERT INTO admin1 VALUES (3, ‘admin2’, ‘itpro.blog.163.com’,[email protected]/* */’, 3);
INSERT INTO admin1 VALUES (4, ‘admin3’, ‘itpro.blog.163.com’,[email protected]/* */’, 4);
INSERT INTO admin1 VALUES (5, ‘admin4’, ‘itpro.blog.163.com’,[email protected]/* */’, 5);
以上就是【Php注入点构造代码】的全部内容了,欢迎留言评论进行交流!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
8. 精力有限,不少源码未能详细测试(解密),不能分辨部分源码是病毒还是误报,所以没有进行任何修改,大家使用前请进行甄别
丞旭猿论坛
暂无评论内容