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:
|
with open(path, 'rb') as file_to_upload:
|
||||||
cookie = {"key": self.options['api_key']}
|
cookie = {"key": self.options['api_key']}
|
||||||
payload = {"file": file_to_upload,
|
payload = {"file": file_to_upload}
|
||||||
"multipart/form-data": {"Expires": "0"}}
|
|
||||||
headers = {"HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"}
|
headers = {"HTTP_USER_AGENT": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1"}
|
||||||
try:
|
try:
|
||||||
result = requests.post(self.options['api_url'],
|
result = requests.post(self.options['api_url'],
|
||||||
@ -162,8 +161,7 @@ class WpaSec(plugins.Plugin):
|
|||||||
|
|
||||||
def on_unload(self, ui):
|
def on_unload(self, ui):
|
||||||
with ui._lock:
|
with ui._lock:
|
||||||
ui.remove_element('ssid')
|
ui.remove_element('pass')
|
||||||
ui.remove_element('password')
|
|
||||||
|
|
||||||
def on_ui_update(self, ui):
|
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']:
|
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