Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


LoginGet Started

Register to 4Geeks

← Back to Projects

Installing bWAPP Using a Virtual Machine (BeeBox)

Difficulty

  • easy

Average duration

1 hrs

Technologies

Difficulty

  • easy

Average duration

1 hrs

Installing bWapp using a Virtual Machine (BeeBox)

Installing bWapp using a Virtual Machine (BeeBox)

At 4Geeks Academy, we are committed to providing the best learning experience for our students, especially regarding understanding web security. One essential tool in our curriculum is bWAPP (Buggy Web Application), a free and open-source web application that is deliberately vulnerable, designed to help students learn about web security vulnerabilities and how to mitigate them.

There are two primary ways to install bWAPP:

  1. Manual Installation: Installing the files directly on your own LAMP (Linux, Apache, MySQL, PHP) or WAMP (Windows, Apache, MySQL, PHP) server.
  2. Virtual Machine Installation: Running bWAPP using a pre-configured virtual machine (VM) like BeeBox.

At 4Geeks Academy, we have chosen to use the virtual machine approach for several compelling reasons that would can read at the end of this article.

How to Install bWAPP Using a Virtual Machine

Here are the steps to get bWAPP up and running using BeeBox:

  1. Extract the Compressed File: Download and extract the BeeBox VM file here.

  2. Open VirtualBox: Launch VirtualBox.

  3. Create a New Virtual Machine:

    • Click on New.
    • Name the VM, select the folder where you extracted the BeeBox VM files, and choose Linux as the type of machine. Leave the default settings for memory and processor.
  4. Configure Storag:

    • Go to Settings > Storage.
    • Add the beebox file you extracted (.vmdk)
  5. Check the IP Address of the VM: Within the VM, check the IP address assigned to it and make sure the network adapter is properly configured.

    network adapter virtualbox

  6. Go to the bWAPP Login Page: Open a web browser on your host machine and navigate to the bWAPP login page using the VM's IP address. For example:

    http://[IP]/bWAPP/
    http://[IP]/bWAPP/login.php
    
  7. Login with Default bWAPP Credentials: Use the default credentials to log in, or create a new user.

    Default credentials: bee/bug
    
  8. You Are Ready to Explore and Exploit bWAPP: Begin exploring and exploiting the vulnerabilities within bWAPP in a safe and controlled environment.

🔥 IMPORTANT: Avoid upgrading the Linux operating system, as it will diminish the fun by resolving many of the vulnerabilities!

Important Installation Notes:

Although these steps are not necessary for the basic installation and configuration of bWAPP using a VM like BeeBox, they provide useful information for maintaining and customizing the environment, as well as for performing more advanced hacking and security testing activities.

  • Linux Credentials:

    bee/bug
    root/bug
    
  • MySQL Credentials:

    root/bug
    
  • Modify the Postfix Settings: Adjust the relayhost and other settings to match your environment.

    Configuration file: /etc/postfix/main.cf
    
  • Defacing and Hacking: BeeBox offers several ways to deface the bWAPP website. It's even possible to hack BeeBox to gain root access. Have fun!

  • Snapshot Before Hacking: Take a snapshot of the VM before starting your hacking activities. There is also a backup of the bWAPP website available at /var/www/bWAPP_BAK.

  • Reinstalling the bWAPP Database: If needed, you can delete the database using phpMyAdmin (http://[IP]/phpmyadmin/). Then, reinstall the bWAPP database by browsing to:

    http://[IP]/bWAPP/install.php
    

The Benefits of Using a Virtual Machine to Install bWAPP

  1. Ease of Use: Setting up bWAPP manually involves several steps: installing a web server, configuring PHP, setting up a MySQL database, and troubleshooting potential issues. This can be time-consuming and complex, especially for beginners. In contrast, using a VM like BeeBox is straightforward. You simply download the VM, import it into your virtualization software (such as VirtualBox or VMware), and start it up. The environment is pre-configured and ready to use, saving valuable time and effort.

  2. Consistent Environment: With a VM, you get a consistent and stable environment. This eliminates the variability that can occur when setting up bWAPP on different systems with different configurations. Students and instructors can be confident that they are all working in the same environment, which makes it easier to follow along with lessons and troubleshoot any issues that arise.

  3. Isolation and Security: Running bWAPP on your own server can expose your computer to security vulnerabilities. Since bWAPP is intentionally vulnerable, any misconfiguration or oversight can lead to security risks. By using a VM, you isolate bWAPP from your main operating system. This isolation minimizes the risk of compromising your personal files or other applications on your computer. The VM acts as a sandbox, containing any potential security threats within the virtual environment.

  4. Resource Management: Virtual machines are designed to efficiently manage system resources. You can allocate specific amounts of CPU, memory, and storage to the VM, ensuring that your main operating system remains responsive and functional even while running resource-intensive applications like bWAPP.

  5. Portability: VMs are highly portable. You can easily move a VM from one computer to another, share it with classmates or colleagues, or back it up for future use. This portability makes it easy to maintain a consistent development environment across different machines and locations.

Conclusion

At 4Geeks Academy, we believe in leveraging the best tools and practices to enhance our educational programs. By using a virtual machine to run bWAPP, we simplify the setup process, ensure a consistent and secure learning environment, and protect our systems from potential vulnerabilities. This approach not only benefits our students but also aligns with our commitment to delivering high-quality education in the field of web security.

Whether you're a student, educator, or professional, we highly recommend using the virtual machine approach for bWAPP installation. It's a decision that brings convenience, security, and peace of mind.

Signup and get access to similar projects

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

1 hrs

Difficulty

  • easy

Average duration

1 hrs

Difficulty

  • easy

Average duration

1 hrs

Difficulty

  • easy

Average duration

1 hrs

Signup and get access to similar projects

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

1 hrs

Difficulty

  • easy

Average duration

1 hrs