Skip to main content

Pwnagotchi's Pwngrid API client (⌐■_■)

Project description

pwngrid-api

PyPI Python 3.6, 3.7, 3.8

Pwnagotchi's Pwngrid API client (⌐■_■)

$ 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, sender = pwngrid.read_message(m["id"])
    print(sender.identity, cleartext.decode("utf-8"))

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pwngrid-api, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pwngrid-api-0.0.3.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page