new: saving unit's fingerprint to /etc/pwnagotchi/fingerprint for easy access

This commit is contained in:
Simone Margaritelli
2019-10-14 11:36:42 +02:00
parent f8a28d375b
commit a8a0f842a3
3 changed files with 8 additions and 1 deletions

View File

@ -29,6 +29,9 @@ class AsyncAdvertiser(object):
self._peers = {}
self._closest_peer = None
def fingerprint(self):
return self._keypair.fingerprint
def _update_advertisement(self, s):
self._advertisement['pwnd_run'] = len(self._handshakes)
self._advertisement['pwnd_tot'] = utils.total_unique_handshakes(self._config['bettercap']['handshakes'])