- Установка kali linux raspberry pi
- Kali on Raspberry Pi 3 — User Instructions
- Kali on Raspberry Pi 3 — Tips and Tricks
- Kali on Raspberry Pi 3 Headless — Tips and Tricks
- Kali on Raspberry Pi 3 — Image Customization
- LUKS NUKE
- Automation?
- Установка kali linux raspberry pi
- Kali on Raspberry Pi 1 — User Instructions
- Kali on the Raspberry Pi 1 — Tips
- Kali on Raspberry Pi 1 — Image Customization
Установка kali linux raspberry pi
The Raspberry Pi 3 has a quad core 1.2GHz processor, with 1GB of RAM. Kali Linux fits on an external microSD card.
By default, the Kali Linux Raspberry Pi 3 image contains the kali-linux-default metapackage similar to most other platforms. If you wish to install extra tools please refer to our metapackages page.
The Raspberry Pi 3 has a 64-bit processor and can run 64-bit images. Because it can run 64-bit images, you can choose either Kali Linux Raspberry Pi 2, 3, 4 and 400 (32-bit) (img.xz) or Kali Linux Raspberry Pi 2 (v1.2), 3, 4 and 400 (64-bit) (img.xz) as the image to run, the latter being 64-bit.
We recommend using the 32-bit image on Raspberry Pi devices as that gets far more testing, and a lot of documentation out there expects you to be running RaspberryPi OS which is 32-bit.
The Raspberry Pi images use Re4son’s kernel, which includes the drivers for external Wi-Fi cards, TFT displays, and the nexmon firmware for the built-in wireless card on the Raspberry Pi 3 and 4. You will not need to download it and install it, and doing so will likely be a downgrade over the current installed kernel.
Kali on Raspberry Pi 3 — User Instructions
If you’re unfamiliar with the details of downloading and validating a Kali Linux image, or for using that image to create a bootable device, it’s strongly recommended that you refer to the more detailed procedures described in the specific articles on those subjects.
To install a pre-built image of the standard build of Kali Linux on your Raspberry Pi 3, follow these instructions:
- Get a fast microSD card with at least 16GB capacity. Class 10 cards are highly recommended.
- Download and validate our preferred Kali Raspberry Pi 3 image from the downloads area. The process for validating an image is described in more detail on Downloading Kali Linux.
- Use the dd utility to image this file to your microSD card (same process as making a Kali USB.
In our example, we assume the storage device is located at /dev/sdb . Do not simply copy these value, change this to the correct drive path.
This process will wipe out your microSD card. If you choose the wrong storage device, you may wipe out your computers hard disk.
This process can take a while, depending on your PC, your microSD’s speed, and the size of the Kali Linux image.
Once the dd operation is complete, boot up the Raspberry Pi 3 with the microSD plugged in.
Kali on Raspberry Pi 3 — Tips and Tricks
The bluetooth service on the Raspberry Pi 3 needs a uart helper service before it works. To enable and start the bluetooth service run the following commands:
[email protected]:~$ sudo systemctl enable --now hciuart.service [email protected]:~$ sudo systemctl enable --now bluetooth.service
If you are on the 5.10 or higher kernel, you can use mt76 chipset USB Wi-Fi devices, but they require creating a configuration file in /etc/modprobe.d with the following contents:
Kali on Raspberry Pi 3 Headless — Tips and Tricks
You can add a wpa_supplicant.conf file to the first partition of the microSD card to connect to a wireless network.
You can create this file on another Linux system by running wpa_passphrase YOURNETWORK > wpa_supplicant.conf . It will prompt you for the wireless network’s password. You can add the password to the command as you run it, but keep in mind that if you do, your wifi network password will be in your user’s shell history.
Kali on Raspberry Pi 3 — Image Customization
If you want to customize the Kali Raspberry Pi 3 image, including changes to the packages being installed, changing the desktop environment, increasing or decreasing the image file size or generally being adventurous, check out the Kali-ARM Build-Scripts repository on GitLab, and follow the README.md file’s instructions. The script to use is raspberry-pi.sh (32-bit) or raspberry-pi-64-bit.sh (64-bit).
Updated on: 2023-May-30
Author: steev
LUKS NUKE
Should a user also want LUKS NUKE, all they need to do is run the following command:
[email protected]:~$ dpkg-reconfigure cryptsetup-nuke-password
Automation?
Now how about we get this automated? Thanks to Richard Nelson (unixabg), anyone who wants to get this all set up in much less time than the manual method and much easier, can!
First things first, let’s clone unixabg’s cryptmypi script repository:
[email protected]:~$ git clone https://github.com/unixabg/cryptmypi.git
After clone is complete, let’s change to the working directory of cryptmypi:
Next let’s list available Kali examples to build:
[email protected]:~$ ls -aFl examples/ | grep kali
Now we need to edit the cryptmypi.conf on the example you wish to build. These settings will be personal, but let’s just give you all an example:
[email protected]:~$ cat kali-encrypted-basic/cryptmypi.conf ############################################################################### ## cryptmypi profile ########################################################## # EXAMPLE OF A ENCRYPTED KALI CONFIGURATION # Will create a encrypted Kali system: # - during boot the encryption password will be prompted # - with ssh server (available after boot) # The id_rsa.pub public key will be added to authorized_keys # # Some optional hooks are defined on stage2: # - "optional-sys-rootpassword" that sets root password # General settings ------------------------------------------------------------ # You need to choose a kernel compatible with your RPi version. # Kali RPi images name its kernels: # - Re4son+ is for armv6 devices (ie. RPi1, RPi0, and RPi0w) # - v7+ and v8+ sufixes are for the 32bit and 64bit armv7 devices (ie. RPi 3) # - l+ sufix in the name means they will be ready for the RPi4. export _KERNEL_VERSION_FILTER="v8+" # HOSTNAME # Each element of the hostname must be from 1 to 63 characters long and # the entire hostname, including the dots, can be at most 253 # characters long. Valid characters for hostnames are ASCII(7) letters # from a to z, the digits from 0 to 9, and the hyphen (-) export _HOSTNAME="kali-encrypted-basic" # BLOCK DEVICE # The SD card or USD SD card reader block device # - USB drives will show up as the normal /dev/sdb, /dev/sdc, etc. # - MMC/SDcards may show up the same way if the card reader is USB-connected. # - Internal card readers normally show up as /dev/mmcblk0, /dev/mmcblk1, . # You can use the lsblk command to get an easy quick view of all block # devices on your system at a given moment. export _BLKDEV="/dev/sdb" # LUKS ENCRYPTION ------------------------------------------------------------- ## Encryption Cypher export _LUKSCIPHER="aes-cbc-essiv:sha256" ## Encryption Password export _LUKSPASSWD="luks_password" ## Encryption Extra # On rpi0-1-2-3 you may want to reduce the required memory to unlock # _LUKSEXTRA="--pbkdf-memory 131072" export _LUKSEXTRA="" # LINUX IMAGE FILE ------------------------------------------------------------ export _IMAGEURL=https://images.kali.org/arm-images/kali-linux-2023.2-raspberry-pi-arm64.img.xz export _IMAGESHA="9ef1a0c011c274a81baaa626206ec985e1caa9494dab2b88ecec0a2473d6cf1f" # PACKAGE ACTIONS ------------------------------------------------------------- export _PKGSPURGE="" export _PKGSINSTALL="tree htop" # MINIMAL SSH CONFIG ---------------------------------------------------------- # Keyfile to be used to access the system remotelly through ssh. # Its public key will be added to the system's root .ssh/autorized_keys export _SSH_LOCAL_KEYFILE="$_USER_HOME/.ssh/id_rsa" ############################################################################### ## Stage 1 Settings ########################################################### # Custom Stage1 Profile # Check functions/stage1profiles.fns for reference. You may instruct hooks # here or you may call one predefined stage1profile functions. # Optional: if stage1_hooks function is not defined, a prompt will be displayed stage1_hooks() < stage1profile_encryption >############################################################################### ## Stage-2 Settings ########################################################### # Optional stage 2 hooks # If declared, this function is called during stage2 build by the # stage2-runoptional hook. # # Optional function: can be ommited. stage2_optional_hooks() < myhooks "optional-sys-rootpassword" >############################################################################### ##Optional Hook Settings ##################################################### # ROOT PASSWORD CHANGER settings ---------------------------------------------- # Hooks # optional-sys-rootpassword # Changes the system root password ## The new root password export _ROOTPASSWD="root_password"
After you have made all the chages you desire to the example you have selected to attempt to build, the only thing left to do is initiate the build attempt and follow the instructions:
[email protected]:~$ sudo ./cryptmypi.sh examples/kali-encrypted-basic
By the end of it, you should have a fully encrypted filesystem with features enabled of the example you selected. Should you encounter any issues with your automated build, you are encouraged to examine issues at the project’s issues page. If your believe your issue is new or not listed, please file a new issue.
Updated on: 2023-May-30
Authors: gamb1t , steev
Установка kali linux raspberry pi
The early revisions of Raspberry Pi 1 (Original) boards have a full-size SD card slot, however later board revisions moved to a microSD card slot. We document using the full-size SD card, but the process is the same for microSD card.
The Raspberry Pi 1 is a low-cost, credit-card-sized ARM computer. Despite being a being less powerful than a “standard” laptop or desktop PC, its affordability makes it an excellent option for a tiny Linux system. The Raspberry Pi 1 provides a full-size SD card slot for mass storage and will attempt to boot off that device when the board is powered on.
By default, the Kali Linux Raspberry Pi 1 image contains the kali-linux-default metapackage similar to most other platforms. If you wish to install extra tools please refer to our metapackages page.
The Raspberry Pi 1 images use Re4son’s kernel, which includes the drivers for external Wi-Fi cards, TFT displays, and the nexmon firmware for the built-in wireless card on the Raspberry Pi 3 and 4. You will not need to download it and install it, and doing so will likely be a downgrade over the current installed kernel.
Kali on Raspberry Pi 1 — User Instructions
If you’re unfamiliar with the details of downloading and validating a Kali Linux image, or for using that image to create a bootable device, it’s strongly recommended that you refer to the more detailed procedures described in the specific articles on those subjects.
To install a pre-built image of the standard build of Kali Linux on your Raspberry Pi, the general process goes as follows:
- Get a fast full-size SD card with at least 16GB capacity. Class 10 cards are highly recommended.
- Download and validate the Kali Linux Raspberry Pi 1 image from the downloads area. The process for validating an image is described in more detail on Downloading Kali Linux.
- Use the dd utility to image this file to your full-size SD card (same process as making a Kali USB.
In our example, we assume the storage device is located at /dev/sdb . Do not simply copy these value, change this to the correct drive path.
This process will wipe out your full-size SD card. If you choose the wrong storage device, you may wipe out your computers hard disk.
This process can take a while, depending on your PC, your full-size SD card’s speed, and the size of the Kali Linux image.
Once the dd operation is complete, boot up the Raspberry Pi 1 with the full-size SD card plugged in.
Kali on the Raspberry Pi 1 — Tips
There is no wireless on the Raspberry Pi, so you will need to use an external device for wireless.
Kali on Raspberry Pi 1 — Image Customization
If you want to customize the Kali Raspberry Pi 1 image, including changes to the packages being installed, changing the desktop environment, increasing or decreasing the image file size or generally being adventurous, check out the Kali-ARM Build-Scripts repository on GitLab, and follow the README.md file’s instructions. The script to use is raspberry-pi1.sh .
Updated on: 2023-May-30
Author: steev