Merge pull request from xBelladonna/feature/custom-face

Add face option in aircrackonly & quickdic plugins
This commit is contained in:
Simone Margaritelli
2020-01-14 11:36:36 +01:00
committed by GitHub
4 changed files with 14 additions and 4 deletions

@@ -22,6 +22,10 @@ class AircrackOnly(plugins.Plugin):
def on_loaded(self): def on_loaded(self):
logging.info("aircrackonly plugin loaded") logging.info("aircrackonly plugin loaded")
if 'face' not in self.options:
self.options['face'] = '(>.<)'
check = subprocess.run( check = subprocess.run(
('/usr/bin/dpkg -l aircrack-ng | grep aircrack-ng | awk \'{print $2, $3}\''), shell=True, stdout=subprocess.PIPE) ('/usr/bin/dpkg -l aircrack-ng | grep aircrack-ng | awk \'{print $2, $3}\''), shell=True, stdout=subprocess.PIPE)
check = check.stdout.decode('utf-8').strip() check = check.stdout.decode('utf-8').strip()
@@ -59,6 +63,6 @@ class AircrackOnly(plugins.Plugin):
def on_ui_update(self, ui): def on_ui_update(self, ui):
if self.text_to_set: if self.text_to_set:
ui.set('face', "(>.<)") ui.set('face', self.options['face'])
ui.set('status', self.text_to_set) ui.set('status', self.text_to_set)
self.text_to_set = "" self.text_to_set = ""

@@ -1,2 +1,3 @@
aircrackonly: aircrackonly:
enabled: false enabled: false
face: '(>.<)'

@@ -23,6 +23,10 @@ class QuickDic(plugins.Plugin):
def on_loaded(self): def on_loaded(self):
logging.info("Quick dictionary check plugin loaded") logging.info("Quick dictionary check plugin loaded")
if 'face' not in self.options:
self.options['face'] = '(·ω·)'
check = subprocess.run( check = subprocess.run(
('/usr/bin/dpkg -l aircrack-ng | grep aircrack-ng | awk \'{print $2, $3}\''), shell=True, stdout=subprocess.PIPE) ('/usr/bin/dpkg -l aircrack-ng | grep aircrack-ng | awk \'{print $2, $3}\''), shell=True, stdout=subprocess.PIPE)
check = check.stdout.decode('utf-8').strip() check = check.stdout.decode('utf-8').strip()
@@ -54,6 +58,6 @@ class QuickDic(plugins.Plugin):
def on_ui_update(self, ui): def on_ui_update(self, ui):
if self.text_to_set: if self.text_to_set:
ui.set('face', "(·ω·)") ui.set('face', self.options['face'])
ui.set('status', self.text_to_set) ui.set('status', self.text_to_set)
self.text_to_set = "" self.text_to_set = ""

@@ -1,3 +1,4 @@
quickdic: quickdic:
enabled: false enabled: false
wordlist_folder: /opt/wordlists/ wordlist_folder: /opt/wordlists/
face: '(·ω·)'