mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
9ea6728a26 | |||
af4e4d9a35 | |||
b2175cbcc4 | |||
28c61ae02c |
@ -1 +1 @@
|
||||
__version__ = '2.9.4'
|
||||
__version__ = '2.9.4-2'
|
||||
|
@ -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'],
|
||||
@ -162,8 +161,7 @@ class WpaSec(plugins.Plugin):
|
||||
|
||||
def on_unload(self, ui):
|
||||
with ui._lock:
|
||||
ui.remove_element('ssid')
|
||||
ui.remove_element('password')
|
||||
ui.remove_element('pass')
|
||||
|
||||
def on_ui_update(self, ui):
|
||||
if 'show_pwd' in self.options and self.options['show_pwd'] and 'download_results' in self.options and self.options['download_results']:
|
||||
|
Reference in New Issue
Block a user