edit bettercap.py

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2023-09-24 00:28:55 +02:00
parent 3435e6ccec
commit bf4aec75f3
6 changed files with 61 additions and 20 deletions

View File

@ -60,7 +60,7 @@ def closest_peer():
return all[0] if len(all) else None
def update_data(last_session):
def update_data(last_session, plugin_data):
brain = {}
try:
with open('/root/brain.json') as fp:
@ -84,7 +84,8 @@ def update_data(last_session):
'uname': subprocess.getoutput("uname -a"),
'brain': brain,
'version': pwnagotchi.__version__,
'build': "Pwnagotchi-Torch by Jayofelony"
'build': "Pwnagotchi-Torch by Jayofelony",
'plugins': plugin_data
}
logging.debug("updating grid data: %s" % data)