Merge pull request #10 from xBelladonna/feature/custom-face
Add face option in aircrackonly & quickdic plugins
This commit is contained in:
commit
b7002f3f97
@ -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 = ""
|
||||
|
@ -1,2 +1,3 @@
|
||||
aircrackonly:
|
||||
enabled: false
|
||||
enabled: false
|
||||
face: '(>.<)'
|
@ -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 = ""
|
||||
|
@ -1,3 +1,4 @@
|
||||
quickdic:
|
||||
enabled: false
|
||||
wordlist_folder: /opt/wordlists/
|
||||
wordlist_folder: /opt/wordlists/
|
||||
face: '(·ω·)'
|
Loading…
x
Reference in New Issue
Block a user