A Raspbian WiFi hacking distribution

I’ve been researching/experimenting with WiFi hacking and was frustrated with the process of configuring a Raspberry Pi Zero W to be setup the correct way. There are lots of posts on the Web covering how to do this, but what I really wanted is an image I could just load onto a SD card and boot into the system right away.

The best way to create a Raspbian distribution is to use the Pi-Gen tool. This can be found here. What I learned from doing the process myself is:

  1. Use Debian Buster / 386 as your building base.
  2. Take advantage of the APT_PROXY option. This allows the packages to be cached, speeding up subsequent builds.
  3. If using Docker, increase the Disk Image size to at least 100G.

I created a distribution I call cap-zero. It is a fork of pi-gen to build a system that uses the onboard WiFi to create an access point named cap-zero. There is no authentication for assocation. The ssh daemon runs automatically. Mosh is installed as well. The following WiFi hacking tools are installed:

  • bettercap
  • aircrack-ng and related tools
  • bully

Plugging in a USB WiFi causes that adapter to be put into monitor mode, therefore allowing WiFi hacking from it. cap-zero can be found at GitHub. Feel free to fork it or ask for improvements. My original goal is to have a very minimal system, but as I explore WiFi hacking, I’ll probably expand it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.