make style

This commit is contained in:
iceman1001 2022-07-25 08:00:30 +02:00
commit 6290d50564
10 changed files with 38 additions and 31 deletions

View file

@ -655,7 +655,7 @@ int CmdHF14ASim(const char *Cmd) {
"hf 14a sim -t 4 -> ISO/IEC 14443-4\n"
"hf 14a sim -t 5 -> MIFARE Tnp3xxx\n"
"hf 14a sim -t 6 -> MIFARE Mini\n"
"hf 14a sim -t 7 -> AMIIBO (NTAG 215), pack 0x8080\n"
"hf 14a sim -t 7 -> Amiibo (NTAG 215), pack 0x8080\n"
"hf 14a sim -t 8 -> MIFARE Classic 4k\n"
"hf 14a sim -t 9 -> FM11RF005SH Shanghai Metro\n"
"hf 14a sim -t 10 -> ST25TA IKEA Rothult\n");
@ -663,7 +663,7 @@ int CmdHF14ASim(const char *Cmd) {
void *argtable[] = {
arg_param_begin,
arg_int1("t", "type", "<1-10> ", "Simulation type to use"),
arg_str0("u", "uid", "<hex>", "4, 7 or 10 byte UID"),
arg_str0("u", "uid", "<hex>", "<4|7|10> hex bytes UID"),
arg_int0("n", "num", "<dec>", "Exit simulation after <numreads> blocks have been read by reader. 0 = infinite"),
arg_lit0("x", NULL, "Performs the 'reader attack', nr/ar attack against a reader"),
arg_lit0(NULL, "sk", "Fill simulator keys from found keys"),

View file

@ -193,7 +193,7 @@ static uint8_t TexcomTK13CRC(const uint8_t *data) {
static uint8_t MMBITCRC(const uint8_t *data) {
return
(( (data[0] & 0x0f) ^ ((data[0] >> 4) & 0x0f) ^
(((data[0] & 0x0f) ^ ((data[0] >> 4) & 0x0f) ^
(data[1] & 0x0f) ^ ((data[1] >> 4) & 0x0f) ^
(data[2] & 0x0f) ^ ((data[2] >> 4) & 0x0f)
) ^ 0x0f

View file

@ -48,6 +48,7 @@ const static vocabulory_t vocabulory[] = {
{ 1, "prefs get savepaths" },
{ 1, "prefs get emoji" },
{ 1, "prefs get hints" },
{ 1, "prefs get output" },
{ 1, "prefs get plotsliders" },
{ 1, "prefs set help" },
{ 1, "prefs set barmode" },
@ -57,6 +58,7 @@ const static vocabulory_t vocabulory[] = {
{ 1, "prefs set emoji" },
{ 1, "prefs set hints" },
{ 1, "prefs set savepaths" },
{ 1, "prefs set output" },
{ 1, "prefs set plotsliders" },
{ 1, "analyse help" },
{ 1, "analyse lcr" },
@ -431,6 +433,7 @@ const static vocabulory_t vocabulory[] = {
{ 0, "hf texkom sim" },
{ 1, "hf xerox help" },
{ 0, "hf xerox info" },
{ 0, "hf xerox reader" },
{ 0, "hf xerox dump" },
{ 1, "hf waveshare help" },
{ 0, "hf waveshare loadbmp" },

View file

@ -1236,7 +1236,7 @@ inline uint64_t leadingzeros64(uint64_t a) {
}
int byte_strstr(uint8_t* src, size_t srclen, uint8_t* pattern, size_t plen) {
int byte_strstr(uint8_t *src, size_t srclen, uint8_t *pattern, size_t plen) {
size_t max = srclen - plen + 1;

View file

@ -145,5 +145,5 @@ uint64_t bitcount64(uint64_t a);
uint32_t leadingzeros32(uint32_t a);
uint64_t leadingzeros64(uint64_t a);
int byte_strstr(uint8_t* src, size_t srclen, uint8_t* pattern, size_t plen);
int byte_strstr(uint8_t *src, size_t srclen, uint8_t *pattern, size_t plen);
#endif

View file

@ -43,6 +43,7 @@ Check column "offline" for their availability.
|`prefs get savepaths `|Y |`Get file folder `
|`prefs get emoji `|Y |`Get emoji display preference`
|`prefs get hints `|Y |`Get hint display preference`
|`prefs get output `|Y |`Get dump output style preference`
|`prefs get plotsliders `|Y |`Get plot slider display preference`
@ -60,6 +61,7 @@ Check column "offline" for their availability.
|`prefs set emoji `|Y |`Set emoji display`
|`prefs set hints `|Y |`Set hint display`
|`prefs set savepaths `|Y |`... to be adjusted next ... `
|`prefs set output `|Y |`Set dump output style`
|`prefs set plotsliders `|Y |`Set plot slider display`
@ -335,6 +337,7 @@ Check column "offline" for their availability.
|`hf gallagher clone `|N |`Add Gallagher credentials to a DESFire card`
|`hf gallagher delete `|N |`Delete Gallagher credentials from a DESFire card`
|`hf gallagher diversifykey`|Y |`Diversify Gallagher key`
|`hf gallagher decode `|Y |`Decode Gallagher credential block`
### hf ksx6924
@ -666,6 +669,7 @@ Check column "offline" for their availability.
|------- |------- |-----------
|`hf xerox help `|Y |`This help`
|`hf xerox info `|N |`Short info on Fuji/Xerox tag`
|`hf xerox reader `|N |`Act like a Fuji/Xerox reader`
|`hf xerox dump `|N |`Read all memory pages of an Fuji/Xerox tag, save to file`