• We just launched and are currently in beta. Join us as we build and grow the community.

How to set up SQLI Lab

derrick87

Doujin Reader
D Rep
0
0
0
Rep
0
D Vouches
0
0
0
Vouches
0
Posts
91
Likes
184
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 400 XP
Hello everyone,today we’ll be learning how to setup Dhakkan lab (one of the best labs I have seen for practising and understanding SQL INJECTION) in our latest Ubuntu Machine.

A laboratory that offers a complete test environment for those interested in acquiring or improving SQL injection skills. Let’s start. First, we will download SQLI lab inside html directory by the following link-

Code:
git clone http://github.com/Rinkish/Sqli_Edited_Version

Once the download is done, we will move sqli labs into the /var/www/html directory and rename it to sqli. Then go inside the sqli directory where we will find /sqli-connections directory. Here we will run ls command to check the files and we can see that here is a file by the name of db-creds.inc

we need to make some changes in the config file by the following command-

Code:
cd Sqli_Edited_Version/
ls
mv sqlilabs/ ../sqli
cd sqli
cd sql-connections/
ls
nano db-creds.inc

22.png


As we can see that username is given root and password is left blank which we need to modify.

23.png


Now here we will set the username and password as raj:123 Now save the file and exit.

24..png


Now browse this web application from through this URL
localhost/sqli and click on Setup/reset Databases for labs.

25.png


Now the sqli lab is ready to use.

26.png


Now a page will open up in your browser which is an indication that we can access different kinds of Sqli challenges

27.png


Click on lesson 1 and start the Sqli challenge.

28.png


Author – Rinkish Khera is a Web Application security consultant who loves competitive coding, hacking and learning new things about technology. Contact Here
 

427,549

310,984

310,993

Top