sniffer.py: Added apdu_split support

This commit is contained in:
Christina Quast
2015-04-14 22:18:30 +02:00
parent 51925a6bec
commit 9547e9f149
4 changed files with 35 additions and 13 deletions

View File

@@ -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)