From 2cd564137d9ca5803b547c602a19244b5d49133a Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 21 Dec 2024 01:09:02 +0100 Subject: [PATCH] Change back wpa-sec.py Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/wpa-sec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/wpa-sec.py b/pwnagotchi/plugins/default/wpa-sec.py index 137aa600..0d2f20c1 100644 --- a/pwnagotchi/plugins/default/wpa-sec.py +++ b/pwnagotchi/plugins/default/wpa-sec.py @@ -36,11 +36,11 @@ class WpaSec(plugins.Plugin): """ with open(path, 'rb') as file_to_upload: cookie = {'key': self.options['api_key']} - + payload = {'file': file_to_upload} try: result = requests.post(self.options['api_url'], cookies=cookie, - files=file_to_upload, + files=payload, timeout=timeout) if result.status_code == 200: if ' already submitted' in result.text: