mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-01 06:19:44 +01:00
Add the $EXPERIMENTAL part to winshock
... when checking other services as HTTP or RDP
This commit is contained in:
parent
7d8cf71a94
commit
721d046a7f
@ -17606,6 +17606,9 @@ run_winshock() {
|
|||||||
server_banner="$(grep -Eai '^Server:' $HEADERFILE)"
|
server_banner="$(grep -Eai '^Server:' $HEADERFILE)"
|
||||||
elif [[ -s "$TEMPDIR/$NODEIP.service_detection.txt" ]]; then
|
elif [[ -s "$TEMPDIR/$NODEIP.service_detection.txt" ]]; then
|
||||||
server_banner="$(grep -Eai '^Server:' "$TEMPDIR/$NODEIP.service_detection.txt")"
|
server_banner="$(grep -Eai '^Server:' "$TEMPDIR/$NODEIP.service_detection.txt")"
|
||||||
|
elif "$EXPERIMENTAL"; then
|
||||||
|
# If testing e.g. an SMTP server
|
||||||
|
:
|
||||||
else
|
else
|
||||||
# We can't use run_http_header here as it messes up the screen. We could automatically
|
# We can't use run_http_header here as it messes up the screen. We could automatically
|
||||||
# run it when --winshock is requested though but this should suffice here.
|
# run it when --winshock is requested though but this should suffice here.
|
||||||
@ -17636,6 +17639,9 @@ run_winshock() {
|
|||||||
fileout "$jsonID" "OK" "not vulnerable" "$cve" "$cwe"
|
fileout "$jsonID" "OK" "not vulnerable" "$cve" "$cwe"
|
||||||
outln
|
outln
|
||||||
fi
|
fi
|
||||||
|
elif "$EXPERIMENTAL"; then
|
||||||
|
out "seems "; pr_svrty_critical "vulnerable (NOT ok)"; outln "$check_patches"
|
||||||
|
fileout "${jsonID}" "CRITICAL" "seems vulnerable (NOT OK) $check_patches"
|
||||||
else
|
else
|
||||||
pr_svrty_best "not vulnerable (OK)"
|
pr_svrty_best "not vulnerable (OK)"
|
||||||
outln " - doesn't seem to be IIS 8.x"
|
outln " - doesn't seem to be IIS 8.x"
|
||||||
|
Loading…
Reference in New Issue
Block a user