Raspberry Pi and PwnPi with BerryBoot for the pentesting
Some of you know can be some distributions for tests of penetration on a web server, a Wifi network or I don't even know what computer system. This is what can do Blackbuntu, Backtrack and other Backbox.
Our dear Raspberry now has its distribution : PwnPi (version 3.0 is it you please !). This distribution contains everything you need to make mumuse (and only it huh. Attention !) with your network, your web server self-hosted or show your grand mother that put the name of her cat as a WEP key it's not going to protect it of Hadopi !
Brief, I said to myself that it could be a quick and easy tutorial to put this tool at your disposal without any break and thanks BerryBoot.
- Download picture of PwnPi and unpack
- It is necessary to convert the second partition of the IMG file into a usable by BerryBoot partition
- Under a linux distribution, install kpartx and squashfs-tools. At home I have a VM under VirtualBox with Debian so I went there.Under Debian, kpartx It is part of the installable packages. For squashfs-tools, the version in the repository is the 4.0 While it takes the 4.2. But compile the sources is very easily done.
- Mount the IMG file
sudo kpartx - av pwnpi - 3.0.img
If you have an error of the kind :
/proc/misc: No. entry for device - mapper found Is device - mapper driver missing from kernel? Failure to communicate with kernel device - mapper driver. device mapper prerequisites not met
You can fix this with the command
sudo modprobe dm - mod
- Mount the second partition
- Disable installation of partitions at boot, otherwise you will get an error fsck at the start of your distribution. Why put comments all lines in /MNT/etc/fstab.
- Generate an image with only this partition. Caution should be the version 4.2 of squashfs to have option - comp and install it with the LZO option enabled (I have the recompile my home …)
mksquashfs/mnt pwnpi - squash.img - comp lzo e lib/modules
- Copy the file pwnpi - squash.img on a USB key and connect it to the Raspberry
- In BerryBoot, Edit the main menu and add a new OS from the USB. The file that you put on the USB stick will be copied to the SD card.
Here is the result, ready to use :
You can play and test !