From daed59ac8f0195b491bec2bf774ff7029d1e05d1 Mon Sep 17 00:00:00 2001 From: Aram Date: Sat, 30 Apr 2016 07:28:58 +0200 Subject: [PATCH] Prompt brute force phase --- libnfc_crypto1_crack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnfc_crypto1_crack.c b/libnfc_crypto1_crack.c index 1fd82a1..01aca90 100644 --- a/libnfc_crypto1_crack.c +++ b/libnfc_crypto1_crack.c @@ -209,13 +209,14 @@ void have_enough_states(int sig){ } if(!space){ printf("\rCollected %zu nonces... ", nonces_collected); + alarm(1); } else { total_states = craptev1_sizeof_space(space); printf("\rCollected %zu nonces... leftover complexity %zu (press any key to start brute-force phase)", nonces_collected, total_states); + alarm(10); } fflush(stdout); signal(SIGALRM, have_enough_states); - alarm(1); } int main (int argc, const char * argv[]) {