mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update
This commit is contained in:
@ -136,6 +136,7 @@ def restart(mode):
|
|||||||
os.system("touch /root/.pwnagotchi-manual")
|
os.system("touch /root/.pwnagotchi-manual")
|
||||||
|
|
||||||
os.system("service bettercap restart")
|
os.system("service bettercap restart")
|
||||||
|
time.sleep(1)
|
||||||
os.system("service pwnagotchi restart")
|
os.system("service pwnagotchi restart")
|
||||||
|
|
||||||
|
|
||||||
|
@ -102,9 +102,7 @@ class Client(object):
|
|||||||
except OSError:
|
except OSError:
|
||||||
sleep_time = min_sleep + max_sleep * random.random()
|
sleep_time = min_sleep + max_sleep * random.random()
|
||||||
logging.warning('connection to the bettercap endpoint failed...')
|
logging.warning('connection to the bettercap endpoint failed...')
|
||||||
logging.warning('retrying connection in {} sec'.format(sleep_time))
|
pwnagotchi.restart("AUTO")
|
||||||
await asyncio.sleep(sleep_time)
|
|
||||||
continue
|
|
||||||
|
|
||||||
def run(self, command, verbose_errors=True):
|
def run(self, command, verbose_errors=True):
|
||||||
while True:
|
while True:
|
||||||
|
Reference in New Issue
Block a user