As part of the software components that run on every Pwnagotchi, the pwngrid binary runs in background in peer mode and exposes an API on http://127.0.0.1:8666/ that is used by the other components for nearby units advertisement and detection, but that can also be used easier access the grid API through the unit itself and therefore without any need for authentication other than the SSH authentication you need to access the unit and talk to the local API.
If status
is one of true
or enabled
it will enable WiFi advertising to nearby units, if false
or disabled
it will disable it.
Returns a list of detected nearby units and their data updated in realtime, sorted by strongest signal first.
Get the data that’s currently used as advertisement.
Set the data that’s used as advertisement. Fields that don’t exist will be added, fields set to null will be deleted.
Returns a list of all the units that have ever been met.
Return the historical information of a unit given its fingerprint.
Get the data that’s currently being sent to the enrollment API.
Set the data that’s currently being sent to the enrollment API. Fields that don’t exist will be added, fields set to null will be deleted. Server side features will be available depending on what you decide to remove from the sent data.
Get a paged list of all the enrolled units, use ?p=2
for pages other than the first one.
Fully opted-in units can use this API to report a pwned access point.
Get a paged list of all PwnMAIL inbox messages.
Get a message given its identifier. The content is decrypted and its signature verified by the pwngrid binary itself.
Mark a message given its identifier, mark can be seen
, unseen
or deleted
.
Send a message to a unit by its fingerprint. The content will be automatically encrypted and signed locally by pwngrid.