From 28c61ae02c0c6e20fcaad37fc0da4ea891e91b7f Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 2 Jan 2025 18:34:13 +0100 Subject: [PATCH] Quick fix for wpa-sec Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/wpa-sec.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/wpa-sec.py b/pwnagotchi/plugins/default/wpa-sec.py index ff1a0fbd..d4a34aa5 100644 --- a/pwnagotchi/plugins/default/wpa-sec.py +++ b/pwnagotchi/plugins/default/wpa-sec.py @@ -36,8 +36,7 @@ class WpaSec(plugins.Plugin): """ with open(path, 'rb') as file_to_upload: cookie = {"key": self.options['api_key']} - payload = {"file": file_to_upload, - "multipart/form-data": {"Expires": "0"}} + payload = {"file": file_to_upload} headers = {"HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"} try: result = requests.post(self.options['api_url'],