You can follow this link to install docker on your machine
Install kali in docker
Run this command to pull kali images
1
docker pull kalilinux/kali-linux-docker
Run this command
1
docker run -Pti --privileged -e DISPLAY=:1.0 --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/vuquangtam/Docker/Share:/share --net=host --name kali kalilinux/kali-linux-docker
to create a new container. It will return a shell to interact with. By default, there are no tools added to this image, so we must install additional toolpack, you can follow this link to choose your suitable one.
After create container. you can check containter id by run this command
1
docker ps -a
To start a container, run
1
docker start [container's id]
Adding GUI
You can install any desktop environment that kali support. In my case, i’ll install XFCE because it’s lightweight. Run this command to install XFCE in your docker container
remote_address : it can be ip address or domain name of remote address
port : port of protocol
Example
1
C-x C-f /ssh:root@localhost:/home
When the connection is established, emacs will open a dired - emacs’s file manager for you to interact with remote machine. You can edit file and save, you can open terminal, you can copy file from local machine to remote machine and vice versa.
If you haven’t use this before, don’t worry, just remember some following keys to use:
My name is taamvux. I’m a developer. I love javascript, python and especially emacs. I use and configure emacs a lot. I like playing guitar in freetime. Sometimes, i play games