mitm.py: Intercept phonebook request

This commit is contained in:
Christina Quast
2015-05-04 17:50:32 +02:00
parent 789a4013b4
commit 34d4eb3f5f
2 changed files with 15 additions and 0 deletions

View File

@@ -56,6 +56,9 @@ def replace(data):
elif data[0] == 0x9F:
print("*** Replace return val")
# return array('B', [0x60, 0x00])
elif data == PHONE_BOOK_RESP:
print("*** Replace phone book")
return PHONE_BOOK_RESP_MITM
except ValueError:
print("*** Value error! ")
return data