mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Change back wpa-sec.py
Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user