mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fix: creating handshakes folder if it doesn't exist on startup (fixes #227)
This commit is contained in:
@ -38,6 +38,9 @@ class Agent(Client, AsyncAdvertiser, AsyncTrainer):
|
|||||||
self._handshakes = {}
|
self._handshakes = {}
|
||||||
self.last_session = LastSession(self._config)
|
self.last_session = LastSession(self._config)
|
||||||
|
|
||||||
|
if not os.path.exists(config['bettercap']['handshakes']):
|
||||||
|
os.makedirs(config['bettercap']['handshakes'])
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_connected():
|
def is_connected():
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user