1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

radmin3: use hexadecimal instead of .incbin

This commit is contained in:
philsmd 2022-05-30 18:00:06 +02:00
parent e0713889a0
commit ff53873791
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF
4 changed files with 174610 additions and 19 deletions

View File

@ -1,6 +1,11 @@
/**
* Author......: See docs/credits.txt
* License.....: MIT
*
* Further credits:
* The password-storage algorithm used by Radmin 3 was analyzed and made public
* by synacktiv:
* https://www.synacktiv.com/publications/cracking-radmin-server-3-passwords.html
*/
#ifndef _INC_RADMIN3_CONSTANTS_H

File diff suppressed because it is too large Load Diff

View File

@ -62,25 +62,6 @@ typedef struct radmin3
} radmin3_t;
// trick to include binary data file in assembly:
// credits go to http://elm-chan.org/junk/32bit/binclude.html#inc_c
#define INCLUDE_BIN(name, file) asm \
( \
".section .rodata \n" \
".balign 4 \n" \
".global " name " \n" \
name ": \n" \
".incbin \"" file "\" \n" \
".section .text \n" \
)
INCLUDE_BIN ("RADMIN3_PRE", "include/inc_radmin3_constants_pre.data");
#undef INCLUDE_BIN
extern const u32 RADMIN3_PRE[PRECOMP_DATALEN];
u64 module_esalt_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
{
const u64 esalt_size = (const u64) sizeof (radmin3_t);