Compare commits

...

4 Commits

Author SHA1 Message Date
9ea6728a26 2.9.4-2
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-02 22:30:25 +01:00
af4e4d9a35 Another wpa-sec fix
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-02 22:30:04 +01:00
b2175cbcc4 Quick fix version
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-02 18:34:34 +01:00
28c61ae02c Quick fix for wpa-sec
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
2025-01-02 18:34:13 +01:00
2 changed files with 3 additions and 5 deletions

View File

@ -1 +1 @@
__version__ = '2.9.4' __version__ = '2.9.4-2'

View File

@ -36,8 +36,7 @@ class WpaSec(plugins.Plugin):
""" """
with open(path, 'rb') as file_to_upload: with open(path, 'rb') as file_to_upload:
cookie = {"key": self.options['api_key']} cookie = {"key": self.options['api_key']}
payload = {"file": file_to_upload, payload = {"file": file_to_upload}
"multipart/form-data": {"Expires": "0"}}
headers = {"HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"} headers = {"HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"}
try: try:
result = requests.post(self.options['api_url'], result = requests.post(self.options['api_url'],
@ -162,8 +161,7 @@ class WpaSec(plugins.Plugin):
def on_unload(self, ui): def on_unload(self, ui):
with ui._lock: with ui._lock:
ui.remove_element('ssid') ui.remove_element('pass')
ui.remove_element('password')
def on_ui_update(self, ui): def on_ui_update(self, ui):
if 'show_pwd' in self.options and self.options['show_pwd'] and 'download_results' in self.options and self.options['download_results']: if 'show_pwd' in self.options and self.options['show_pwd'] and 'download_results' in self.options and self.options['download_results']: