From a7999aa8669f4a8f6f5eb48774093b1f7c5ff8dc Mon Sep 17 00:00:00 2001 From: Richard Soderberg Date: Mon, 31 Aug 2015 14:31:05 -0700 Subject: [PATCH] add handling of no ciphers found --- cipherscan | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cipherscan b/cipherscan index 8b539ae..772073f 100755 --- a/cipherscan +++ b/cipherscan @@ -631,6 +631,10 @@ display_results_in_terminal() { local curvesordering local different=False echo "Target: $TARGET"; echo + if [[ ${#cipherspref[*]} -lt 1 ]]; then + echo "No ciphers detected! Aborting." + exit 1 + fi for cipher in "${cipherspref[@]}"; do # get first in array pciph=($cipher)