diff --git a/analyze.py b/analyze.py index 9f4ae8a..9acbc60 100755 --- a/analyze.py +++ b/analyze.py @@ -62,7 +62,7 @@ def is_fubar(results): has_wrong_pfs = True if 'md5WithRSAEncryption' in conn['sigalg']: has_md5_sig = True - logging.debug(conn['sigalg']+ ' is a fubar cert signature') + logging.debug(conn['sigalg'][0] + ' is a fubar cert signature') fubar = True if conn['trusted'] == 'False': has_untrust_cert = True diff --git a/cipherscan b/cipherscan index 4bf4e5b..46bb981 100755 --- a/cipherscan +++ b/cipherscan @@ -19,7 +19,7 @@ if [ "$(uname -s)" == "Darwin" ]; then fi # cipherscan requires bash4, which doesn't come by default in OSX -if [ "$(bash --version |grep 'version 4')" == "" ]; then +if [ ${BASH_VERSINFO[0]} -lt 4 ]; then echo "Bash version 4 is required to run cipherscan." echo "Please upgrade your version of bash (ex: brew install bash)." exit 1