From ff32e6c548cf22d50f23604df1edd5c155bd3b13 Mon Sep 17 00:00:00 2001 From: Sebastian Seifert Date: Mon, 13 Nov 2017 12:21:40 +0100 Subject: [PATCH] Edit: Button Press If there is loot you have 5 seconds to press the button again (in this 5 seconds its blinking light blue). If done the payload is stopped. If the button is not pressed the payload keeps running until it's pressed again. --- payloads/library/sniffing/ngrep/payload.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/payloads/library/sniffing/ngrep/payload.sh b/payloads/library/sniffing/ngrep/payload.sh index 9de8280..6d14734 100644 --- a/payloads/library/sniffing/ngrep/payload.sh +++ b/payloads/library/sniffing/ngrep/payload.sh @@ -45,13 +45,15 @@ function run() { do NO_LED=true BUTTON && { checkLog && { - LED FINISH - kill $npid + BUTTON 5s && { + LED FINISH + kill $npid - sleep 3 - - LED OFF - halt + sleep 3 + + LED OFF + halt + } } || { LED FAIL sleep 3