Commit graph

108 commits

Author SHA1 Message Date
merlokk
20d13d5509 added PACKED attribute for structures and reorganize include folder 2019-07-16 14:50:38 +03:00
Oleg Moiseenko
ddd4601c1e
Merge branch 'master' into ext_apdu 2019-07-15 19:25:48 +03:00
merlokk
84c09ce881 added define PACKED 2019-07-15 19:21:19 +03:00
Philippe Teuwen
844d732297 Replace ukbhit by kbd_enter_pressed, not requiring tcgetattr:
Note that it behaves differently now
* it looks for Enter key only, not any key
* it "eats" the input, no need for (void)getchar() after it
* it works the same no matter the value of ICANON
* the mingw version has been adapted to act the similarly

This should fix its usage on Android where tcgetattr always returns -1
2019-07-11 13:01:34 +02:00
iceman1001
0c20c1a9d1 convert to MIX for simple send commands. 2019-05-07 19:03:25 +02:00
Philippe Teuwen
a91d0a7b19 Smart color handling:
* if on Windows, no color, as usual
* if on Linux, color only on real term
  * no color when > foo
  * no color in the logfile
2019-04-30 00:41:52 +02:00
Philippe Teuwen
f1deb865db Merge branch 'master' into experimental_varlen
* master:
  ltrim cmd before display
  hf mf eload: fix absence of filename
  detect wrong numOfBlocks / numOfSectors arguments
  safeFile*: accept when suffix is already provided
  loadFile*: accept when suffix is already provided
  textual,  to reflect which repo.
  LoadEML: don't complain on the last \n
2019-04-28 22:53:12 +02:00
Philippe Teuwen
1dbcb712c3 safeFile*: accept when suffix is already provided 2019-04-28 20:42:57 +02:00
Philippe Teuwen
405f24522e loadFile*: accept when suffix is already provided 2019-04-28 19:21:04 +02:00
Philippe Teuwen
b68ccfa7b8 SendCommandOLD : comms & flash 2019-04-19 02:01:47 +02:00
Philippe Teuwen
482db05741 Rename few stuff for consistency 2019-04-18 12:49:51 +02:00
Philippe Teuwen
533667ea6d Better Reply structs 2019-04-17 23:44:48 +02:00
Philippe Teuwen
4eaa2fc5aa move common util fcts to /common to avoid common files (e.g. crc) to depend on non-common files 2019-04-16 23:02:40 +02:00
Philippe Teuwen
4f32655004 use more static and fix [-Wmissing-prototypes], ongoing... 2019-04-13 00:25:43 +02:00
Iceman
7483e56249
Merge pull request #155 from davidbeauchamp/hid36bit
Add 36bit HID format, extend calcWiegand() to include oem bits
2019-04-11 07:33:12 +02:00
David Beauchamp
8d479e3a68 Add 36bit HID format, extend calcWiegand() to include oem bits 2019-04-10 20:34:42 -04:00
Philippe Teuwen
34aa860fbd more [-Wmissing-field-initializers] 2019-04-10 22:20:45 +02:00
Philippe Teuwen
7f76fea21a good const, bad const, fixing -Wincompatible-pointer-types-discards-qualifiers 2019-04-10 10:21:42 +02:00
iceman1001
69ba2d6a5b rename variables in order to prevent a popular usbcommand named as c. 2019-04-07 12:33:33 +02:00
Philippe Teuwen
41f36ca20b make style 2019-04-06 19:09:01 +02:00
Philippe Teuwen
59d40068e2 style 2019-04-06 00:38:22 +02:00
iceman1001
20019b14ee style 2019-03-18 20:34:00 +01:00
iceman1001
5350f871ff style 2019-03-18 20:29:18 +01:00
Philippe Teuwen
f1a0e57f65 binarraytohex: handle Manchester wrong bit markers 2019-03-15 00:09:40 +01:00
Philippe Teuwen
1b2601a48a Add missing EOF LF 2019-03-12 00:12:26 +01:00
Philippe Teuwen
da6cdf014b Keep string syntax in color macros 2019-03-10 00:56:00 +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
iceman1001
c419f7bf37 CHG: dropfield when CL is used. 2019-01-29 15:42:31 +01:00
merlokk
7b943a4a16 add check string - if string is hex 2018-11-21 19:44:31 +02:00
merlokk
5dda51ed1c added FillBuffer function for fill buffers in hash checks 2018-11-12 19:03:58 +02:00
Chris
b80d683ce6 Added new support str function 2018-09-04 20:39:15 +02:00
iceman1001
d0b9d12bde chg: added some colors 2018-05-03 12:12:55 +02:00
iceman1001
207fa2b574 add: potential fix for OSX uses, by @piwi
chg:  adapting fix to support iceman forks extended commands.
2018-05-02 08:11:29 +02:00
iceman1001
8730b020b3 chg: space? 2018-04-26 14:26:28 +02:00
iceman1001
e09f26c862 chg: extra space 2018-04-06 23:53:33 +02:00
iceman1001
6b63f704cc chg: adding spaces 2018-04-03 11:58:35 +02:00
iceman1001
a29b2328db fix: g_debugMode - client side global debugvariable, moved to util.c 2018-02-21 15:54:13 +01:00
iceman1001
a1dd7c2020 chg: 'hf list mf' - adapted the output from 16bytes rows to 18 in order to make output more easily to compare 2018-02-15 11:47:34 +01:00
Brian Pow
551cc5539b Updated header file for better consistency of parameter name 2018-02-09 22:54:55 +08:00
Brian Pow
d050e473b7 CHG: use FillFileNameByUID() for filename generation for 'hf mf dump' and 'hf mf chk * ? d' 2018-02-09 22:54:54 +08:00
iceman1001
120abf10bc chg: tests with ansi-colors 2018-02-07 14:08:57 +01:00
iceman1001
6371dfc5b6 chg: made DropField function a compiler macro instead. 2018-02-06 22:32:08 +01:00
iceman1001
205e4b2300 chg: adjusted the input parameters for crc16 implementations. 2018-01-28 12:19:04 +01:00
iceman1001
e396575424 add: fast reverse 16bit 2018-01-27 23:16:35 +01:00
iceman1001
ede55a1498 add: fast 8bit reversal. 2018-01-27 22:20:56 +01:00
iceman1001
36eb64cef4 fix: making it strings 2017-12-24 11:04:13 +01:00
iceman1001
77bc60bc52 remov function 2017-12-23 11:24:10 +01:00
iceman1001
18a828d2fd chg: try to use native byteswapping functions when possible.
chg:  bits_to_array  new function
2017-12-23 09:51:20 +01:00