A lot of time is consumed in installing tools for pentesting in other distros of linux like Ubuntu whereas Kali Linux comes preinstalled with that. But I don’t just want to rip off this ubuntu OS and immediately switch to Kali (It took days to customize everything on Ubuntu. I am clingy, I can’t let go off all the favorite addons!)
So I found an alternative which can fulfil both ways.
EDIT:: The docker image by JGamblin was removed, hence I created my own docker image which serves the same purpose!
You can pull the kali image using this command
$ sudo docker run -d -t -i -p 6080:6080 apsychogirll/kalibrowser
Post that, checkout the address http://localhost:6080 and you’ll see a working kali container UI.
You can also refer to my github to see the dockerfile used:: kalibrowser
You can now run Kali Linux, one of the popular and advanced Linux distribution specially designed for penetration testing and ethical hacking, directly on your Web browser, regardless of any operating system you use. Meet KaliBrowser, a new project developed by Security Analyst Mr.Jerry Gamblin for ethical hackers.
Let’s take a moment to thanks Mr Jerry for his amazing work 🎆
If you are familiar with Docker already, this is going to be easy breezy :P
If not! Check out this official documentation here! But a brief introduction of great Docker is required here as well.
Docker is a fast, lightweight and OS level virtualization technology for developers and system administrators who wants to build an application with all of required dependencies, and ship it out as only one package. Unlike other Virtualization methods, such as VMWare, Xen and VirtualBox, there is no need of separate guest operating system for each virtual machine. All Docker containers efficiently share the host operating system’s Kernel. Each container will run in an isolated userspace in the same operating system.
Docker containers will also run on any Linux variant. Let us say you’re working in Fedora, and I am using Ubuntu. We can still develop, share and distribute the Docker images with each other. You don’t have to worry about the OS, software, customized settings, or anything. We can continue the development as long as we have Docker installed in our host system. Simply put, it will work everywhere!
Once installed, verify that Docker CE is installed properly by running the
$ sudo docker run hello-world
The output will be similar to this-
Then, start and enable the Docker service as shown below.
$ sudo systemctl start docker$ sudo systemctl enable docker
Download and run KaliBrowser
Run the following command to download and KaliBroswer docker image.
$ sudo docker run -d -t -i -p 6080:6080 jgamblin/kalibrowser
The output will be like this-
That’s it. Start working with Kali Linux right from the web browser.
Here’s how it started in my browser -
To open menu items, just right click on the empty space. A basic menu will appear.
To keep kalibrowser simple and fast, the developer has included only the base installation of Kali Linux. However, you can install additional tools if you want via command-line.
After working with Kali Linux, you can stop it as shown below.
First find the Kali Linux docker image id using command:
$ sudo docker ps -a
Got the container id —
Now we need to stop this container
$ sudo docker stop 96d0dda1c82b
And that’s it, now we can use all the tools of Kali without sacrificing our current OS :)