This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import sys | |
import binascii | |
from greatfet import GreatFET | |
from greatfet.protocol import vendor_requests as vr | |
gf = GreatFET() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# USBKeyboard.py | |
# | |
# Contains class definitions to implement a USB keyboard. | |
import greatfet | |
import random | |
import inputs | |
from facedancer.USB import * | |
from facedancer.USBDevice import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaaaaaa.bin | |
baaaaaa.bin | |
caaaaaa.bin | |
daaaaaa.bin | |
eaaaaaa.bin | |
upgrade.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This file is part of LUNA. | |
# | |
import asyncio | |
import logging | |
from greatfet import GreatFET | |
from facedancer import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 * |