1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-22 05:31:11 +00:00

Update s_lookup/s_lookup_optimized tables

This commit is contained in:
Gabriele Gristina 2024-11-02 00:21:33 +01:00
parent b3def20527
commit d37d26de74
2 changed files with 42 additions and 20 deletions

View File

@ -30,16 +30,27 @@
CONSTANT_AS u8 s_lookup[128] =
{
[0 ... 31] = 0, // control characters
[32] = 1, // whitespace
[33 ... 47] = 1, // from '!' to '/'
[48 ... 57] = 0, // digits
[58 ... 64] = 1, // from ':' to '@'
[65 ... 90] = 0, // uppercase
[91 ... 96] = 1, // from '[' to '`'
[97 ... 122] = 0, // lowercase
[123 ... 126] = 1, // from '{' to '~'
[127] = 0 // del
// 0-31: control characters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 32: whitespace (1)
1,
// 33-47: punctuation (1)
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
// 48-57: digits (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 58-64: punctuation (1)
1, 1, 1, 1, 1, 1, 1,
// 65-90: uppercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 91-96: punctuation (1)
1, 1, 1, 1, 1, 1,
// 97-122: lowercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 123-126: punctuation (1)
1, 1, 1, 1,
// 127: DEL (0)
0
};
HC_INLINE bool is_l (u8 c)

View File

@ -15,16 +15,27 @@
CONSTANT_AS u8 s_lookup_optimized[128] =
{
[0 ... 31] = 0, // control characters
[32] = 1, // whitespace
[33 ... 47] = 1, // from '!' to '/'
[48 ... 57] = 0, // digits
[58 ... 64] = 1, // from ':' to '@'
[65 ... 90] = 0, // uppercase
[91 ... 96] = 1, // from '[' to '`'
[97 ... 122] = 0, // lowercase
[123 ... 126] = 1, // from '{' to '~'
[127] = 0 // del
// 0-31: control characters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 32: whitespace (1)
1,
// 33-47: punctuation (1)
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
// 48-57: digits (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 58-64: punctuation (1)
1, 1, 1, 1, 1, 1, 1,
// 65-90: uppercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 91-96: punctuation (1)
1, 1, 1, 1, 1, 1,
// 97-122: lowercase letters (0)
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// 123-126: punctuation (1)
1, 1, 1, 1,
// 127: DEL (0)
0
};
HC_INLINE bool is_l (u8 c)