摘要:
构建准备: 1、配置防火墙,开启80端口、3306端口 备注:很多网友把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败, 正确的应该是添加到默认的22端口这条规则的下面 如下所示: 配置成功后的文件 Firewall configuration written by system conf 阅读全文
摘要:
在我们登陆验证时会发现sql注入的现象。 1.sql注入发生原因 因为如果用户在用户名上输入的是' or 1=1 时,我们得到的sql语句是select from shop_user where username='' or 1=1 ' and password='d41d8cd98f00b204e 阅读全文
摘要:
//分页条件展示结果 function getByPagePro($table,$page,$where=null,$orderBy=null,$pageSize=2){ global $totalRows; $totalRows=getAllRows($table,$where); global 阅读全文