Skip to content

Installation guide for bWAPP on Kali Linux, Ubuntu, and Windows.

Notifications You must be signed in to change notification settings

ahmedhamdy0x/bwapp-Installation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

bWAPP Installation Guide

Created by Ahmed Hamdy from GenTiL Security

Installing bWAPP on Kali Linux & Ubuntu

Download bWAPP from the Official Website

  1. Go to bWAPP download page.
  2. Click on "You can download bWAPP from here" to go to the download server.
  3. Click on "Download Latest Version".

Update Your System

sudo apt-get update -y

Prepare the Environment

  1. Go to the downloads directory:
    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:
    sudo apt-get update -y
  3. Install MySQL if not installed:
    sudo apt install mysql-server
  4. Start MySQL:
    sudo systemctl start mysql
  5. Enable MySQL on startup:
    sudo systemctl enable mysql
  6. Check MySQL status:
    sudo systemctl status mysql
    Press Q to exit.

Install Apache2

  1. Check if Apache2 is installed:
    apache2 -v
  2. Update the system before installation:
    sudo apt-get update -y
  3. Install Apache2 if not installed:
    sudo apt install apache2
  4. Start Apache2:
    sudo systemctl start apache2
  5. Enable Apache2 on startup:
    sudo systemctl enable apache2
  6. Check Apache2 status:
    sudo systemctl status apache2
    Press Q to exit.

Prepare bWAPP

  1. Navigate to the bWAPP directory:
    cd bWAPP
  2. Give all permissions to these directories:
    chmod 777 passwords/
    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):
    CREATE USER 'ahmed'@'localhost' IDENTIFIED BY 'pass123';
  3. Grant privileges to the user you created:
    GRANT ALL PRIVILEGES ON bWAPP.* TO 'ahmed'@'localhost';
  4. Apply the changes immediately:
    FLUSH PRIVILEGES;
  5. Exit MySQL:
    exit

Edit bWAPP Database Credentials

  1. Edit the settings.php file:
    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.

Move bWAPP Files to Local Server

  1. Navigate to the parent directory:
    cd ../
  2. Move all bWAPP files to the local server:
    sudo mv * /var/www/html/

Install bWAPP Database

  1. Open the following link in your browser and click to install the database: http://localhost/bWAPP/install.php

Verify Database Installation

  1. Open MySQL to check if the database has been added:
    sudo mysql
  2. Show databases:
    SHOW DATABASES;
  3. Exit MySQL:
    exit

Login to bWAPP

  1. Go to http://localhost/bWAPP/
  2. Login credentials:
    • Username: bee
    • Password: bug

Installing bWAPP on Windows

Download XAMPP

  1. Go to the XAMPP official website.
  2. Click on "XAMPP for Windows" to download the latest version.
  3. Follow the easy setup instructions.
  4. Open XAMPP and enable Apache & MySQL services by pressing Start in front of each of them, then minimize it.

Download bWAPP from the Official Website

  1. Go to bWAPP download page.
  2. Click on "You can download bWAPP from here" to go to the download server.
  3. Click on "Download Latest Version".

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.

Move Files to Local Server

  1. Select all files (Ctrl + A), and copy them (Ctrl + C).
  2. Go to the local server path C:\xampp\htdocs.
  3. Paste all files in this path (Ctrl + V).

Edit install.php File (Important Step)

  1. Right-click on the install.php file located in C:\xampp\htdocs\bWAPP.
  2. Open with a text editor.
  3. Go to this link and copy the content (Ctrl + C).
  4. 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.

Install bWAPP Database

  1. Open the following link in your browser and click to install the database: http://localhost/bWAPP/install.php

Login to bWAPP

  1. Go to http://localhost/bWAPP/
  2. Login credentials:
    • Username: bee
    • Password: bug

Congratulations! Go and have fun with more than 100 web vulnerabilities. Happy exploiting!

About

Installation guide for bWAPP on Kali Linux, Ubuntu, and Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published