1.安装phpstudy;
启动
2.从网上下载安装sqli-labs-masters;
将sqli-labs-masters解压,放到phpStudy安装目录下的WWW中
修改/sqli-labs-master/sql-connections/db-creds.inc文件中mysql账号密码,使之能连接上数据库
修改完如下:
这时输入127.0.0.1
但此时进去能看到关卡,但是没法进行注入练习,我们在浏览器输入:http://127.0.0.1/sqli-labs-master/sql-connections/setup-db.phphttp://127.0.0.1/sqli-labs-master/sql-connections/setup-db.php
现在进入浏览器输入:http://192.168.29.76/sqli-labs-master到如下界面
这个界面再下拉就是关卡
点击第一关,就可以进入关卡学习
eg:在搜索框输入?id=1