EnterKali Linuxand theRaspberry Pi.

Sometimes evil is justified, and other times, knowing evil means knowing how to beat it.

Check out our evil week tag page.

Kali Linux isan operating system built for internet penetration testing.

All of that applies to the Raspberry Pi version well build here as well.

This way, you never need to install Kali Linux on your primary computer.

Download Win32DiskImagerand unzip the software (.exe file) inside.

Insert your SD card into your Windows PC using a card reader.

Open Win32DiskImager.exe, the software you just downloaded, by double-clicking on it.

If youre running Windows 7 or 8, right press it and choose Run as Administrator instead.

tap the Write button and wait for Win32DiskImager to do its thing.

Insert your SD card into your Mac using a card reader.

Open RPi-sd card builder.

Youll immediately be asked to choose a Raspbian image.

Choose the .img file you downloaded earlier.

Youll be asked if your SD card is connected.

Since we inserted it earlier, it is, so go ahead and click Continue.

Youll be presented with SD card options.

If you only have one inserted, you wont see anything else in the list and itll be checked.

Double-check that your SD card is no longer available in the Finder.

DO NOT remove it from your USB port.

When youre sure, click Continue.

Go ahead and click your display into the Raspberry Pi.

Plug the Wi-Fi adapter and the keyboard into the USB ports.

Then, plug the Pi into your battery pack.

First, youll see a white screen for a little while before the boot process starts up.

Eventually, youre greeted by a login screen.

If youre using the B+, skip to the next step.

The Raspberry Pi 2 currently requires some extra steps to get the screen working.

When you initially boot it up, youre greeted by a sad, white screen.

Thankfully, its not too troublesome to get the screen working.

Go ahead and connect either of those and boot up the Pi now.

Youll see a username and password prompt from the command line on your Raspberry Pi.

jot down in the usernamerootand passwordtoor.

Start by mounting the boot partition.

punch in inmount /dev/mmcblk0p1 /bootand press Enter.

Next, youll download and install Adafruits setup software.

bang out inwget http://adafruit-download.s3.amazonaws.com/adafruit_pitft_kernel_1.20150420-1.tar.gzand press Enter.

jot down intar xf adafruit_pitft_kernel_1.20150420-1.tar.gzand press Enter to extract that file.

throw in incd adafruit_pitft_kernel_1.20150420-1and press Enter.

pop in in./install.shand press Enter.

This will take a while.

When its finished, itll ask you to reboot.

Say yes and wait for the reboot.

bang out ingit clone https://github.com/adafruit/Adafruit-PiTFT-Helper.gitand press Enter to download Adafruits screen software.

Okay, now you gotta mount the boot disk again.

bang out inmount /dev/mmcblk0p1 /bootand press Enter.

bang out incd Adafruit-PiTFT-Helperand press Enter.

pop in in./adafruit-pitft-helper -u /root/ -t 28rand press Enter.

This configures your display.

Now youll need to fix some issues with the boot screen only showing a blinking cursor.

key in insudo apt-get install xserver-xorg-video-fbdevand press Enter.

Once thats complete, bang out incd /usr/share/X11/xorg.conf.d/and press Enter.

Finally, bang out innano 99-fbdev.confand press Enter.

This will open a text file.

That should do it.

Go ahead and punch in reboot and press Enter to reboot your Pi with a working screen.

jot down in the usernamerootand passwordtoor(well change this later on).

key in instartxand press Enter to boot up the graphic interface for Kali.

This can take a little while to load on the Pi.

you might now navigate your Pi with the touch screen and your keyboard.

Tap the small Terminal icon on the dock in the bottom to open up the command line.

Your Wi-Fi card should now work (though you may have to reboot first).

Thankfully, its easy.

bang out in your new password twice.

Its also good to reconfigure your OpenSSH server now so its not set as the default.

punch in indpkg-reconfigure openssh-serverand press Enter.

Now your little portable system is set up and secure.

Hack responsibly, everyone.