mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 05:38:33 +03:00
mitm.py: to be removed, hack to answer pts request
This commit is contained in:
@@ -93,6 +93,10 @@ def do_mitm(sim_emul=True):
|
||||
apdu = Apdu_splitter()
|
||||
|
||||
apdu.split(c)
|
||||
if apdu.state == apdu_states.APDU_S_FIN and apdu.pts_buf == [0xff, 0x00, 0xff]:
|
||||
sim_data = sm_con.send_receive_cmd(apdu.pts_buf)
|
||||
write_phone(dev, replace(array('B', sim_data)))
|
||||
continue;
|
||||
|
||||
if apdu.state == apdu_states.APDU_S_SW1:
|
||||
if apdu.data is not None and len(apdu.data) == 0:
|
||||
|
||||
Reference in New Issue
Block a user