kali-linux
Multi-arch Kali-rolling base image with kali-linux-core & openssh-server. Compatible w/ Raspberry Pi
1M+
This is an unofficial Kali-rolling image, built because I want to tinker with Kali on my Raspberry Pi, but kept running into issues running the official Kali RPI ISO. Raspbian, Docker, and this image have been a stable implementation for me.
And as an added bonus... if you break something, no lengthy reinstall or SD card flashing required. Thanks Docker!
| Architecture (latest) |
|---|
| linux/amd64 |
| linux/arm/v7 |
| linux/arm/v6 |
| linux/arm64 |
| linux/386 |
| Tag | Description |
|---|---|
| rootfs | root filesystem (no packages installed) |
| latest | kali-linux-core & openssh-server |
| wifi | latest + kali-linux-wireless |
| wifi-pass | latest + kali-linux-wireless + kali-linux-passwords (arm only) |
Additional packages can be installed on top of this image. See kali-metapackages. Once the kinks are ironed out and the build pipeline is quick and stable, I will probably add some beefier tags. The challenge is not the build, but successfully pushing to Docker Hub, possibly due to the added mass of multiple architectures.
Historic builds available, tagged appended with build date
That said...
I have added some non-Kali packages in tags wifi and wifi-pass
These are already installed.
https://github.com/projectdiscovery/nuclei
https://github.com/projectdiscovery/subfinder
https://github.com/projectdiscovery/httpx
https://github.com/projectdiscovery/proxify
https://github.com/projectdiscovery/dnsx
https://github.com/stevenaldinger/decker
https://github.com/jonluca/Anubis
docker pull donaldrich/kali-linux:latest
docker run -it --rm --workdir="/root" --entrypoint="/bin/sh" --net="host" donaldrich/kali-linux:latest
docker pull donaldrich/kali-linux:wifi
docker run -it --rm --workdir="/root" --entrypoint="wifite" --net="host" donaldrich/kali-linux:wifi
Putting the Raspberry Pi wlan0 card into monitoring mode has never been stable in my experience, even using the ISO. I use a 20$ USB dongle, never have any issues and better signal strength. If you procure one for such a purpose... MAKE SURE ITS CAPABLE OF MONITORING MODE
services:
kali-linux:
image: donaldrich/kali-linux:<TAG>
container_name: kali-linux
hostname: kali-linux
privileged: true # not sure if this is required
volumes:
- /some/path:/root # optional, .ssh, user data, confits, etc.
expose:
- 2222
network_mode: host # required to access wireless card
# external
ssh root@<HOST_IP> -p 2222
# from host
ssh [email protected] -p 2222
I am aware that running containers as root is not best practice. However, root is the intended user to run Kali, so I think the end justifies the means in this case.
Its possible to harden the ssh server config by mounting a .ssh folder and /etc/ssh/sshd_config. Just make sure to chmod/chown if necessary, it won’t happen automatically. These settings will persist with the mount.
SSH makes this image accesible to configuration management platforms (such as Ansible). I find it handy to maintain dotfiles, user configs, etc. in the container.
The focus of this image is compatibility with Raspberry Pi. However, it is multi arch, and I’ve occasionally used the amd64 architecture without issues.
Content type
Image
Digest
Size
114.5 MB
Last updated
over 4 years ago
docker pull donaldrich/kali-linux