Connected pwnagotchi/strategy module to agent.py so channel selection is always active: Changes: 1. Import Strategy in agent.py 2. Initialize strategy in Agent.__init__() 3. Wire strategy event handlers to key agent methods: - on_wifi_update(): called when WiFi list refreshed - select_next_channels(): called to set channels for next epoch - on_association(): track assoc interactions per channel - on_deauthentication(): track deauth interactions per channel - on_handshake(): track handshake captures per channel Integration points: - set_access_points(): updates strategy and selects next channels - associate(): reports association to strategy - deauth(): reports deauth to strategy - _on_event_new_handshake(): reports handshake to strategy The strategy now: - Receives every relevant agent event - Maintains per-channel statistics - Selects next channels to scan based on active APs + random exploration - Updates config['personality']['channels'] for next epoch - Guides agent behavior through channel selection This makes channel selection strategy a core, always-active component instead of an optional plugin, ensuring intelligent adaptation to environment changes. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Pwnagotchi
This is the main source for all forks:
- RPiZeroW (32bit)
- RPiZero2W, RPi3, RPi4, RPi5 (64bit)
For installation docs check out the wiki!
If you want to sponsor this project you can use GH Sponsor or cryptocurrency:
Or send some ethereum: 0x33ceC4Abe80fDE460a924d596d4dE31Bc0767bb6
Proudly partnering with PiSugar!!
Pwnagotchi is a Raspberry Pi leveraging bettercap that survives from its surrounding Wi-Fi environment to maximize the crackable WPA key material it captures (either passively, or by performing authentication and association attacks). This material is collected as PCAP files containing any form of handshake supported by hashcat, including PMKIDs, full and half WPA handshakes.
The "old" Pwnagotchi used to have AI to help it learn from its environment, but since then AI seemed to destabilize the Wi-Fi firmware. So I have chosen to remove the AI completely to give the Pwnagotchi more up-time and longer battery life when taking it on a walk.
Multiple units within close physical proximity can "talk" to each other, advertising their presence to each other by broadcasting custom information elements using a parasite protocol I've built on top of the existing dot11 standard.
Documentation
https://github.com/jayofelony/pwnagotchi/wiki https://pwnagotchi.org
Links
| Official Links | |
|---|---|
| Website | pwnagotchi.org |
| Chat | discord |
| Subreddit | r/pwnagotchi |
License
pwnagotchi created by @evilsocket and updated by us. It is released under the GPL3 license.
