Page cover

P4wnP1 A.L.O.A. (DIY) Project

Intro

I've always wanted a Flipper Zero, but the reality is that getting one from my country is becoming more and more of a distant dream. So, instead of just sitting around, I decided to take matters into my own hands and try to build my own... well, not exactly a Flipper Zero, but a "Hack Tool" to keep myself entertained and pass the time 😎.

There are plenty of project options out there, but I've finally decided to go with P4wnP1 A.L.O.A as the framework for my "Hack Tool," setting it up on a Raspberry Pi Zero.

In this post, I'll share my journey in building this tool, the successes and mishaps along the way, and see if we finally achieve the goal 😅.

The post will be divided into two main sections: hardware and software aspects.

Hardware

For building this "Hack Tool," I used the following hardware pieces/components:

(Attached, in some cases, you'll find the estimated price in dollars and a purchase link)

Component
Price
Status
Link

Raspberry Pi Zero W (Solder)

~$14.10

Acquired

USB Expansion Board for Raspberry Pi Zero W

~$1.50

Acquired

1.3-inch LCD SPI Hat for Raspberry Pi Zero W

~$6.00

Acquired

Link AliExpress

P4wnP1 Case

Free

To Be Printed

Software

Resources

Common Problems

No Internet Connection on P4wnP1

There are several ways to get your P4wnP1 connected to the internet. Personally, I found the following guide incredibly helpful in solving my issues: [Video Guide]. Here's a quick rundown of what you need to do:

  1. On your host machine (Windows in my case), go to the Network and Sharing Center and configure your internet-connected network interface (for me, it’s the Wi-Fi adapter) to share its connection with the P4wnP1's network adapter.

  1. Since this change will overwrite the network settings of the P4wnP1 adapter, you’ll need to reconfigure its IP settings. Set the IP address back to 172.16.0.2 and the subnet mask to 255.255.255.252.

  1. If the P4wnP1's network adapter is still set to public, you can switch it to private using PowerShell in admin mode:

PS C:\WINDOWS\system32> Get-NetConnectionProfile 
# To see the network adapter's name

PS C:\WINDOWS\system32> Set-NetConnectionProfile -Name "ADAPTER_NAME" -NetworkCategory Private
# To change the network profile to Private
  1. With these changes, you should be able to access the P4wnP1 web interface at http://172.16.0.1:8000.

  2. Now, connect to the P4wnP1 via SSH and check if you have internet access (ping). If you don’t, you can run the following commands:

sudo route add -net default gw 172.16.0.2

This command sets the default gateway to 172.16.0.2, essentially directing the P4wnP1 to route all traffic through this gateway for internet access.

sudo echo "nameserver 8.8.8.8" > /etc/resolv.conf

This command sets Google’s DNS server (8.8.8.8) as the resolver, ensuring that domain names can be resolved into IP addresses.

  1. Finally, recheck the internet connection, and everything should be good to go!

P4wnP1 A.L.O.A OLED Menu install.sh issues

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install python3-dev python3-pip libfreetype-dev libjpeg-dev
sudo pip3 install --upgrade pip
sudo pip3 install --upgrade luma.oled
sudo mkdir -p /root/BeBoXGui/
sudo cp *.py /root/BeBoXGui/
sudo mkdir -p /root/BeBoXGui/images
cd images
sudo cp * /root/BeBoXGui/images/
cd ..
sudo cp scripts/runmenu.sh /usr/local/P4wnP1/scripts/

Last updated