mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Version 2.3.2
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com> Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -3,19 +3,18 @@ import re
|
|||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
import random
|
import random
|
||||||
from pwnagotchi import restart
|
|
||||||
from io import TextIOWrapper
|
from io import TextIOWrapper
|
||||||
from pwnagotchi import plugins
|
from pwnagotchi import plugins
|
||||||
|
|
||||||
import pwnagotchi.ui.faces as faces
|
import pwnagotchi.ui.faces as faces
|
||||||
from pwnagotchi.bettercap import Client
|
from pwnagotchi.bettercap import Client
|
||||||
|
|
||||||
from pwnagotchi.ui.components import Text, LabeledValue
|
from pwnagotchi.ui.components import Text
|
||||||
from pwnagotchi.ui.view import BLACK
|
from pwnagotchi.ui.view import BLACK
|
||||||
import pwnagotchi.ui.fonts as fonts
|
import pwnagotchi.ui.fonts as fonts
|
||||||
|
|
||||||
|
|
||||||
class Fix_Services(plugins.Plugin):
|
class FixServices(plugins.Plugin):
|
||||||
__author__ = 'xBits'
|
__author__ = 'xBits'
|
||||||
__version__ = '0.1.1'
|
__version__ = '0.1.1'
|
||||||
__license__ = 'GPL3'
|
__license__ = 'GPL3'
|
||||||
@ -325,7 +324,7 @@ class Fix_Services(plugins.Plugin):
|
|||||||
"[Fix_Services set wifi.interfaceface wlan0mon] failed? %s" % repr(result))
|
"[Fix_Services set wifi.interfaceface wlan0mon] failed? %s" % repr(result))
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
logging.info(
|
logging.info(
|
||||||
"[Fix_Services set wifi.interface wlan0mon] except: %s" % (repr(result), repr(err)))
|
"[Fix_Services set wifi.interface wlan0mon] except: %s" % repr(err))
|
||||||
except Exception as cerr: #
|
except Exception as cerr: #
|
||||||
if not display: print("failed loading wlan0mon attempt #%d: %s" % (tries, repr(cerr)))
|
if not display: print("failed loading wlan0mon attempt #%d: %s" % (tries, repr(cerr)))
|
||||||
except Exception as err: # from modprobe
|
except Exception as err: # from modprobe
|
||||||
@ -413,7 +412,7 @@ class Fix_Services(plugins.Plugin):
|
|||||||
# run from command line to brute force a reload
|
# run from command line to brute force a reload
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("Performing brcmfmac reload and restart wlan0mon in 5 seconds...")
|
print("Performing brcmfmac reload and restart wlan0mon in 5 seconds...")
|
||||||
fb = Fix_Services()
|
fb = FixServices()
|
||||||
|
|
||||||
data = {'Message': "kernel: brcmfmac: brcmf_cfg80211_nexmon_set_channel: Set Channel failed: chspec=1234"}
|
data = {'Message': "kernel: brcmfmac: brcmf_cfg80211_nexmon_set_channel: Set Channel failed: chspec=1234"}
|
||||||
event = {'data': data}
|
event = {'data': data}
|
||||||
|
Reference in New Issue
Block a user