Pwnagotchi's Pwngrid API client
Project description
pwngrid-api
a client for Pwnagotchi's Grid API
$ pip install pwngrid-api
Example
import pwngrid_api
try:
private_key = pwngrid_api.utils.load_key("./id_rsa_client")
except FileNotFoundError:
private_key = pwngrid_api.utils.gen_key()
pwngrid_api.utils.save_key(private_key, "./id_rsa_client")
pwngrid = pwngrid_api.PwngridClient("pygotchi", private_key)
print(pwngrid.unit.identity)
pwngrid.enroll()
pwngrid.send_message(
recipient="94b67781c4057533d2e2700a9fcce924fbcfc0abf57724415ebc6819a51e4e39",
cleartext=b"Hello World!",
)
for m in pwngrid.get_inbox()["messages"]:
data, cleartext = pwngrid.read_message(m["id"])
print(data["sender"], cleartext.decode("utf-8"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pwngrid-api-0.0.1.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pwngrid_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 268cd6c5928637c5fb3eedbf0d86c45b5440fc0ce0a2f444688584f32a514d25 |
|
MD5 | 704cba69d31b5062bd778f2a1de5e200 |
|
BLAKE2b-256 | 01ff7028beae8ba7771db11458071086410eef29f886c426cd51e0b96e608b9e |