mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-16 17:42:04 +00:00
radmin3: use hexadecimal instead of .incbin
This commit is contained in:
parent
e0713889a0
commit
ff53873791
@ -1,6 +1,11 @@
|
|||||||
/**
|
/**
|
||||||
* Author......: See docs/credits.txt
|
* Author......: See docs/credits.txt
|
||||||
* License.....: MIT
|
* 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
|
#ifndef _INC_RADMIN3_CONSTANTS_H
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -62,25 +62,6 @@ typedef struct radmin3
|
|||||||
|
|
||||||
} radmin3_t;
|
} 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)
|
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);
|
const u64 esalt_size = (const u64) sizeof (radmin3_t);
|
||||||
|
Loading…
Reference in New Issue
Block a user