Commit graph

101 commits

Author SHA1 Message Date
iceman1001 6d63b3fbed fix: mem leaks. 2019-02-21 16:17:49 +01:00
merlokk 8e199d4c9e add get ATR to cmdsmartcard 2019-02-20 15:51:55 +02:00
iceman1001 ed7122e409 chg: use calloc 2019-01-30 20:21:41 +01:00
iceman1001 34be8b4d37 CHG: wrong iso7816 (@piwi) 2019-01-29 15:23:07 +01:00
merlokk ce6320cdc1 change sc apdu to be compatible with 14a apdu 2019-01-08 19:22:27 +02:00
Chris ab9048f7c5 CHG: 'sc brute' loop 31, 255 2018-12-25 18:18:48 +01:00
Chris ddfe584582 CHG: 'sc brute' - nicer output, rearrange code 2018-12-25 18:16:47 +01:00
iceman1001 acb41a7376 CHG: 'sc brute' - now is interruptable, optional tlv decode, 2018-12-23 09:48:46 +01:00
Oleg Moiseenko a47fa470c1
Merge branch 'master' into atrzerocheck 2018-12-20 23:07:30 +02:00
merlokk d64a48b7fc added check Fi and Di 2018-12-20 23:05:02 +02:00
iceman1001 ddb4fc33c9 CHG: 'sc info' - textual 2018-12-19 23:46:19 +01:00
iceman1001 a9b3fd7138 chg: 'sc brute' - now works :) 2018-12-19 23:21:59 +01:00
iceman1001 0143d3f0e0 chg: 'sc raw' - some more love 2018-12-19 22:50:32 +01:00
merlokk f0c3482799 add T=0 to sc raw command 2018-12-19 20:31:20 +02:00
merlokk b42709837f fix sending Le over 7816 T=0 2018-12-18 18:55:46 +02:00
merlokk 8ab9b6d0ea sw 0x6cxx works 2018-12-18 16:14:52 +02:00
merlokk f32088e25c fix states and get rid of INS code in receive (that code checks by controller) 2018-12-18 14:33:28 +02:00
merlokk a759e94af0 add client side and get rid of reset 2018-12-17 23:48:56 +02:00
merlokk b06054732b code format 2018-12-10 15:04:03 +02:00
merlokk ec17cade36 added TA1 decoding 2018-12-10 15:01:00 +02:00
merlokk 384a277b43 added basic atr decode 2018-12-07 19:58:22 +02:00
merlokk 34b53a5b48 exchange works 2018-12-06 14:44:55 +02:00
merlokk ec3acc7d8a some of emv commands works in test mode 2018-12-05 19:23:13 +02:00
merlokk 312ec79e48 added sketch sc apdu 2018-12-05 17:27:28 +02:00
Jean-Michel Picod 7943ba7d91
Fix logic op being used instead of bitwise op 2018-11-22 23:57:30 +01:00
Chris 73230c8d15 chg: 'trace list 7816' - missing command
chg: 'sc raw' - inverted select logic
2018-11-13 22:29:33 +01:00
Chris ac12d715f0 chg: 'sc raw' - no need to tvl decode twice 2018-11-13 12:34:09 +01:00
Chris affee79b69 fix 'sc raw' - now raw command automatically adjust when getting a 0x6C response code and resend command. 2018-11-08 13:45:57 +01:00
Chris 4d500dff2f textual 2018-11-05 21:20:03 +01:00
Chris 97c0729289 fix: 'sc raw t' - tlv decoding work again
chg: 'sc brute' - now decodes TLV by default the found SFI
chg: 'sc raw' - better detection on armside when failing
2018-09-25 02:54:51 +02:00
Chris dbed5d5855 ADD: 'sc brute' - a naive sfi bruteforcer for smartcards. When a SFI is found, it is read/printed
A first attempt,  work-in-progress.
2018-09-23 20:40:37 +02:00
Chris f3d1c9ea77 chg: 'sc raw' - added response code annotation 2018-09-23 17:05:29 +02:00
Chris 125884c3d5 CHG: 'sc raw' - now requests response if inital command got 0x61 response 2018-09-23 16:35:40 +02:00
Chris 4916042cb4 chg: 'sc raw' ...annoying.. 2018-07-09 15:39:26 +02:00
Chris 7394bb14a0 chg: 'sc raw' reading byte to the end of line now exists correct 2018-07-09 14:13:38 +02:00
Chris 4a8e048694 chg: 'sc raw' added 't' param, for decoding apdu response
chg: i2c,  max timeout fitting for 256bytes frames
2018-07-09 13:15:28 +02:00
Chris 684a692bb0 chg: i2c clean up 2018-07-09 12:10:21 +02:00
Chris 2102b19d11 add: 'sc setclock' 0,1,2, allowed setting sim clocks.. 2018-07-09 11:51:19 +02:00
Chris 714de99f82 chg: i2c fixes. all working.
chg: 'sc info'  now prints url to atr decoder.
chg: 'sc reader' has more options  A, S
2018-07-09 11:22:51 +02:00
Chris c8e1eb11f2 chg: 'sc raw' adjusted output 2018-07-08 21:54:22 +02:00
Chris 99eaef27fd chg: 'sc' more debug 2018-07-08 20:34:47 +02:00
Chris df4c0014f6 chg: i2c fixes 2018-07-08 13:52:30 +02:00
Chris b49eea5637 chg: 'sc raw' -i2c correct lenght?
chg: 'sc upgrade' - warning message
chg: 'sc reader' - print right amount of bytes
2018-07-08 12:03:35 +02:00
Chris f9ba0e59fa chg: 'sc list' - hooked up list command (runs 'trace list 7816' )
chg: 'sc reader' - added 's' silent parameter
chg: 'sc info' - added 's' silent parameter
2018-07-08 11:19:26 +02:00
Chris bcffde1198 chg: smartcard - wait until SCL goes high 2018-07-06 11:16:46 +02:00
Chris f130b97051 chg: 'sc' textual 2018-07-05 21:16:14 +02:00
Chris 36d774506c chg: 'sm raw' - implemented 'r' don't read reply 2018-07-05 21:10:21 +02:00
Chris 1a2ef57c0c chg: 'sm raw' - allowing hex bytes to be with & without space. 112233 and 11 22 33 2018-07-05 20:53:50 +02:00
Chris fca841122f chg: 'sc reader' - hooked up atr. 2018-07-05 16:32:10 +02:00
Chris ee006c6a7b add: sc upgrade - beta test 2018-07-05 14:38:31 +02:00
Chris f70b8be5de add: 'sc' - smart card commad [rdv40]
chg: test to read out firmware
2018-07-05 10:48:24 +02:00