From 9e57588c8dbea3a55be46de91f1eac1e1bccbfc3 Mon Sep 17 00:00:00 2001 From: Aram Date: Tue, 3 May 2016 06:29:52 +0200 Subject: [PATCH] Moved prompt to start brute force phase --- libnfc_crypto1_crack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libnfc_crypto1_crack.c b/libnfc_crypto1_crack.c index 248f23f..df6f542 100644 --- a/libnfc_crypto1_crack.c +++ b/libnfc_crypto1_crack.c @@ -522,7 +522,7 @@ void notify_status_online(int sig){ if(!space){ printf(VT100_cleareol "Collected %zu nonces... ", nonces_collected); } else { - printf(VT100_cleareol "Collected %zu nonces... leftover complexity %zu (~2^%0.2f) (press enter to start brute-force phase)", nonces_collected, total_states, log(total_states) / log(2)); + printf(VT100_cleareol "Collected %zu nonces... leftover complexity %zu (~2^%0.2f)", nonces_collected, total_states, log(total_states) / log(2)); } if(total_states){ char c; @@ -531,6 +531,8 @@ void notify_status_online(int sig){ alarm(0); stop_collection = true; return; + } else { + printf(" - press enter to start brute-force phase\n"); } } alarm(1);