Compare commits

..

2 Commits

Author SHA1 Message Date
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 2 additions and 3 deletions

View File

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

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'],