1
0
mirror of https://github.com/Proxmark/proxmark3.git synced 2025-03-12 04:35:36 -07:00

55 Commits

Author SHA1 Message Date
pwpiwi
98a67bc908 Fix some printf/scanf format strings 2020-05-11 14:46:22 +02:00
pwpiwi
5a446cb212
'hf 14a apdu' improvement
(PR 249 by @merlokk on https://github.com/RfidResearchGroup/proxmark3)
* add option to print APDU (if it can be decoded)
* add option to cconstruct extended and normal size APDUs
2019-08-01 11:01:56 -04:00
pwpiwi
ca24170fd4
fix emv search behavior
(taken from PRs 261 and 262 by @merlokk on https://github.com/RfidResearchGroup/proxmark3)
+ whitespace fixes
2019-08-01 10:58:22 -04:00
Oleg Moiseenko
0b6efd01ec Emv scan via contact interface ()
* share getATR from smartcard.h/c
* remove duplicates in tlv.h and add get_uint_8
* check ATS/ATR length
2019-02-21 22:02:22 +01:00
Oleg Moiseenko
7527c2bdd8 fix rare bug in tlv.c () 2019-02-20 18:35:39 +01:00
pwpiwi
53fb848a0a
add tracing functions ()
* add trace buffer for PCSC smartcard readers
* new option 'p' in 'hf list' to select PCSC trace buffer
* 'sc list' now supports PCSC smartcard readers
* add 'hf list 14-4' for ISO 14443-4 protocol
2019-02-16 17:51:04 +01:00
pwpiwi
3783c45af1
fix emv roca hash error ()
* fix ICC Public Key Hash calculation
* add -a option to 'emv roca'
* replace print() by PrintAndLogEx() in emv_pki.c
2019-02-12 09:06:30 +01:00
pwpiwi
41bdfce385
emv/sc fixes and modifications: ()
* print selected Smartcard Reader in PrintChannel()
* implement 'sc sel <readername>'. Readername can include wildcards * and ?
* fixing EMV APDU exchange (again)
* use EMVExchangeEx() instead of EMVExchange() in fidocore.c
2019-02-09 15:15:17 +01:00
pwpiwi
fbf77474f5
Update list of Certificate Authorities Public Keys (source: https://www.eftlab.co.uk/index.php/site-map/knowledge-base/243-ca-public-keys) ()
* allow tabs in client/emv/capk.txt
* fix issue with printing RID and CSN of certificates
2019-02-06 07:51:49 +01:00
pwpiwi
4cdd63b245
EVM fixes and additions (RRG repository PRs 78-82 by @merlokk) () 2019-02-06 07:50:57 +01:00
Oleg Moiseenko
3962dce565 fido fix () 2019-02-04 08:03:44 +01:00
pwpiwi
97096af62b
Update list of known EMV AIDs. Source: https://www.eftlab.co.uk/index.php/site-map/knowledge-base/211-emv-aid-rid-pix () 2019-02-01 21:13:00 +01:00
pwpiwi
6b5105bea9
Adding support for standard USB Smartcard Readers ()
* add PCSC reader support to 'sc raw' and all 'emv' commands
* move all APDU -> TPDU mapping to ExchangeAPDUSC()
* print "PSE" instead of "PPSE" when using contact interface
* fix some #defines in protocols.h
* DropField only when using contactless
* some refactoring
2019-02-01 21:12:20 +01:00
pwpiwi
1511ea28a8
Add ROCA vulnerability test (RRG repository PR 76 by @merlokk) () 2019-01-21 19:26:54 +01:00
pwpiwi
151a33c027
Add smartcard protocol T=0 (RRG repository PRs 71,72,74,75 by @merlokk) () 2019-01-17 07:50:01 +01:00
Fl0-0
5a28b51036 Fix PrintAndLogEx ERR () 2019-01-05 18:41:51 +01:00
pwpiwi
8d7d7b6187
Emv commands work with smartcard interface (RfidResearchGroup PR67 by @Merlokk) ()
* replace 'hf emv' commands by 'emv' commands
* Enable smartcard commands by default (-DWITH_SMARTCARD)
* update i2c.c from RfidResearchGroup repository
* update smartcard.c from RfidResearchGroup repository
2019-01-05 09:47:12 +01:00
Oleg Moiseenko
6b882a3918 Fido U2F complete ()
* add pkwrite
* asn1print
* asn1dump and CA
* added PrintAndLogEx for merge commits between repo easier than now
* changelog
2018-11-25 16:56:12 +01:00
Oleg Moiseenko
700d868794 move from polarssl to mbedtls ()
* update polarssl to mbedtls
* fix a warning in armsrc/iso15693
* added random generator and ecdsa test
* added signature check to test
* move crypto lib to client directory
2018-11-19 09:02:38 +01:00
Oleg Moiseenko
39cc1c879e FIDO U2F NFC authenticators ()
* `hf fido` command
* detects FIDO tag
* add new commands for fido u2f
* added changelog
* added fido2 info
2018-11-17 20:22:21 +02:00
Oleg Moiseenko
8fa6838476 fix - some card cant reset so quick. () 2018-11-17 19:04:56 +02:00
Oleg Moiseenko
1429030854 fix get length in tlv () 2018-11-17 19:04:25 +02:00
Oleg Moiseenko
c8a0f55031 Mfp read plain ()
* added aes-cmac-128
* aes-cmac added to cryptosystem. not works(
2018-10-26 19:18:53 +02:00
Oleg Moiseenko
95b697f017 Emv scan ()
* added `hf emv scan` command and options
* add tlv tag save to json
* added tlv tree navigation
* added kernel id and moved some parts of code in ppse
* save gpo result
* added read records
* extract childs from tlv works
* added application data list
* added work with application data section
* flag --extract works
* refactoring: move json functions to emvjson.h/c
* added path.c to jansson
* refactoring: move ParamLoadFromJson
* refactoring: move defparams.json to tag-name-value structure
* refactoring and add key recovering
* added some codes to appdata list
* refactoring: process response format 1 from GPO
* added save mode
* added RID to app data
* add file name handling and small refactoring in argtable string processing
* added finalization logic to `emv scan` and option to remove hash checking in key recovery
2018-10-17 20:53:34 +02:00
Oleg Moiseenko
92479429c2 Added loading parameters from json to several emv commands ()
* added loading params from GPO
* `hf emv pdol` added help and warning
* started `hf emv ac`
* dol calculation implemented in genac and intauth
* help fix
2018-10-08 07:48:37 +02:00
Oleg Moiseenko
11146fc1e1 modify argtable parser to parse ints with spaces ()
* modify argtable parser to parse ints with spaces
* added arg_strx1 and arg_strx0 for x str arguments in one
* added option to clue data in arg parser
* add new argtable logic to emv commands and small fix
* small fix in GPO help
* small GPO fix
2018-10-01 20:12:14 +02:00
Oleg Moiseenko
f23565c38b Added to hf emv commands: gpo, readrec, genac, challenge, intauth ()
* move `hf emv search` to argtable
* `hf emv select`
* delete old help
* `hf emv pse` and sketch for the other commands
* `hf emv gpo` 
* `hf emv readrec`
* `hf emv challenge` works
* added `intauth` and `genac` commands.
* added CDA transaction to `hf emv genac`
* add terminal decision to `genac`
* added changelog
2018-09-28 18:03:21 +02:00
Oleg Moiseenko
2d4db38754 FIX: APDUCodeTable has more items than 100 ()
4fa0835d5f
2018-09-24 12:48:07 +02:00
Oleg Moiseenko
696e863078 added EMV tag #9F6E () 2018-09-18 18:52:41 +02:00
Oleg Moiseenko
556826b5d5 Added loading EMV transaction parameters from json file ()
* added default params file
* added jansson
* added test function.
* added tlv tree to function
* add params from json works
* added to `hf emv exec`: load params from json and some refactoring
* added `scan` command
2018-09-18 07:15:34 +02:00
Oleg Moiseenko
c80eb8ba79 some cards need to have Le=0x00, some need to not have... () 2018-08-14 10:15:51 +02:00
pwpiwi
44964fd181
Code cleanup ()
* coverity fixes (including a real bug in cmdhftopaz.c)
* Typo fix
* replace TRUE/FALSE by stdbool true/false
2018-06-13 08:13:20 +02:00
pwpiwi
ec0872181b fix clang compiler warnings
identified in http://www.proxmark.org/forum/viewtopic.php?id=5388
2018-01-23 16:55:48 +01:00
pwpiwi
96be871374 Merge branch 'master' into fix_printf 2017-12-28 18:23:41 +01:00
Pierre Pronchery
3ded0f97d3 Khorben/warnings ()
* Fix warnings and missing #include for <ctype.h>
* Avoid a warning in client/util.c
2017-12-28 17:56:18 +01:00
pwpiwi
b838c4ff27 Minor fixes
* fix compiler warnings on Ubuntu
* cmdhf14a.c: make manufactureMapping static
* cmdhf14a.c: fix format strings
2017-12-28 08:49:07 +01:00
Oleg Moiseenko
d03fb293bc Emv4 - more additions to hf emv exec
* added rsa polarssl and changed sha1 location to polarssl dir
* deleted old sha1
* added emv-tools pk files
* added polarrssl wrapper sketch to emv_tols
* added test command
* added crypto polarssl with sda test
* added crypto tests and crypto_polarssl sha logic
* added SDA,DDA,fDDA,CDA
2017-12-23 16:46:43 +01:00
merlokk
7a7afeba5c small refactoring 2017-12-04 22:20:29 +02:00
merlokk
5a1b25ac31 added 9f0a tag 2017-12-03 20:36:04 +02:00
merlokk
f7ec230e98 added a tag 2017-12-03 20:28:36 +02:00
merlokk
10d4f82338 transactions MSD and M/Chip, qVSDC works 2017-12-02 21:47:30 +02:00
merlokk
78528074b1 optimization UDOL creation. does not affect on functionality. 2017-11-25 21:17:56 +02:00
merlokk
44128a0e9a Added hf emv exec - command for execute EMV transaction
Added to `hf emv exec` MSD path for VISA and Mastercard and some other compatible EMV cards
2017-11-25 14:40:23 +02:00
merlokk
87fc2dad14 merged emvcore 2017-11-25 14:30:53 +02:00
merlokk
66efdc1f64 part of changes 2017-11-25 12:58:50 +02:00
Oleg Moiseenko
3c5fce2ba7 Add: Emv first part of commands
* hf emv search
* hf emv pse
* hf emv select
* hf emv exec command - only part of functionality
2017-11-22 06:16:33 +01:00
merlokk
298143218a true fix ))) 2017-11-11 01:28:20 +02:00
merlokk
77499f6fb2 fix 2017-11-11 00:43:29 +02:00
pwpiwi
33a9982c76 dump only leaf TLV data 2017-11-10 23:09:08 +01:00
pwpiwi
43912d6349 add: proper indentation when printing TLV objects 2017-11-10 21:54:07 +01:00