mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge branch 'jayofelony:noai' into noai
This commit is contained in:
3
.github/ISSUE_TEMPLATE.yml
vendored
3
.github/ISSUE_TEMPLATE.yml
vendored
@ -33,7 +33,8 @@ body:
|
|||||||
label: Version
|
label: Version
|
||||||
description: What version of our software are you running?
|
description: What version of our software are you running?
|
||||||
options:
|
options:
|
||||||
- 2.9.4-2
|
- 2.9.5.2
|
||||||
|
- 2.9.5.3
|
||||||
default: 0
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
3
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
3
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -33,7 +33,8 @@ body:
|
|||||||
label: Version
|
label: Version
|
||||||
description: What version of our software are you running?
|
description: What version of our software are you running?
|
||||||
options:
|
options:
|
||||||
- 2.9.4-2
|
- 2.9.5.2
|
||||||
|
- 2.9.5.3
|
||||||
default: 0
|
default: 0
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
@ -1 +1 @@
|
|||||||
__version__ = '2.9.5.2'
|
__version__ = '2.9.5.3'
|
||||||
|
@ -13,8 +13,8 @@ import zipfile
|
|||||||
|
|
||||||
|
|
||||||
class GdriveSync(plugins.Plugin):
|
class GdriveSync(plugins.Plugin):
|
||||||
__author__ = '@jayofelony'
|
__author__ = '@jayofelony & Moist'
|
||||||
__version__ = '1.2'
|
__version__ = '1.4'
|
||||||
__license__ = 'GPL3'
|
__license__ = 'GPL3'
|
||||||
__description__ = 'A plugin to backup various pwnagotchi files and folders to Google Drive. Once every hour from loading plugin.'
|
__description__ = 'A plugin to backup various pwnagotchi files and folders to Google Drive. Once every hour from loading plugin.'
|
||||||
|
|
||||||
@ -26,12 +26,15 @@ class GdriveSync(plugins.Plugin):
|
|||||||
self.status = StatusFile('/root/.gdrive-backup')
|
self.status = StatusFile('/root/.gdrive-backup')
|
||||||
self.backup = True
|
self.backup = True
|
||||||
self.backupfiles = [
|
self.backupfiles = [
|
||||||
'/root/brain.nn',
|
|
||||||
'/root/brain.json',
|
'/root/brain.json',
|
||||||
'/root/.api-report.json',
|
'/root/.api-report.json',
|
||||||
'/root/handshakes',
|
'/home/pi/handshakes',
|
||||||
'/root/peers',
|
'/root/peers',
|
||||||
'/etc/pwnagotchi'
|
'/etc/pwnagotchi',
|
||||||
|
'.etc/profile/',
|
||||||
|
'/usr/local/share/pwnagotchi/custom-plugins',
|
||||||
|
'/boot/firmware/config.txt',
|
||||||
|
'/boot/firmware/cmdline.txt'
|
||||||
]
|
]
|
||||||
|
|
||||||
def on_loaded(self):
|
def on_loaded(self):
|
||||||
@ -168,7 +171,7 @@ class GdriveSync(plugins.Plugin):
|
|||||||
"""
|
"""
|
||||||
self.internet = True
|
self.internet = True
|
||||||
|
|
||||||
def on_handshake(self, agent):
|
def on_handshake(self, agent, filename, access_point, client_station):
|
||||||
display = agent.view()
|
display = agent.view()
|
||||||
if not self.ready and not self.internet:
|
if not self.ready and not self.internet:
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user