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
mailInstalling bWAPP on Kali Linux & Ubuntu
Download bWAPP from the Official Website
Go to bWAPP download page.
Click on "You can download bWAPP from here" to go to the download server.
Click on "Download Latest Version".
Update Your System
sudo apt-get update -yPrepare the Environment
Install MySQL
Check if MySQL is installed:
Update the system before installation:
Install MySQL if not installed:
Start MySQL:
Enable MySQL on startup:
Check MySQL status:
Press
Qto exit.
Install Apache2
Check if Apache2 is installed:
Update the system before installation:
Install Apache2 if not installed:
Start Apache2:
Enable Apache2 on startup:
Check Apache2 status:
Press
Qto exit.
Prepare bWAPP
Navigate to the bWAPP directory:
Give all permissions to these directories:
Configure MySQL
Open MySQL to add a user and give privileges:
Create a user (replace
ahmedandpass123with your desired username and password):Grant privileges to the user you created:
Apply the changes immediately:
Exit MySQL:
Edit bWAPP Database Credentials
Edit the
settings.phpfile:Change
rootto the same username you created in MySQL:Add the same password you created in MySQL:
Save changes (Ctrl + S), and close the file.
Important Step
Go to this link and copy the content (Ctrl + C).
Edit
install.php:Select all (Ctrl + A), paste the copied content (Ctrl + V), save changes (Ctrl + S), and close the file.
Move bWAPP Files to Local Server
Navigate to the parent directory:
Move all bWAPP files to the local server:
Install bWAPP Database
Open the following link in your browser and click to install the database: http://localhost/bWAPP/install.php
Verify Database Installation
Open MySQL to check if the database has been added:
Show databases:
Exit MySQL:

Login to bWAPP
Go to http://localhost/bWAPP/
Login credentials:
Username:
beePassword:
bug
Installing mail server
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?

