mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update bettercap.py
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -99,7 +99,8 @@ class Client(object):
|
|||||||
continue
|
continue
|
||||||
except OSError:
|
except OSError:
|
||||||
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
|
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
|
||||||
pwnagotchi.reboot()
|
sleep(10)
|
||||||
|
continue
|
||||||
|
|
||||||
def run(self, command, verbose_errors=True):
|
def run(self, command, verbose_errors=True):
|
||||||
while True:
|
while True:
|
||||||
@ -113,4 +114,4 @@ class Client(object):
|
|||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
return decode(r, verbose_errors=verbose_errors)
|
return decode(r, verbose_errors=verbose_errors)
|
||||||
|
Reference in New Issue
Block a user