mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 07:44:36 +02:00
Changed time span to +-1 day
This commit is contained in:
parent
6c145761c3
commit
cbcbbd143b
@ -342,7 +342,7 @@ usage_err:
|
||||
|
||||
if (is_mode_selected(RTL819x)) { /* Ignore --start and --end otherwise */
|
||||
|
||||
wps->start = t_start.tv_sec;
|
||||
wps->start = t_start.tv_sec + SEC_PER_DAY; /* Extra 1 day */
|
||||
wps->end = t_start.tv_sec - MODE3_DAYS * SEC_PER_DAY;
|
||||
|
||||
/* Attributes --start and --end can be switched start > end or end > start */
|
||||
@ -379,7 +379,7 @@ usage_err:
|
||||
}
|
||||
} else {
|
||||
if (wps->bruteforce) {
|
||||
wps->start += SEC_PER_DAY >> 1; /* Extra 12 hour span */
|
||||
wps->start += SEC_PER_DAY; /* Extra 1 day */
|
||||
wps->end = 0;
|
||||
}
|
||||
}
|
||||
@ -432,7 +432,7 @@ usage_err:
|
||||
goto memory_err;
|
||||
|
||||
memcpy(wps->authkey, buffer, WPS_AUTHKEY_LEN);
|
||||
|
||||
|
||||
if (wps->verbosity > 2) {
|
||||
wps->wrapkey = malloc(WPS_KEYWRAPKEY_LEN);
|
||||
if (!wps->wrapkey)
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
/* Modes constants */
|
||||
#define MODE_LEN 5
|
||||
#define MODE3_DAYS 3
|
||||
#define MODE3_DAYS 1
|
||||
#define MODE3_TRIES 3
|
||||
#define SEC_PER_DAY 86400
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user