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,25 +1344,32 @@ 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) {
|
||||||
time_t seed_time;
|
if (wps->nonce_seed) {
|
||||||
struct tm ts;
|
time_t seed_time;
|
||||||
char buffer[30];
|
struct tm ts;
|
||||||
|
char buffer[30];
|
||||||
|
|
||||||
printf("\n [*] Seed N1: %u", wps->nonce_seed);
|
printf("\n [*] Seed N1: %u", wps->nonce_seed);
|
||||||
seed_time = wps->nonce_seed;
|
seed_time = wps->nonce_seed;
|
||||||
ts = *gmtime(&seed_time);
|
ts = *gmtime(&seed_time);
|
||||||
strftime(buffer, 30, "%c", &ts);
|
strftime(buffer, 30, "%c", &ts);
|
||||||
printf(" (%s UTC)", buffer);
|
printf(" (%s UTC)", buffer);
|
||||||
printf("\n [*] Seed ES1: %u", wps->s1_seed);
|
printf("\n [*] Seed ES1: %u", wps->s1_seed);
|
||||||
seed_time = wps->s1_seed;
|
seed_time = wps->s1_seed;
|
||||||
ts = *gmtime(&seed_time);
|
ts = *gmtime(&seed_time);
|
||||||
strftime(buffer, 30, "%c", &ts);
|
strftime(buffer, 30, "%c", &ts);
|
||||||
printf(" (%s UTC)", buffer);
|
printf(" (%s UTC)", buffer);
|
||||||
printf("\n [*] Seed ES2: %u", wps->s2_seed);
|
printf("\n [*] Seed ES2: %u", wps->s2_seed);
|
||||||
seed_time = wps->s2_seed;
|
seed_time = wps->s2_seed;
|
||||||
ts = *gmtime(&seed_time);
|
ts = *gmtime(&seed_time);
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user