Raspberry Pi and PwnPi with BerryBoot for the pentesting

pwnpi

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.

  1. Download picture of PwnPi and unpack
  2. It is necessary to convert the second partition of the IMG file into a usable by BerryBoot partition
    1. 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.
    2. 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
    3. Mount the second partition
      sudo mount/dev/mapper/loop0p2/mnt
    4. 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.
    5. 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
  3. Copy the file pwnpi - squash.img on a USB key and connect it to the Raspberry
  4. 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 :

WP_20130125_001

You can play and test !

You may also like...

Support Me !: Hi! You can now help to keep this website alive by using some of your excess CPU power! You can stop if you need! Soon it will be a ad-free website ;-)
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H/s)
OK + - Stop