Merge pull request #10 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
commit b7002f3f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 4 deletions

View File

@ -22,6 +22,10 @@ class AircrackOnly(plugins.Plugin):
def on_loaded(self):
logging.info("aircrackonly plugin loaded")
if 'face' not in self.options:
self.options['face'] = '(>.<)'
check = subprocess.run(
('/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()
@ -59,6 +63,6 @@ class AircrackOnly(plugins.Plugin):
def on_ui_update(self, ui):
if self.text_to_set:
ui.set('face', "(>.<)")
ui.set('face', self.options['face'])
ui.set('status', self.text_to_set)
self.text_to_set = ""

View File

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

View File

@ -23,6 +23,10 @@ class QuickDic(plugins.Plugin):
def on_loaded(self):
logging.info("Quick dictionary check plugin loaded")
if 'face' not in self.options:
self.options['face'] = '(·ω·)'
check = subprocess.run(
('/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()
@ -54,6 +58,6 @@ class QuickDic(plugins.Plugin):
def on_ui_update(self, ui):
if self.text_to_set:
ui.set('face', "(·ω·)")
ui.set('face', self.options['face'])
ui.set('status', self.text_to_set)
self.text_to_set = ""

View File

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