Kali Linux ARM 构建脚本。
这些与我们用于生成预生成的官方 Kali Linux ARM 镜像的构建脚本完全相同,可在此处找到:https://www.kali.org/get-kali/
此仓库还包含其他脚本,支持更多设备,但这些脚本需要自行构建后才能使用。
更多信息,请参阅:https://www.kali.org/docs/arm/
arm64、x64 和 x86 安装上进行过测试 (我们推荐 x64)./common.d/build_deps.sh 脚本,因为它会安装所有必需的依赖项。安装完构建依赖项后,您可能需要重启;如果需要,脚本会在最后提示您。构建 Raspberry Pi 4 Kali Linux 镜像 的示例工作流程如下:
$ cd ~/
$ git clone https://gitlab.com/kalilinux/build-scripts/kali-arm
$ cd ~/kali-arm/
$ sudo ./common.d/build_deps.sh
$ sudo ./raspberry-pi.sh
~/kali-arm/images/ 中获得一个名为 kali-linux-2021.3-rpi-armhf.img.xz 的镜像文件~/kali-arm/images/ 中获得一个名为 kali-linux-2021.3-rpi-armhf.img 的镜像文件
在任何构建脚本上,添加 --help。示例:
$ ./raspberry-pi.sh --help
Usage commands:
# Architectures (arm64, armel, armhf)
./raspberry-pi.sh --arch arm64 or ./raspberry-pi.sh -a armhf
# Desktop manager (xfce, gnome, kde, i3, lxde, mate, e17 or none)
./raspberry-pi.sh --desktop kde or ./raspberry-pi.sh --desktop=kde
# Minimal image - no desktop manager
./raspberry-pi.sh --minimal or ./raspberry-pi.sh -m
# Slim image - no desktop manager & cli tools
./raspberry-pi.sh --slim or ./raspberry-pi.sh -s
# Enable debug & log file (./logs/<file>.log)
./raspberry-pi.sh --debug or ./raspberry-pi.sh -d
# Perform extra checks on the images build
./raspberry-pi.sh --extra or ./raspberry-pi.sh -x
# Help screen (this)
./raspberry-pi.sh --help or ./raspberry-pi.sh -h
更改 builder.txt 可以设置自定义值,例如使用本地局域网镜像:
$ echo 'mirror="http://192.168.1.100/kali"' > ./builder.txt
Thu Jan 27 15:47:28 UTC 2022