Skip to content

Commit bf966a9

Browse files
authored
Merge pull request #1831 from drwetter/fix_heartbleed_json.1828_3.0
Fix file output formatting for heartbleed (3.0)
2 parents 2627d9d + a1777cd commit bf966a9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

testssl.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13830,15 +13830,15 @@ run_heartbleed(){
1383013830
out "likely "
1383113831
pr_svrty_critical "VULNERABLE (NOT ok)"
1383213832
[[ $DEBUG -lt 3 ]] && tm_out ", use debug >=3 to confirm"
13833-
fileout "$jsonID" "CRITICAL" "VULNERABLE $cve" "$cwe" "$hint"
13833+
fileout "$jsonID" "CRITICAL" "VULNERABLE" "$cve" "$cwe" "$hint"
1383413834
fi
1383513835
else
1383613836
pr_svrty_critical "VULNERABLE (NOT ok)"
13837-
fileout "$jsonID" "CRITICAL" "VULNERABLE $cve" "$cwe" "$hint"
13837+
fileout "$jsonID" "CRITICAL" "VULNERABLE" "$cve" "$cwe" "$hint"
1383813838
fi
1383913839
else
1384013840
pr_svrty_best "not vulnerable (OK)"
13841-
fileout "$jsonID" "OK" "not vulnerable $cve" "$cwe"
13841+
fileout "$jsonID" "OK" "not vulnerable" "$cve" "$cwe"
1384213842
fi
1384313843
fi
1384413844
outln
@@ -17883,7 +17883,7 @@ get_a_record() {
1788317883
ip4=$(filter_ip4_address $(strip_lf "$(nslookup -querytype=a "$1" 2>/dev/null | awk '/^Name/ { getline; print $NF }')"))
1788417884
fi
1788517885
OPENSSL_CONF="$saved_openssl_conf" # see https://github.com/drwetter/testssl.sh/issues/134
17886-
echo "$ip4"
17886+
safe_echo "$ip4"
1788717887
}
1788817888

1788917889
# arg1: a host name. Returned will be 0-n IPv6 addresses
@@ -17924,7 +17924,7 @@ get_aaaa_record() {
1792417924
fi
1792517925
fi
1792617926
OPENSSL_CONF="$saved_openssl_conf" # see https://github.com/drwetter/testssl.sh/issues/134
17927-
echo "$ip6"
17927+
safe_echo "$ip6"
1792817928
}
1792917929

1793017930
# RFC6844: DNS Certification Authority Authorization (CAA) Resource Record

0 commit comments

Comments
 (0)