From 280ca222612707ace5843f254927b718908c5587 Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Mon, 14 Oct 2019 19:57:04 +0200 Subject: [PATCH] Change header to cookie --- pwnagotchi/plugins/default/wpa-sec.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pwnagotchi/plugins/default/wpa-sec.py b/pwnagotchi/plugins/default/wpa-sec.py index 8ab7351..2b685d0 100644 --- a/pwnagotchi/plugins/default/wpa-sec.py +++ b/pwnagotchi/plugins/default/wpa-sec.py @@ -1,5 +1,5 @@ __author__ = '33197631+dadav@users.noreply.github.com' -__version__ = '1.0.0' +__version__ = '2.0.1' __name__ = 'wpa-sec' __license__ = 'GPL3' __description__ = 'This plugin automatically uploades handshakes to https://wpa-sec.stanev.org' @@ -33,12 +33,12 @@ def _upload_to_wpasec(path, timeout=30): Uploads the file to wpa-sec.stanev.org """ with open(path, 'rb') as file_to_upload: - headers = {'key': OPTIONS['api_key']} + cookie = {'key': OPTIONS['api_key']} payload = {'file': file_to_upload} try: result = requests.post('https://wpa-sec.stanev.org/?submit', - headers=headers, + cookies=cookie, files=payload, timeout=timeout) if ' already submitted' in result.text: