Setting Up

Trước khi xem log (Hãy cài đặt)

# Apache2

sudo tail -n 50 /var/log/apache2/error.log
sudo tail -n 50 /var/log/apache2/access.log
# Mail server
tail -f /var/log/mail.log
mail

Installing bWAPP on Kali Linux & Ubuntu

Download bWAPP from the Official Website

  1. Click on "You can download bWAPP from here" to go to the download server.

  2. Click on "Download Latest Version".

Update Your System

sudo apt-get update -y

Prepare the Environment

Install MySQL

  1. Check if MySQL is installed:

  2. Update the system before installation:

  3. Install MySQL if not installed:

  4. Start MySQL:

  5. Enable MySQL on startup:

  6. Check MySQL status:

    Press Q to exit.

Install Apache2

  1. Check if Apache2 is installed:

  2. Update the system before installation:

  3. Install Apache2 if not installed:

  4. Start Apache2:

  5. Enable Apache2 on startup:

  6. Check Apache2 status:

    Press Q to exit.

Prepare bWAPP

  1. Navigate to the bWAPP directory:

  2. Give all permissions to these directories:

Configure MySQL

  1. Open MySQL to add a user and give privileges:

  2. Create a user (replace ahmed and pass123 with your desired username and password):

  3. Grant privileges to the user you created:

  4. Apply the changes immediately:

  5. Exit MySQL:

Edit bWAPP Database Credentials

  1. Edit the settings.php file:

  2. Change root to the same username you created in MySQL:

  3. Add the same password you created in MySQL:

  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:

  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:

  2. Move all bWAPP files to the local server:

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:

  2. Show databases:

  3. Exit MySQL:

Login to bWAPP

  1. Login credentials:

    • Username: bee

    • Password: bug

Installing mail server

Màn hình
Giá trị khuyến nghị

General type

Internet Site

System mail name

bwapp.local hoặc mailinator.com (theo bwapp) nếu sử dụng domain khác thì phải tạo mới user riêng trên bWAPP tại http://192.168.160.133/bWAPP/user_extra.php

Root & postmaster recipient

bee (hoặc user bạn hay dùng)

Other destinations (mydestination)

bwapp.local, localhost.localdomain, localhost

Force synchronous updates

No

Local networks (mynetworks)

127.0.0.0/8 192.168.160.0/24

Mailbox size limit

0

Recipient delimiter

+

Internet protocols

all

Hoặc có thể copy file sau vào /etc/postfix/main.cf

Cấu hình cuối cùng cho mail server để có thể sử dụng nhiều user ảo trên 1 domain

Credential

Web: bee - bug

DB: bee - bug

User entry: hack@bwapp.local - 123

Last updated

Was this helpful?