This Pwnagotchi plugin automatically uploads WPA/WPA2 .pcap handshakes to OnlineHashCrack.com using their new V2 API. It collects newly captured .pcap files, extracts hash lines in hashcat 22000 format using hcxpcapngtool, and sends them to the OnlineHashCrack API. The plugin also:
- Batches hashes in groups of up to 50 before uploading to comply with the API's limitations.
- Keeps track of which
.pcapfiles and stations (ESSID/BSSID) have been uploaded, avoiding duplicates. - Periodically checks if any tasks are cracked and updates a local potfile with recovered passwords.
- Automated Upload: Captured
.pcaphandshakes are automatically converted to.22000and uploaded to OnlineHashCrack.com. - Duplicate Prevention: Once a
(ESSID, BSSID)pair is uploaded, the plugin won’t submit it again. - Batch Uploading: Handles batches of up to 50 hashes to comply with API constraints.
- Potfile Integration: Stores cracked passwords locally in a
.potfilefor easy reference. - No Dashboard Required: Interacts purely through the OnlineHashCrack API (no manual dashboard downloads).
- Pwnagotchi: This plugin is designed to run on a Pwnagotchi setup.
- HCXTools: You must have
hcxpcapngtoolinstalled for converting.pcapto.22000hash format. - OnlineHashCrack Account: Obtain a free or paid API key from OnlineHashCrack.com.
-
Install HCXTools:
sudo apt-get update sudo apt-get install hcxtools
Ensure
hcxpcapngtoolis available at/usr/bin/hcxpcapngtool. -
Plugin Setup:
- Place the plugin Python file (e.g.,
ohcapi.py) into theplugins/directory of your Pwnagotchi.
- Place the plugin Python file (e.g.,
-
Configuration: Edit your
config.tomland add the plugin:main.plugins.ohcapi.enabled = true main.plugins.ohcapi.api_key = "sk_your_api_key_here" main.plugins.ohcapi.receive_email = "yes"
- When Pwnagotchi captures a new handshake
.pcapfile, this plugin:- Converts it to a
.22000hash format. - Queues the hash for upload.
- Converts it to a
- On the next
on_internet_availableevent:- All new
.pcapfiles are processed. - New hashes are uploaded to OnlineHashCrack in batches of 50.
- If successful, these
.pcapfiles are marked as reported and their(ESSID, BSSID)is recorded.
- All new
- No Hashes Extracted:
If the plugin logsNo hashes extracted, ensurehcxpcapngtoolis working correctly and that.pcapfiles contain valid handshakes. - API Errors:
Verify yourapi_keyis correct and that you agreed to terms (agree_terms = "yes"in code). Check your internet connection.
Pull requests and issues are welcome. If you find a bug or have an improvement, open an issue or submit a PR on GitHub.
This plugin is released under the GPLv3 license. See the LICENSE file for more details.