How to install sqli-labs into localhost

Posted phantompain

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to install sqli-labs into localhost相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

How to Install MySQL

How to install Lion

How to Install WordPress – Complete WordPress Installation Tutorial

how to install git 1.8 rpm

ubuntu——How to Install MySQL GUI

How to Install The Alpha Control Packages.