mirror of
https://github.com/mozilla/cipherscan.git
synced 2024-11-16 20:03:41 +01:00
SNI fix
Without this fix you always get the first cert attached to an IP and not necessarily the cert attached to the domain you're trying to scan. Could be made modular in order to simulate a client which doesn't support SNI...
This commit is contained in:
parent
ded65c40df
commit
3cc5001ebf
@ -387,8 +387,8 @@ debug "Port: $PORT"
|
||||
TARGET=$HOST:$PORT
|
||||
debug "target: $TARGET"
|
||||
|
||||
|
||||
SCLIENTARGS=$(sed -e s,${TEMPTARGET},,<<<"${@}")
|
||||
SNI_FIX="-servername ${HOST}"
|
||||
SCLIENTARGS="$SNI_FIX $(sed -e s,${TEMPTARGET},,<<<"${@}")"
|
||||
debug "sclientargs: $SCLIENTARGS"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user