mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 07:44:36 +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,6 +1344,7 @@ usage_err:
|
|||||||
if (wps->verbosity > 2) {
|
if (wps->verbosity > 2) {
|
||||||
if (found_p_mode != NONE) {
|
if (found_p_mode != NONE) {
|
||||||
if (found_p_mode == RTL819x) {
|
if (found_p_mode == RTL819x) {
|
||||||
|
if (wps->nonce_seed) {
|
||||||
time_t seed_time;
|
time_t seed_time;
|
||||||
struct tm ts;
|
struct tm ts;
|
||||||
char buffer[30];
|
char buffer[30];
|
||||||
@ -1364,6 +1365,12 @@ usage_err:
|
|||||||
strftime(buffer, 30, "%c", &ts);
|
strftime(buffer, 30, "%c", &ts);
|
||||||
printf(" (%s UTC)", buffer);
|
printf(" (%s UTC)", buffer);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
printf("\n [*] Seed N1: -");
|
||||||
|
printf("\n [*] Seed ES1: -");
|
||||||
|
printf("\n [*] Seed ES2: -");
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
if (found_p_mode == RT && wps->nonce_seed == 0)
|
if (found_p_mode == RT && wps->nonce_seed == 0)
|
||||||
printf("\n [*] Seed N1: -");
|
printf("\n [*] Seed N1: -");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user