From db70564a39e8bf941c409f942e8a0c9917885655 Mon Sep 17 00:00:00 2001 From: FW_Mumuzi <74121593+Mumuzi7179@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:33:28 +0800 Subject: [PATCH] Update UsbKeyboardExtract.py update bluetooth --- UsbKeyboardExtract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UsbKeyboardExtract.py b/UsbKeyboardExtract.py index 477f775..d2c9967 100644 --- a/UsbKeyboardExtract.py +++ b/UsbKeyboardExtract.py @@ -6,7 +6,7 @@ shiftKeys = {"04":"A", "05":"B", "06":"C", "07":"D", "08":"E", "09":"F", "0a":"G def extract_data(types,filename): presses = [] - type_dicts = {"capdata": "usb.capdata", "usbhid": "usbhid.data"} + type_dicts = {"capdata": "usb.capdata", "usbhid": "usbhid.data","bluetooth":"btatt.value"} mytype = type_dicts[types] os.system(f'tshark.exe -r "{filename}" -T fields -e {mytype} > usb.dat') @@ -71,4 +71,4 @@ def process_data(res): datas = ''.join(datas) delete_data = ''.join(delete_data) - return datas,delete_data \ No newline at end of file + return datas,delete_data