From 734ca9897e8cdb5ccd3fbdc6f84bb5304110f365 Mon Sep 17 00:00:00 2001 From: Xuan Date: Tue, 4 Feb 2020 05:03:21 +0000 Subject: [PATCH] Support descriptors with non-standard length. --- facedancer/USBConfiguration.py | 2 +- facedancer/USBDevice.py | 2 +- facedancer/USBEndpoint.py | 2 +- facedancer/USBInterface.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/facedancer/USBConfiguration.py b/facedancer/USBConfiguration.py index aa5cb4f..3563c2b 100644 --- a/facedancer/USBConfiguration.py +++ b/facedancer/USBConfiguration.py @@ -52,7 +52,7 @@ def from_binary_descriptor(cls, data): # Unpack the main colleciton of data into the descriptor itself. descriptor_type, total_length, num_interfaces, index, string_index, \ - attributes, max_power = struct.unpack('