Installing Kali to a portable device is fairly simple. In some situations, clients do not permit the use of external laptops inside a secure facility; in such cases, typically, a testing laptop is provided by the client to the pentester to perform scans. Running Kali from a portable device has more advantages during a pentest or RTE:
- Most portable devices can be kept in the pocket, as in the case of a USB drive or a mobile phone
- It can be run live without making any changes to the host operating system
- You can customize the build of Kali and even make the storage persistent
There is a simple three-step process to making a USB into a portable Kali from a Windows PC:
- Download the official Kali Linux image from the following URL:
http://docs.kali.org/introduction/download-official-kali-linux-images. - Download Win32 Disk Imager from https://sourceforge.net/projects/win32diskimager/.
- Open Win32 Disk Imager as an administrator. Plug the USB drive into the PC's available USB port. You will see something similar to the following screenshot; select the correct drive name and then click on Write:
Once complete, exit Win32 Disk Imager and safely remove the USB. Kali is now ready on the portable device and can be plugged into any laptop to be booted up live. If your host operating system is Linux, this can be achieved by two standard commands: sudo fdisk -l , which will display all the disks mounted on the drive, and dd if=kali linux.iso of=/dev/nameofthedrive bs=512k. That's it. The dd command-line utility does the convert and copy if it is used for the input file, where of is for the output file and bs is for the block size.