bWAPP Installation Guide
bWAPP Installation Guide
cd ~/Downloads
2. Create a new directory named bwapp:
mkdir bwapp
3. List the downloads directory contents:
ls
4. Move the bWAPP zip file to the bwapp directory:
mv bWAPPv2.2.zip bwapp
5. Navigate to the bwapp directory:
cd bwapp
Extract bWAPP
1. Unzip the bWAPP zip file:
unzip bWAPPv2.2.zip
2. Remove the bWAPP zip file:
rm bWAPPv2.2.zip
Install MySQL
1. Check if MySQL is installed:
mysql -V
2. Update the system before installation:
Install Apache2
1. Check if Apache2 is installed:
apache2 -v
2. Update the system before installation:
Prepare bWAPP
1. Navigate to the bWAPP directory:
cd bWAPP
2. Give all permissions to these directories:
3. chmod 777 passwords/
4. chmod 777 images/
chmod 777 documents/
Configure MySQL
1. Open MySQL to add a user and give privileges:
sudo mysql
2. Create a user (replace ahmed and pass123 with your desired username
and password):
FLUSH PRIVILEGES;
5. Exit MySQL:
exit
mousepad admin/settings.php
2. Change root to the same username you created in MySQL:
$db_username = "ahmed";
3. Add the same password you created in MySQL:
$db_password = "pass123";
4. Save changes (Ctrl + S), and close the file.
Important Step
1. Go to this link and copy the content (Ctrl + C).
2. Edit install.php:
mousepad install.php
3. Select all (Ctrl + A), paste the copied content (Ctrl + V), save changes
(Ctrl + S), and close the file.
cd ../
2. Move all bWAPP files to the local server:
sudo mv * /var/www/html/
sudo mysql
2. Show databases:
SHOW DATABASES;
3. Exit MySQL:
exit
Login to bWAPP
1. Go to http://localhost/bWAPP/
2. Login credentials:
o Username: bee
o Password: bug
Prepare bWAPP
1. Create a new folder and move the bWAPP zip file to this folder.
2. Unzip the bWAPP file and remove the zip file.
Login to bWAPP
1. Go to http://localhost/bWAPP/
2. Login credentials:
o Username: bee
o Password: bug
Congratulations! Go and have fun with more than 100 web vulnerabilities.
Happy exploiting!