add --cstart/cend switches for time_t range

This commit is contained in:
rofl0r 2019-10-29 20:23:22 +00:00
parent 9e5bdc6c86
commit 8964527b85
2 changed files with 16 additions and 0 deletions

View File

@ -79,6 +79,8 @@ static const struct option long_options[] = {
{ "mode", required_argument, 0, 1 },
{ "start", required_argument, 0, 2 },
{ "end", required_argument, 0, 3 },
{ "cstart", required_argument, 0, 4 },
{ "cend", required_argument, 0, 5 },
{ "m5-enc", required_argument, 0, '5' },
{ "m7-enc", required_argument, 0, '7' },
{ 0, no_argument, 0, 'h' },
@ -659,6 +661,18 @@ memory_err:
break;
}
goto usage_err;
case 4 :
if (!strcmp("cstart", long_options[long_index].name)) {
start_p = strtol(optarg, 0, 10);
break;
}
goto usage_err;
case 5 :
if (!strcmp("cend", long_options[long_index].name)) {
end_p = strtol(optarg, 0, 10);
break;
}
goto usage_err;
case '5':
wps->m5_encr = malloc(ENC_SETTINGS_LEN);
if (!wps->m5_encr)

View File

@ -164,6 +164,8 @@ char usage[] =
" --mode N[,... N] : Mode selection, comma separated [Auto]\n"
" --start [mm/]yyyy : Starting date (only mode 3) [+1 day]\n"
" --end [mm/]yyyy : Ending date (only mode 3) [-1 day]\n"
" --cstart N : Starting date (time_t) (only mode 3)\n"
" --cend N : Ending date (time_t) (only mode 3)\n"
" -f, --force : Bruteforce full range (only mode 3)\n"
"\n"
" Miscellaneous arguments:\n"