Commit Graph
55 Commits
Author SHA1 Message Date
kormax fa08075ded Add ISO14A_CLEARTRACE param to explicitly clear 14a trace 2026-03-24 23:24:22 +02:00
pingu2211 7d7903deed Feedback from Iceman.
Now respecting quiet flag for continuous reads.
Return Correct PM3 _* return codes.
2026-03-11 09:38:13 +11:00
pingu2211 c07d688597 Implement Gallagher MIFARE Classic card writing and update MAD sector functionality 2026-03-10 15:13:42 +11:00
Philippe Teuwen c00e4801b7 make style 2026-02-06 13:43:41 +01:00
Philippe Teuwen fd88967443 make style 2025-10-14 09:50:59 +02:00
Oleg Moiseenko 944a80d217 make style 2025-09-21 16:41:30 +03:00
iceman1001 ad292e8810 unify test - step 2 2025-03-25 10:17:42 +01:00
iceman1001 4d603a4530 unify hint text 2025-03-20 22:55:26 +01:00
iceman1001 b3285cce8a style 2024-11-02 15:13:40 +01:00
Adam Jon Foster 70cc7765f3 Update cmdhfgallagher.c
Added CmdGallagherEncode to allow someone to encode their own credentials into a raw and bitwise format without having it go onto a specific technology type.

Signed-off-by: Adam Jon Foster <me@evildaemond.com>
2024-10-21 23:16:05 +08:00
iceman1001 ff765f569f change out some non-breaking wait for response from some command which shouldnt have it. Sniff / simulate / bruteforce should have it. and some minor text / style 2024-10-04 10:01:50 +02:00
iceman1001 05353deb4a unified verbose param text and fixed behavior 2024-01-18 19:46:14 +01:00
iceman1001 c27264e4c4 text 2022-08-22 05:49:47 +02:00
nvx c36395f2cc Add hf gallagher decode command 2022-07-20 17:49:54 +10:00
Philippe Teuwen 02d2fcc3e7 gallagher: Fix codeql warnings 2022-02-27 14:05:57 +01:00
iceman1001 4db1627e1d coverit #373451 2022-01-29 10:23:21 +01:00
iceman1001 c5e9201dd8 fix cppcheck shadowing 2022-01-29 10:05:26 +01:00
Matt Moran 750fd646c1 Shorten command help text, reorder changelog 2022-01-17 23:38:00 +13:00
Matt Moran 072e97998f Fix wasn't freeing arg ctx, improve comments 2022-01-15 14:40:40 +13:00
Matt Moran 4c9d167966 Update styles to match changes 2022-01-15 14:02:46 +13:00
Matt Moran f057184ee3 Fix styles (missing braces) 2022-01-15 13:16:34 +13:00
Matt Moran a6280e2978 Merge remote-tracking branch 'upstream/master' into feat/hf-gallagher-remove-aid-limits 2022-01-15 12:11:12 +13:00
Matt Moran aa6b74a08d Fix was attempting to credential file when --noappcreate was passed 2022-01-13 21:06:21 +13:00
Philippe Teuwen 5a4584358c make style 2022-01-09 14:10:26 +01:00
iceman1001 5ff043e5ab null key fix 2022-01-08 15:28:36 +01:00
iceman1001 eaf968092c coverity fixes 2022-01-08 13:14:53 +01:00
iceman1001 256565f820 coverity fixes for mem leaks. added a macro for freeing cliparser context too 2022-01-08 13:08:51 +01:00
iceman1001 8cd19d7c87 textual / style 2022-01-08 13:01:10 +01:00
Philippe Teuwen 5a0dda6bb0 Make HFGAL_* macros available to all as PM3_* macros 2022-01-08 12:00:54 +01:00
Matt Moran cb6a1db852 Continue reading credentials if one fails (e.g. when using different site keys) 2022-01-08 18:13:29 +13:00
Philippe Teuwen 30aa7aa7d1 Adapting license headers, WIP 2022-01-08 00:40:52 +01:00
Matt Moran 1f8217ec2e Use DesfireGetAIDList to find an available AID
... and check that user-specified AID is available (before writing to the CAD)
2022-01-08 00:36:59 +13:00
Matt Moran b3dc6f62ab Refactor, adds select_aid_and_auth_with_key 2022-01-07 23:59:46 +13:00
Matt Moran beefc97995 Add ability to use custom CAD key, add ability to skip some actions
For cloning & deleting:
- Add ability to use custom Card Application Directory key (`--cadkey`)
- Add ability to skip updating the CAD (`--noupdatecad`)
- Add ability to skip creating/deleting the app and only update the CAD (`--nocreateapp`, `--nodeleteapp`)
2022-01-07 23:57:47 +13:00
Matt Moran 69049a6621 Remove incorrect AID validation 2022-01-07 19:31:36 +13:00
iceman1001 6dbde61c4e cppcheck fixes 2022-01-06 21:08:22 +01:00
Matt Moran 533b31bc6d Format code/strings 2022-01-07 01:03:43 +13:00
Matt Moran 6f510db9fb Fix incorrect CAD was written when removing credentials 2022-01-07 00:30:25 +13:00
Matt Moran 84ff84ffd0 Add hf gallagher diversify 2022-01-07 00:05:38 +13:00
Matt Moran 82cd44e99f Reorder function definitions
Order is roughly:
- exported helpers
- helpers
- read -> create -> delete
- exported commands
2022-01-06 00:11:30 +13:00
Matt Moran caebfdca62 Update license from LGPL to GPL 2022-01-05 23:54:18 +13:00
Matt Moran 8ecfc4af34 Make variables & function names snake_case 2022-01-05 23:53:03 +13:00
Matt Moran fad30294aa Format styles 2022-01-05 23:08:10 +13:00
Matt Moran 81da8a1317 Add hf gallagher delete command 2022-01-05 00:22:34 +13:00
Matt Moran 28437f018b Check if facility already exists in CAD
Disallow duplicate credentials for the same facility (because readers won't handle it properly - I assume they'll just use the first entry?)
2022-01-04 22:38:30 +13:00
Matt Moran d7989caad0 Automatically choose an new valid Gallagher AID 2022-01-04 22:15:00 +13:00
Matt Moran d3da798517 Move GallagherDiversifyKey to top of file 2022-01-04 21:14:18 +13:00
Matt Moran 28844756d9 Add default MIFARE Site Key 2022-01-04 18:19:42 +13:00
Matt Moran f395b28643 Extract cadAidUintToByte and cadAidByteToUint 2022-01-04 18:06:02 +13:00
Matt Moran 21b080e49a Extract selectAid and authenticate commands 2022-01-04 17:42:05 +13:00