Skip to content

Instantly share code, notes, and snippets.

# Creating a GreatFET object implicitly opens the USB connection to the device.
try:
device = GreatFET() # Optionally accepts serialNo= to select between multiple GreatFETs.
except DeviceNotFoundException:
print("No device found!")
sys.exit()
# Once a connection is made, the board's ID is queried, and used to make the board's peripherals available.
# (This either would be a factory method that produces an appropriate class, or a run-time mixin.)
# For now, this would mean that objects are present on 'device' that allow access to each of the Azalea board's peripherals.
@pickeditmate
pickeditmate / glitchkit_tablet.py
Created February 6, 2023 19:48 — forked from ktemkin/glitchkit_tablet.py
reproduces @scanlime's tablet work using GlitchKit instead of the FaceWhisperer
#!/usr/bin/env python2
import sys
import binascii
from greatfet import GreatFET
from greatfet.protocol import vendor_requests as vr
gf = GreatFET()
# USBKeyboard.py
#
# Contains class definitions to implement a USB keyboard.
import greatfet
import random
from facedancer.USB import *
from facedancer.USBDevice import *
from facedancer.USBConfiguration import *
# USBKeyboard.py
#
# Contains class definitions to implement a USB keyboard.
import greatfet
import random
import inputs
from facedancer.USB import *
from facedancer.USBDevice import *
#!/usr/bin/env python3
import greatfet
from greatfet import GreatFET
from facedancer.backends.GreatDancerApp import GreatDancerApp
from facedancer.backends.GreatDancerHostApp import GreatDancerHostApp
TESTER_SERIAL_NUMBER = '0000d1c466e6380c5213'
# Note that these don't exactly line up with the data printed in the EHCI
aaaaaaa.bin
baaaaaa.bin
caaaaaa.bin
daaaaaa.bin
eaaaaaa.bin
upgrade.bin
@pickeditmate
pickeditmate / push_to_talk.py
Created February 6, 2023 19:46 — forked from ktemkin/push_to_talk.py
GreatFET-based push to talk button
#
# This file is part of LUNA.
#
import asyncio
import logging
from greatfet import GreatFET
from facedancer import main
# USBKeyboard.py
#
# Contains class definitions to implement a USB keyboard.
import greatfet
import random
from facedancer.USB import *
from facedancer.USBDevice import *
from facedancer.USBConfiguration import *