码迷,mamicode.com
首页 > 数据库 > 详细

How to install sqli-labs into localhost

时间:2020-11-26 15:15:20      阅读:14      评论:0      收藏:0      [点我收藏+]

标签:use   for   mys   success   tab   href   on()   bec   into   

I use phpstudy to set a php+Mysql+Apache environment for the sqli-labs.
The first step is to download the sqli-labs-master.zip from the official website. (https://github.com/Audi-1/sqli-labs)
Then unzip it into the apache folder. I unzipped it into /phpstudy_pro/WWW
The second step is to modify the $dbpass and $host.
$dbpass is the password of MySQL connection and host is ur host. I use 127.0.0.1 as the host.
There‘s one thing that is important: the PHP version should be lower than php7. If you use the PHP which version higher than 7, then when you create the database, there will be errors: because of the files in sqli-labs-master use mysql_connection() but php7 use mysqli_connection().

Then open 127.0.0.1/sqli-labs-master in the browser and create the database. Successful!

How to install sqli-labs into localhost

标签:use   for   mys   success   tab   href   on()   bec   into   

原文地址:https://www.cnblogs.com/PhantoMPaiN/p/14025064.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!