How ernw/dizzy-legacy works
Main Components
a) Core Components:
• Packet Generation Engine (dizzy.py as the main entry point)
• Packet Description Parser (for .dizz files)
• Action Sequence Handler (for .act files)
• USB Device Simulation Layer (usb directory)
b) Supporting Components:
• Utility Functions (tools.py)
• Standard Libraries (lib directory)
• USB Device Types (various USB*.py files)
Key Relationships to Highlight
• Data flow from .dizz files through the packet generation system
• Control flow from .act files through the interaction engine
• Inheritance relationships in the USB device hierarchy
• Component dependencies
Specific Implementation Details
a) Packet Generation:
• Field generation functions (field(), list(), rand(), link())
• Function processors (length(), csum(), etc.)
b) USB Device Simulation:
• Relationship between USBDevice.py and its specialized implementations
• Connection to physical USB interfaces through Facedancer.py
Component Interactions
• Packet parser and function executor
• USB device simulators and the core engine
• Action sequence handler and packet generator