DVWA SQL INJECTION

 



SQL INJECTION USING DVWA:-

ALERT:- WE don't promote the illegal hacking we uses the tools for the study purpose if you use this tool
in a illegal manner do it at your own risk

we can perform the SQL injection is the way that through which we can get the details of the  vulnerabilities of the sites and can also exploit the databases of the website the SQL injections can also be performed using different tools but this is one of the tools.

Best Sellers in Electronics
step 1:- we need to change the directory.
 cd /var/www/html/

Step 2:- we need to  clone the DVWA directory form the GitHub
urls:-git clone https://github.com/ethicalhack3r/DVWA

Step 3:-we need to move the to dvwa
mv DVWA dvwa

Step 4:- we need to configure the file in Rv mode
chmod -R 777 dvwa/

Step 5:-After this we need to change and configure the directory
cd dvwa/config

Step 6:-now config the php file that you have
cp config.inc.php.dist config.inc.php

Step 7:- change the user and password in the file.
nano config.inc.php
set user and password according to your requirement

Step 8:-Now we need to start the mysql server
service mysql start

Step 9:-Now we need to write the sql id and password
mysql -u root -p

Step 10:-Now we need to create the user id pass
Best Sellers in Computers & Accessories
start enjoying amazon at super discount
create user 'user'@'127.0.0.1' identified by 'pass';

Step 11:-Now we need to grant all the privileges
grant all privileges on dvwa.* to 'user'@'127.0.0.1' identified by 'pass';

Step 12:-Now go to the apache file
cd /etc/php/7.3/apache2

Step 13:-Now Start the apache server
service apache2 start


Step 14:- Now type the following in the browser 127.0.0.1/dvwa/

NOW GET GOING ON IN THE LOCAL HOST FOR SQL INJECTION


Comments

Post a Comment