mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-03 23:39:45 +01:00
Fix emptying of SERVICE variable in determine_service()
SERVICE global was previously set to $protocol which was meant to set this for STARTTLS services. However it was executes outside the corresponding if-statement. This commit moves the statement where it belongs.
This commit is contained in:
parent
35b79f65ee
commit
eafeb904f4
@ -20370,11 +20370,11 @@ determine_service() {
|
|||||||
fatal "momentarily only ftp, smtp, lmtp, pop3, imap, xmpp, xmpp-server, telnet, ldap, nntp, postgres and mysql allowed" $ERR_CMDLINE
|
fatal "momentarily only ftp, smtp, lmtp, pop3, imap, xmpp, xmpp-server, telnet, ldap, nntp, postgres and mysql allowed" $ERR_CMDLINE
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
# It comes handy later also for STARTTLS injection to define this global. When we do banner grabbing
|
||||||
|
# or replace service_detection() we might not need that anymore
|
||||||
|
SERVICE=$protocol
|
||||||
|
|
||||||
# It comes handy later also for STARTTLS injection to define this global. When we do banner grabbing
|
fi
|
||||||
# or replace service_detection() we might not need that anymore
|
|
||||||
SERVICE=$protocol
|
|
||||||
|
|
||||||
tmpfile_handle ${FUNCNAME[0]}.txt
|
tmpfile_handle ${FUNCNAME[0]}.txt
|
||||||
return 0 # OPTIMAL_PROTO, GET_REQ*/HEAD_REQ* is set now
|
return 0 # OPTIMAL_PROTO, GET_REQ*/HEAD_REQ* is set now
|
||||||
|
Loading…
Reference in New Issue
Block a user