mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
add --cstart/cend switches for time_t range
This commit is contained in:
parent
9e5bdc6c86
commit
8964527b85
@ -79,6 +79,8 @@ static const struct option long_options[] = {
|
|||||||
{ "mode", required_argument, 0, 1 },
|
{ "mode", required_argument, 0, 1 },
|
||||||
{ "start", required_argument, 0, 2 },
|
{ "start", required_argument, 0, 2 },
|
||||||
{ "end", required_argument, 0, 3 },
|
{ "end", required_argument, 0, 3 },
|
||||||
|
{ "cstart", required_argument, 0, 4 },
|
||||||
|
{ "cend", required_argument, 0, 5 },
|
||||||
{ "m5-enc", required_argument, 0, '5' },
|
{ "m5-enc", required_argument, 0, '5' },
|
||||||
{ "m7-enc", required_argument, 0, '7' },
|
{ "m7-enc", required_argument, 0, '7' },
|
||||||
{ 0, no_argument, 0, 'h' },
|
{ 0, no_argument, 0, 'h' },
|
||||||
@ -659,6 +661,18 @@ memory_err:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
goto usage_err;
|
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':
|
case '5':
|
||||||
wps->m5_encr = malloc(ENC_SETTINGS_LEN);
|
wps->m5_encr = malloc(ENC_SETTINGS_LEN);
|
||||||
if (!wps->m5_encr)
|
if (!wps->m5_encr)
|
||||||
|
@ -164,6 +164,8 @@ char usage[] =
|
|||||||
" --mode N[,... N] : Mode selection, comma separated [Auto]\n"
|
" --mode N[,... N] : Mode selection, comma separated [Auto]\n"
|
||||||
" --start [mm/]yyyy : Starting date (only mode 3) [+1 day]\n"
|
" --start [mm/]yyyy : Starting date (only mode 3) [+1 day]\n"
|
||||||
" --end [mm/]yyyy : Ending 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"
|
" -f, --force : Bruteforce full range (only mode 3)\n"
|
||||||
"\n"
|
"\n"
|
||||||
" Miscellaneous arguments:\n"
|
" Miscellaneous arguments:\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user