Skip to content

A dope AF repo of all the custom plugins and configurations I use (minor customizations & improvements) + guides & troubleshooting.

Notifications You must be signed in to change notification settings

SHUR1K-N/Project-Pwnag0dchi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Pwnag0dchi

These are the slightly customized plugins I use along with their configurations. Complete Pwnagotchi guide + some common troubleshooting steps included.

I'll keep updating this as much as possible, and you can share suggestions or potential corrections via opening up an Issue.

Table of Contents





Features

  • On-device dictionary attacks automatically upon finding handshakes (against customized, smaller wordlists)
  • Individual toggles for association and deauthentication attacks to choose 1 of 3 attack approaches:
    • Fully aggressive (association + deauthentication attacks)
    • Less aggressive (either association or deauthentication attack)
    • Fully passive (no attacks, just passive handshake capture)
  • Downloadable handshakes from web UI (fixed)
  • UI elements tweaked AF (positions, sizes, fonts, etc.)
    • Space added to "CH" value to accomodate 5GHz channels without overlap
  • Plugin modifications (for cosmetic purposes, decluttering, and slightly improved functionality (maybe))
  • Added information to the screen:
    • Latest cracked handshake in plain-text (as per WPA-sec)
    • Level & XP bar (collect handshakes to gain XP and level up)
    • Enabled attacks (association, deauthentication, or both, or none)
    • Hardware monitoring (current memory usage, CPU usage, CPU frequency, and temperature)
    • Internet connection/sharing status
    • Current interface's IP address (helps with connecting via SSH / web UI)
  • More stuff I may be forgetting

Installing Plugins & Applying Configurations

  1. Copy all files from ″Plugins″ to /usr/local/share/pwnagotchi/custom-plugins/
  2. Copy all files from ″Configurations″ to /etc/pwnagotchi/
  3. Apply all changes using sudo systemctl restart pwnagotchi.service

Login Credentials (Web UI)

changeme:changeme

Initial settings to be changed

Via web UI: Plugins > web-cfg

Via /etc/pwnagotchi/config.toml

