1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-14 03:39:09 +00:00

Merge pull request #3300 from philsmd/radmin3_fix_pre

radmin3: use hexadecimal instead of .incbin
This commit is contained in:
Jens Steube 2022-05-31 13:02:28 +02:00 committed by GitHub
commit b5839644a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -64,25 +64,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);