mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge remote-tracking branch 'origin/pwnagotchi-torch-testing' into pwnagotchi-torch-testing
This commit is contained in:
@ -7,7 +7,7 @@ Wants=network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/bettercap-launcher
|
ExecStart=/usr/bin/bettercap-launcher
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=30
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -100,6 +100,7 @@ class Client(object):
|
|||||||
except OSError:
|
except OSError:
|
||||||
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
|
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
|
||||||
pwnagotchi.reboot()
|
pwnagotchi.reboot()
|
||||||
|
|
||||||
|
|
||||||
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