mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +03:00
sniffer.py: Added apdu_split support
This commit is contained in:
@@ -7,7 +7,7 @@ import phone
|
||||
from contextlib import closing
|
||||
|
||||
from util import HEX
|
||||
from constants import PHONE_WR, PHONE_RD, PHONE_INT, SIM_WR, SIM_RD, SIM_INT
|
||||
from constants import *
|
||||
|
||||
def find_dev():
|
||||
dev = usb.core.find(idVendor=0x03eb, idProduct=0x6004)
|
||||
@@ -31,8 +31,6 @@ def pattern_match(inpt):
|
||||
else:
|
||||
return inpt
|
||||
|
||||
ERR_TIMEOUT = 110
|
||||
|
||||
def poll_ep(dev, ep):
|
||||
try:
|
||||
return dev.read(ep, 64, 10)
|
||||
|
||||
Reference in New Issue
Block a user