1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 15:08:37 +00:00

adapt the naming convention?

This commit is contained in:
banderlog 2025-07-12 13:51:34 +03:00
parent e6027396f1
commit 0f8b7f04cf
2 changed files with 5 additions and 5 deletions

View File

@ -696,7 +696,7 @@ typedef enum user_options_defaults
BRAIN_SERVER = false, BRAIN_SERVER = false,
BRAIN_SESSION = 0, BRAIN_SESSION = 0,
#endif #endif
COLOR = false, COLOR_CRACKED = false,
DEBUG_MODE = 0, DEBUG_MODE = 0,
DEPRECATED_CHECK = true, DEPRECATED_CHECK = true,
DYNAMIC_X = false, DYNAMIC_X = false,
@ -816,7 +816,7 @@ typedef enum user_options_map
IDX_BRAIN_SESSION = 0xff0f, IDX_BRAIN_SESSION = 0xff0f,
IDX_BRAIN_SESSION_WHITELIST = 0xff10, IDX_BRAIN_SESSION_WHITELIST = 0xff10,
#endif #endif
IDX_COLOR = 0xff59, IDX_COLOR_CRACKED = 0xff59,
IDX_BRIDGE_PARAMETER1 = 0xff80, IDX_BRIDGE_PARAMETER1 = 0xff80,
IDX_BRIDGE_PARAMETER2 = 0xff81, IDX_BRIDGE_PARAMETER2 = 0xff81,
IDX_BRIDGE_PARAMETER3 = 0xff82, IDX_BRIDGE_PARAMETER3 = 0xff82,

View File

@ -167,7 +167,7 @@ static const struct option long_options[] =
{"brain-session", required_argument, NULL, IDX_BRAIN_SESSION}, {"brain-session", required_argument, NULL, IDX_BRAIN_SESSION},
{"brain-session-whitelist", required_argument, NULL, IDX_BRAIN_SESSION_WHITELIST}, {"brain-session-whitelist", required_argument, NULL, IDX_BRAIN_SESSION_WHITELIST},
#endif #endif
{"color-cracked", no_argument, NULL, IDX_COLOR}, {"color-cracked", no_argument, NULL, IDX_COLOR_CRACKED},
{NULL, 0, NULL, 0 } {NULL, 0, NULL, 0 }
}; };
@ -216,7 +216,7 @@ int user_options_init (hashcat_ctx_t *hashcat_ctx)
user_options->brain_session = BRAIN_SESSION; user_options->brain_session = BRAIN_SESSION;
user_options->brain_session_whitelist = NULL; user_options->brain_session_whitelist = NULL;
#endif #endif
user_options->color_cracked = COLOR; user_options->color_cracked = COLOR_CRACKED;
user_options->bridge_parameter1 = NULL; user_options->bridge_parameter1 = NULL;
user_options->bridge_parameter2 = NULL; user_options->bridge_parameter2 = NULL;
user_options->bridge_parameter3 = NULL; user_options->bridge_parameter3 = NULL;
@ -599,7 +599,7 @@ int user_options_getopt (hashcat_ctx_t *hashcat_ctx, int argc, char **argv)
case IDX_BRAIN_SESSION: user_options->brain_session = hc_strtoul (optarg, NULL, 16); break; case IDX_BRAIN_SESSION: user_options->brain_session = hc_strtoul (optarg, NULL, 16); break;
case IDX_BRAIN_SESSION_WHITELIST: user_options->brain_session_whitelist = optarg; break; case IDX_BRAIN_SESSION_WHITELIST: user_options->brain_session_whitelist = optarg; break;
#endif #endif
case IDX_COLOR: user_options->color_cracked = true; break; case IDX_COLOR_CRACKED: user_options->color_cracked = true; break;
} }
} }