Skip to content

Commit 721d046

Browse files
committed
Add the $EXPERIMENTAL part to winshock
... when checking other services as HTTP or RDP
1 parent 7d8cf71 commit 721d046

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

testssl.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17606,6 +17606,9 @@ run_winshock() {
1760617606
server_banner="$(grep -Eai '^Server:' $HEADERFILE)"
1760717607
elif [[ -s "$TEMPDIR/$NODEIP.service_detection.txt" ]]; then
1760817608
server_banner="$(grep -Eai '^Server:' "$TEMPDIR/$NODEIP.service_detection.txt")"
17609+
elif "$EXPERIMENTAL"; then
17610+
# If testing e.g. an SMTP server
17611+
:
1760917612
else
1761017613
# We can't use run_http_header here as it messes up the screen. We could automatically
1761117614
# run it when --winshock is requested though but this should suffice here.
@@ -17636,6 +17639,9 @@ run_winshock() {
1763617639
fileout "$jsonID" "OK" "not vulnerable" "$cve" "$cwe"
1763717640
outln
1763817641
fi
17642+
elif "$EXPERIMENTAL"; then
17643+
out "seems "; pr_svrty_critical "vulnerable (NOT ok)"; outln "$check_patches"
17644+
fileout "${jsonID}" "CRITICAL" "seems vulnerable (NOT OK) $check_patches"
1763917645
else
1764017646
pr_svrty_best "not vulnerable (OK)"
1764117647
outln " - doesn't seem to be IIS 8.x"

0 commit comments

Comments
 (0)