mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-25 14:54:53 +02:00
Fixed display of seeds for mode 3
The seeds were always printed even if there wasn't need to bruteforce the state of the PRNG: [*] Seed N1: 0 (01/01/70 00:00:00 UTC) [*] Seed ES1: 0 (01/01/70 00:00:00 UTC) [*] Seed ES2: 0 (01/01/70 00:00:00 UTC) Correct: [*] Seed N1: - [*] Seed ES1: - [*] Seed ES2: - Introduced in (6082da8).
This commit is contained in:
parent
19def8c4d8
commit
d4562fe424
@ -1344,25 +1344,32 @@ usage_err:
|
||||
if (wps->verbosity > 2) {
|
||||
if (found_p_mode != NONE) {
|
||||
if (found_p_mode == RTL819x) {
|
||||
time_t seed_time;
|
||||
struct tm ts;
|
||||
char buffer[30];
|
||||
if (wps->nonce_seed) {
|
||||
time_t seed_time;
|
||||
struct tm ts;
|
||||
char buffer[30];
|
||||
|
||||
printf("\n [*] Seed N1: %u", wps->nonce_seed);
|
||||
seed_time = wps->nonce_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
printf("\n [*] Seed ES1: %u", wps->s1_seed);
|
||||
seed_time = wps->s1_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
printf("\n [*] Seed ES2: %u", wps->s2_seed);
|
||||
seed_time = wps->s2_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
printf("\n [*] Seed N1: %u", wps->nonce_seed);
|
||||
seed_time = wps->nonce_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
printf("\n [*] Seed ES1: %u", wps->s1_seed);
|
||||
seed_time = wps->s1_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
printf("\n [*] Seed ES2: %u", wps->s2_seed);
|
||||
seed_time = wps->s2_seed;
|
||||
ts = *gmtime(&seed_time);
|
||||
strftime(buffer, 30, "%c", &ts);
|
||||
printf(" (%s UTC)", buffer);
|
||||
}
|
||||
else {
|
||||
printf("\n [*] Seed N1: -");
|
||||
printf("\n [*] Seed ES1: -");
|
||||
printf("\n [*] Seed ES2: -");
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (found_p_mode == RT && wps->nonce_seed == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user