Created by Ahmed Hamdy from GenTiL Security
- Go to bWAPP download page.
- Click on "You can download bWAPP from here" to go to the download server.
- Click on "Download Latest Version".
sudo apt-get update -y
- Go to the downloads directory:
cd ~/Downloads
- Create a new directory named
bwapp
:mkdir bwapp
- List the downloads directory contents:
ls
- Move the bWAPP zip file to the
bwapp
directory:mv bWAPPv2.2.zip bwapp
- Navigate to the
bwapp
directory:cd bwapp
- Unzip the bWAPP zip file:
unzip bWAPPv2.2.zip
- Remove the bWAPP zip file:
rm bWAPPv2.2.zip
- Check if MySQL is installed:
mysql -V
- Update the system before installation:
sudo apt-get update -y
- Install MySQL if not installed:
sudo apt install mysql-server
- Start MySQL:
sudo systemctl start mysql
- Enable MySQL on startup:
sudo systemctl enable mysql
- Check MySQL status:
Press
sudo systemctl status mysql
Q
to exit.
- Check if Apache2 is installed:
apache2 -v
- Update the system before installation:
sudo apt-get update -y
- Install Apache2 if not installed:
sudo apt install apache2
- Start Apache2:
sudo systemctl start apache2
- Enable Apache2 on startup:
sudo systemctl enable apache2
- Check Apache2 status:
Press
sudo systemctl status apache2
Q
to exit.
- Navigate to the bWAPP directory:
cd bWAPP
- Give all permissions to these directories:
chmod 777 passwords/ chmod 777 images/ chmod 777 documents/
- Open MySQL to add a user and give privileges:
sudo mysql
- Create a user (replace
ahmed
andpass123
with your desired username and password):CREATE USER 'ahmed'@'localhost' IDENTIFIED BY 'pass123';
- Grant privileges to the user you created:
GRANT ALL PRIVILEGES ON bWAPP.* TO 'ahmed'@'localhost';
- Apply the changes immediately:
FLUSH PRIVILEGES;
- Exit MySQL:
exit
- Edit the
settings.php
file:mousepad admin/settings.php
- Change
root
to the same username you created in MySQL:$db_username = "ahmed";
- Add the same password you created in MySQL:
$db_password = "pass123";
- Save changes (Ctrl + S), and close the file.
- Go to this link and copy the content (Ctrl + C).
- Edit
install.php
:mousepad install.php
- Select all (Ctrl + A), paste the copied content (Ctrl + V), save changes (Ctrl + S), and close the file.
- Navigate to the parent directory:
cd ../
- Move all bWAPP files to the local server:
sudo mv * /var/www/html/
- Open the following link in your browser and click to install the database: http://localhost/bWAPP/install.php
- Open MySQL to check if the database has been added:
sudo mysql
- Show databases:
SHOW DATABASES;
- Exit MySQL:
exit
- Go to http://localhost/bWAPP/
- Login credentials:
- Username:
bee
- Password:
bug
- Username:
- Go to the XAMPP official website.
- Click on "XAMPP for Windows" to download the latest version.
- Follow the easy setup instructions.
- Open XAMPP and enable Apache & MySQL services by pressing Start in front of each of them, then minimize it.
- Go to bWAPP download page.
- Click on "You can download bWAPP from here" to go to the download server.
- Click on "Download Latest Version".
- Create a new folder and move the bWAPP zip file to this folder.
- Unzip the bWAPP file and remove the zip file.
- Select all files (Ctrl + A), and copy them (Ctrl + C).
- Go to the local server path
C:\xampp\htdocs
. - Paste all files in this path (Ctrl + V).
- Right-click on the
install.php
file located inC:\xampp\htdocs\bWAPP
. - Open with a text editor.
- Go to this link and copy the content (Ctrl + C).
- Back to the
install.php
file open with a text editor, select all (Ctrl + A), paste the copied content (Ctrl + V), save changes (Ctrl + S), and close the text editor.
- Open the following link in your browser and click to install the database: http://localhost/bWAPP/install.php
- Go to http://localhost/bWAPP/
- Login credentials:
- Username:
bee
- Password:
bug
- Username:
Congratulations! Go and have fun with more than 100 web vulnerabilities. Happy exploiting!