Philippe Teuwen
ce606b51fc
Handle explicitly enum vals in switch [-Wswitch-enum]
2019-04-13 22:46:08 +02:00
Philippe Teuwen
7d48ad19f9
Rework Cmd exposed API, use more static and fix [-Wmissing-prototypes], ongoing...
2019-04-12 01:00:54 +02:00
Philippe Teuwen
0ab6de64d4
structs: initializes explicitely all fields, so we can detect when we really forgot one [-Wmissing-field-initializers]
2019-04-10 13:59:00 +02:00
Philippe Teuwen
3d6d58aae5
internal help fcts -> static
2019-04-10 13:06:05 +02:00
Philippe Teuwen
cc0454d5d2
tag unused Cmd [-Wunused-parameter]
2019-04-10 12:23:40 +02:00
Philippe Teuwen
19588b045f
Fix realloc mistake: ptr nulled but not freed upon failure
2019-03-24 22:09:25 +01:00
iceman1001
7deb99b999
realloc check?
2019-03-18 20:35:03 +01:00
iceman1001
7d88c22aaf
chg: added limit check for loadfile
...
rename: 'lf hitag checkchallenges' -> 'lf hitag cc'
chg: 'lf hitag checkchallenges' - refactored, added helptext
2019-03-14 08:24:49 +01:00
Philippe Teuwen
961d929f4d
changing {} style to match majority of previous style
2019-03-10 11:20:22 +01:00
Philippe Teuwen
0373696662
make style
2019-03-10 00:00:59 +01:00
Philippe Teuwen
0d9223a547
client: fix mix of spaces & tabs
2019-03-09 23:35:06 +01:00
Philippe Teuwen
60f292b18e
remove spurious spaces & tabs at end of lines
2019-03-09 08:59:13 +01:00
Philippe Teuwen
abddff513e
loadFile: fix double free
2019-03-08 19:49:12 +01:00
iceman1001
bd26794c20
revert
2019-02-24 23:57:04 +01:00
iceman1001
61ebdbde6b
CHG: adjusting compiling for older devices
2019-01-23 11:01:11 +01:00
iceman1001
0fb0c35308
CHG: 'mem load' - the possibility to upload default_iclass_keys.dic, default_keys.dic, default_pwd.dic to predefined flashmemory sections. These will be used in pwd / key checking algorithms on device.
...
CHG: 'script run read_pwd_mem.lua' - script now can print those uploaded dictionary files.
How to upload
pm3 --> mem load f default_iclass_keys i
pm3 --> mem load f default_keys m
pm3 --> mem load f default_pwd t
How to validate / view
PM3 -->scr run read_pwd_mem -o 237568 -k 8
pm3 -->scr run read_pwd_mem -o 241664 -k 6
pm3 -->scr run read_pwd_mem -o 245760 -k 4
2019-01-01 18:01:40 +01:00
iceman1001
a963a7834c
FIX: 'mem load' - bad memory allocation
...
CHG: calloc fixes
2018-12-17 14:01:18 +01:00
Chris
25b07682dc
CHG: 'mem load' - adapted loading files to use new load function.
...
loading binary file can be called with NULL pointer, don't forget to free it.
2018-11-12 22:55:19 +01:00
merlokk
aaf7b25c01
cmdflashmem fixed for mbedtls
2018-11-07 18:17:17 +02:00
Chris
0e2dbe7424
chg: code cleanup
2018-09-08 11:18:10 +02:00
Colin J. Brigato
c74dbb63b8
Pass 2; commit 2;
2018-09-06 05:24:50 +02:00
Colin J. Brigato
8d673fa1bf
First pass rewrite of flashmem driver for optimization. Lot of changes here. Provides PoC of saving and recalling a tag in Standalone mode. Added some printing passthrough to client to azccomodate for vt100 eye-candyness. FastREAD mode implemented for flashmem, testable from client. Beta but functionnal. Reading the whole flash with 1Kb to 32kb buffers was ~730ms, now 380ms Max (even at 24Mhz spi baudrate)
2018-09-03 00:02:44 +02:00
iceman1001
f3f7245fc0
add: 'mem read' - read / prints flahsmemory from device (not downloading)
...
chg: 'mem info' - added possibility to verify signature
2018-05-23 09:30:33 +02:00
iceman1001
e50fef6607
fix: 'mem load' - wrong offset when uploading
2018-05-03 16:10:38 +02:00
iceman1001
93d154f58c
chg: 'mem load' added a max filesize check.
2018-05-03 12:22:17 +02:00
iceman1001
021c0a1349
ADD: 'mem' commands. For RDV40 devices only.
...
If you don't have one, comment out inside client/Makefile this line
CFLAGS += -DWITH_FLASH
2018-05-03 12:15:03 +02:00