Then make the following additions / changes:

  1. main.name should be whatever you'd like to name your Pwnagotchi (example: Pwnag0dchi)
  2. main.whitelist.#0 & main.plugins.grid.exclude should be the SSID of your home Wi-Fi network, so your Pwnagotchi does not attack it (example: Shuriken-WiFi_2.4GHz)
  3. main.plugins.wpa-sec.api_key should be your WPA-sec API key (go here first and click on "Get key" to get your free API key e-mailed to you

    NOTE: When copy-pasting the API key to main.plugins.wpa-sec.api_key, make sure there are no spaces at the beginning or end of the API key




Pwnagotchi Noob Guide

Parts To Get

  • Waveshare 2.13 inch e-Ink display
    • Versions 3 & 4 work best. This is denoted by a small circular sticker on the board (like this)
    • Ignore the "Rev2.1" that's printed on the board; that has nothing to do with the version
    • Do NOT get the tri-color variant with black/white/red (variant "B"). Get only the black/white version. Both look pretty much identical and cost the same, so it's easy to purchase the wrong one
  • Raspberry Pi Zero W (soldering required)

  • OR Raspberry Pi Zero WH (no soldering required)

    • This is the same board with pre-soldered pins (The H in WH is for "Headers")
    • The WH variant may be a little more difficult to find than W
  • Micro-SD card — 16GBs best, must be "UHS-I"

Installation

  1. Attach the Waveshare display to the Pi Zero (hardware part done!)
  2. Download a Pwnagotchi image file of your choice (jayofelony, etc.)
  3. Download / Install Balena Etcher
  4. Insert your Pwnagotchi's micro-SD into a card-reader, and into your computer
  5. Open Balena Etcher
  6. Select the downloaded Pwnagotchi image file
  7. Also carefully select the inserted micro-SD card
  8. Flash!
  9. After flashing completes, insert the micro-SD card into your Pwnagotchi and power it on
  10. On the first boot, your Pwangotchi will need some time to initialize (anywhere from 2 to even 30 minutes). During this initialization period, do not panic if you see nothing on the display or a "Generating keys, do not turn off..." message. Once this process is complete, your Pwangotchi will restart by itself and be ready to use

    NOTE: This only applies to the first boot. You will not have to wait for more than ~2-3 minutes for any future boot-ups

  11. IT'S ALIIIIIVE!

Getting your Pwnagotchi to be accessible via SSH / web UI

https://youtu.be/7nj5Euo5Bng?t=135

NOTE: Follow only from 2:15 to 4:31

NOTE: If you need to install RNDIS drivers manually, download it from this GitHub repo ("RNDIS Driver" directory)

ssh pi@10.0.0.2 or ssh pi@10.002 for short (password = raspberry)

Setting Up Internet-Sharing (Internet access for Pwnagotchi)

  1. Connect your Pwnagotchi (data port, not power)
  2. Download win_connection_share.ps1 from this GitHub repo ("Internet Sharing" directory)
  3. Open PowerShell as an administrator (right-click > "Run as administrator")
  4. cd .\Downloads\
  5. .\win_connection_share.ps1 -SetPwnagotchiSubnet
  6. Reboot Windows machine
  7. .\win_connection_share.ps1 -EnableInternetConnectionSharing
  8. Start > type "network" > "View network connections"
  9. Right-click your Pwnagotchi's RNDIS > Properties > IPv4 configuration > re-add static IP manually (10.0.0.1, 255.255.255.0, 10.0.0.1, 8.8.8.8)
  10. Right-click your main ethernet > Properties > "Sharing" tab > check both boxes + select sharing for your Pwnagotchi's RNDIS > OK
  11. Reconnect Pwnagotchi (data port, not power)
  12. Command Prompt > ssh pi@10.0.0.2 (password = raspberry)
  13. Confirm Internet connectivity after Pwnagotchi initializes completely using ping google.com



Massive Plugins List (names, descriptions, links, etc.)

https://docs.google.com/spreadsheets/d/1os8TRM3Pc9Tpkqzwu548QsDFHNXGuRBiRDYEsF3-w_A

Local Handshake Cracking (within the Pwnagotchi itself, without Internet / WPA-sec)

The better_quickdic plugin is responsible for this. Just add your small custom wordlists to /home/pi/wordlists/, and a dictionary attack will be performed using all the wordlists in this directory as soon as a valid handshake is captured

NOTE: Disable / Remove the aircrackonly & hashie / hashieclean plugins for this to be most effective. I've found in some of my testing that these plugins sometimes get rid of even valid handshakes before better_quickdic could start cracking them

NOTE: If a handshake is cracked using this plugin, it will NOT show on the Pwnagotchi screen (even with display-password enabled). You'll have to manually check the /home/pi/handshakes directory for any files that end in .pcap.cracked. If you have tons of handshakes there, you can use ls /home/pi/handshakes/ | grep crack to quickly filter out only the ones cracked

Bluetooth-Tethering Tutorial (short & crisp)

https://www.youtube.com/watch?v=cnmrKCBzDRU

Using External Wi-Fi Adapters

You can attach an external Wi-Fi adapter to the Pwnagotchi for a significant increase in range, or for 5GHz support, or both.

NOTE: This would completely depend on your external adapter's chipset. Many chipsets are readily supported by the underlying Linux OS, but others would require you to install the chipset's driver manually via SSH.

TIP: First, try the below steps and see if your adapter works with the Pwnagotchi (don't forget to reboot). If not, install the drivers manually.

Enabling External Wi-Fi Adapter

  1. sudo nano /boot/config.txt
  2. uncomment dtoverlay=disable-wifi (remove the # from the start of the line)
  3. comment out dtoverlay=dwc2 (add a # at the start of the line)
  4. Reboot Pwnagotchi with Wi-Fi adapter connected (data port, not power)

Disabling External Wi-Fi Adapter

  1. sudo nano /boot/config.txt
  2. comment out dtoverlay=disable-wifi (add a # at the start of the line)
  3. uncomment dtoverlay=dwc2 (remove the # from the start of the line)
  4. Reboot Pwnagotchi with Wi-Fi adapter disconnected (data port, not power)



Troubleshooting

Internet Sharing Not Working (or was previously working)

  1. Connect Pwnagotchi (data port, not power)
  2. Start > type "network" > "View network connections"
  3. Right-click your primary ethernet (Internet) > Properties > "Sharing" tab > uncheck both boxes > OK
  4. Right-click your Pwnagotchi's RNDIS > Properties > IPv4 configuration > re-add static IP manually (10.0.0.1, 255.255.255.0, 10.0.0.1, 8.8.8.8) > OK
  5. Right-click your main ethernet > Properties > "Sharing" tab > check both boxes + select sharing for your Pwnagotchi's RNDIS > OK
  6. Reconnect Pwnagotchi (data port, not power)
  7. Test Internet connectivity after Pwnagotchi initializes completely with ping google.com

My 'gotchi deauths even when the "enable_deauth" plugin is turned off

This usually happens with new sessions; the 'gotchi just seems to "forget" what the enable/disable state was when you power it off. Simple fix:

  1. Web UI > Plugins
  2. Enable and then disable "enable_deauth". This will immediately disable deauth, and the plugin's toggle will now work effectively (at least for the current session)

My 'gotchi does associations even when the "enable_assoc" plugin is turned off

This usually happens with new sessions; the 'gotchi just seems to "forget" what the enable/disable state was when you power it off. Simple fix:

  1. Web UI > Plugins
  2. Enable and then disable "enable_assoc". This will immediately disable association, and the plugin's toggle will now work effectively (at least for the current session)

I got the tri-color variant of the Waveshare screen, and it sucks. Now what?

  1. First of all — told you so
  2. Connect Pwnagotchi (data port, not power)
  3. Web UI > Plugins > web-cfg
  4. Look for ui.fps, and change the value to 1 or 2
  5. Scroll to the top, hit "Save and restart"
  6. Screen should work relatively much better now

About

A dope AF repo of all the custom plugins and configurations I use (minor customizations & improvements) + guides & troubleshooting.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project