The other day I stumbled across Pwnagotchi and had to give it a try. I didn’t have a Pi Zero WH but, I did have a Pi3 with 3.5" LCD, so I wanted to see if I could get it all working as a test platform before trying to find the PIZero.

This isn’t really supported, but it does seem to work for testing purposes anyway so I thought I’d put this up for anyone else who wants to try.

Here’s how to get’r done

  1. get the image from here

  2. extract

     $ 7z e pwnagotchi-raspios-lite- 
  3. burn o microsd where /dev/sdd is your microsd card.

     $ sudo dd if=pwnagotchi-raspios-lite-1.6.1.img of=/dev/sdd bs=1M 
  4. before removing sd card, edit /boot/config.toml and change anything you need to in there = "pwnagotchi"
     main.lang = "en"
     main.whitelist = [
     main.plugins.grid.enabled = true = true
     main.plugins.grid.exclude = [
     ui.display.enabled = true
     ui.display.type = "waveshare_2"
     ui.display.color = "black"
  5. save and exit the file, unmount the disks

     $ sudo umount /dev/sdd* 
  6. put the microsd in the raspberry pi

  7. boot the pi with ethernet plugged in and your wlan usb adapter.

  8. ssh to it

     user: pi
     pass: raspberry 
  9. upgrade everything

     $ sudo rm /var/lib/dpkg/status
     $ sudo touch /var/lib/dpkg/status
     $ sudo apt update
     $ sudo apt upgrade 
  10. get the adafruit 3.5" tft working

    $ sudo mv /etc/apt/apt.conf.d/20listchanges /etc/apt/apt.conf.d/20listchanges.bak
    $ sudo apt-get install apt-listchanges
    $ sudo apt-get install -y git python3-pip
    $ sudo apt-get --reinstall install python3-software-properties
    $ python3 -m pip install --upgrade pip
    $ pip3 install --upgrade adafruit-python-shell click
    $ git clone
    $ cd Raspberry-Pi-Installer-Scripts
  11. I have the PiTFT 3.5" Resistive touchscreen so, i went with this, but you can find others here

    $ sudo python3 --display=35r --rotation=90 --install-type=console
  12. now get it working with pwnagotchi. ssh to your rpi. taken from here

    $ sudo /bin/bash 
    # cd /root
    # cp /usr/local/lib/python3.7/dist-packages/pwnagotchi/ui/web/static/images/pwnagotchi.png /root 
    # apt install fbi 
    # nano /etc/pwnagotchi/config.toml 
  13. add these or edit yours to be like this

    ui.display.enabled = true
    ui.display.type = "waveshare35lcd"
    ui.display.color = "black"
  14. then edit the boot cmd line

    # nano /boot/cmdline.txt 
    add this if not already there 
    add "modules-load=dwc2,g_ether"
  15. then edit your rc.local

    # nano /etc/rc.local
    add this before exit 0 
    ln -s /root/pwnagotchi.png /tmp/pwnagotchi_1.png; ln -s /root/pwnagotchi.png /tmp/pwnagotchi_2.png; ln -s /root/pwnagotchi.png /tmp/pwnagotchi_3.png;
  16. then edit your /etc/profile

    # nano /etc/profile 
    add this at the end 
    . /home/pi/
  17. then edit your pwnagotchi configuration file

    # nano /home/pi/ 
    sudo fbi -T 1 -a -noverbose -t 15 -cachemem 0 /tmp/pwnagotchi_1.png /tmp/pwnagotchi_2.png /tmp/pwnagotchi_3.png &
  18. then make it executable

    # chmod +x /home/pi/ 
  19. you’re done. just reboot and you’re all set to start testing.