Commit Graph

21 Commits

Author SHA1 Message Date
Christina Quast
ad6f4d3fd2 replace.py: Moved replace func,mitm: addr book replace
Moved the replace function from mitm.py to replace.py.

This implementation is context insensitive for now. It would be
better, to have a mitm class or to pass state information to the
function. Because how else can the MITM code know, whether it gets
passed data to or from the sim card, to or from the phone?
2015-06-24 15:48:41 +02:00
Christina Quast
ca0ebfdbd6 mitm.py: Bugfix: Always check for APDU_S_SEND_DATA
When the command a0 c0 00 00 16 was send, and the the bytes
a0 c0 00 00 where read first, and then only the byte 16 was read
from simtrace, the code never entered the if condition if cmd is not
None, and therefore never executed send_receive_cmd.

Bug fix: Check for state APDU_S_SEND_DATA after apdu_split (parsing)
the ACK-instruction byte, in case it was an instruction which requires
an answer from the SIM card.
2015-06-19 13:29:21 +02:00
Christina Quast
020e5d6a5f mitm.py: Pass device to do_mitm function 2015-05-14 18:11:23 +02:00
Christina Quast
425717d08b mitm,sniffer.py: Send APDUs to wireshark 2015-05-14 17:20:55 +02:00
Christina Quast
34d4eb3f5f mitm.py: Intercept phonebook request 2015-05-04 17:50:32 +02:00
Christina Quast
b6e005cec1 mitm.py: Working pts parsing and answer 2015-05-04 15:28:03 +02:00
Christina Quast
08ea861b11 mitm.py: to be removed, hack to answer pts request 2015-05-03 16:34:32 +02:00
Christina Quast
dace491c65 mitm.py: No ATR replacing 2015-05-03 15:48:09 +02:00
Christina Quast
46a93672d3 mitm.py: Dirty hack for replacing ATR live 2015-04-21 23:00:52 +02:00
Christina Quast
fb91bb7069 Parsing ajusted: respond to phone requests 2015-04-18 14:34:08 +02:00
Christina Quast
158c1dd448 simtrace.py: Use mitm.py in phone and mitm mode 2015-04-17 20:34:09 +02:00
Christina Quast
5384061761 mitm.py: Added apdu splitter code 2015-04-16 11:10:59 +02:00
Christina Quast
9547e9f149 sniffer.py: Added apdu_split support 2015-04-14 22:18:30 +02:00
Christina Quast
2b8a18bf3a Sniffer with ringbuf, works SOMETIMES
* Sniffer uses phone endpoints for communication and the ringbuffer
    routines the phone communication uses
* Most times the Usart1 interrupt is not triggered, and therefore
    no values are recorded
2015-04-12 09:31:36 +02:00
Christina Quast
3a47a4f10e mitm.py: Decreased timeout 2015-04-11 18:16:14 +02:00
Christina Quast
94ddb91e33 mitm.py: New smartcard ATR, expanded pattern match 2015-04-11 12:29:41 +02:00
Christina Quast
f2e53f0553 array to hex function, reduced usb timeout 2015-04-11 08:42:38 +02:00
Christina Quast
6f664a3cc2 mitm.py: read atr on startup, do not reset card to retrieve atr 2015-04-06 19:08:04 +02:00
Christina Quast
88c7fa1bad mitm.py: using new ccid_raw.py functions 2015-04-06 00:35:03 +02:00
Christina Quast
95270b1903 mitm.py: import modules, added exceptions 2015-04-04 19:59:03 +02:00
Christina Quast
69d1f90c12 MITM python program first draft 2015-04-03 11:41:23 +02:00