mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-09 21:42:53 +02:00
Fine tuning if Jac2NL's commit of IDS evasion
Reduce the offensive tests to 4: the others are "just" / mostly cipher based checks which should not cause an IDS to block. (This maybe subject to reconsider at a later time.) Added a switch --ids-friendly Updated VULN_COUNT accordingly Added this (including PHONE_OUT to env debugging output) Added help() Manual section added
This commit is contained in:
58
testssl.sh
58
testssl.sh
@ -220,7 +220,7 @@ APPEND=${APPEND:-false} # append to csv/json file instead of ove
|
||||
[[ -z "$NODNS" ]] && declare NODNS # If unset it does all DNS lookups per default. "min" only for hosts or "none" at all
|
||||
HAS_IPv6=${HAS_IPv6:-false} # if you have OpenSSL with IPv6 support AND IPv6 networking set it to yes
|
||||
ALL_CLIENTS=${ALL_CLIENTS:-false} # do you want to run all client simulation form all clients supplied by SSLlabs?
|
||||
OFFENSIVE=${OFFENSIVE:-true} # do you want to include offensive vulnerability tests?
|
||||
OFFENSIVE=${OFFENSIVE:-true} # do you want to include offensive vulnerability tests which may cause blocking by an IDS?
|
||||
|
||||
########### Tuning vars which cannot be set by a cmd line switch. Use instead e.g "HEADER_MAXSLEEP=10 ./testssl.sh <your_args_here>"
|
||||
#
|
||||
@ -15235,7 +15235,6 @@ help() {
|
||||
Alternatively: nmap output in greppable format (-oG) (1x port per line allowed)
|
||||
--mode <serial|parallel> Mass testing to be done serial (default) or parallel (--parallel is shortcut for the latter)
|
||||
--add-ca <cafile> <cafile> or a comma separated list of CA files will be added during runtime to all CA stores
|
||||
--phone-out Allow to contact external servers for CRL download and querying OCSP responder
|
||||
|
||||
single check as <options> ("$PROG_NAME URI" does everything except -E and -g):
|
||||
-e, --each-cipher checks each local cipher remotely
|
||||
@ -15282,6 +15281,8 @@ tuning / connect options (most also can be preset via environment variables):
|
||||
b) arg "one" means: just test the first DNS returns (useful for multiple IPs)
|
||||
-n, --nodns <min|none> if "none": do not try any DNS lookups, "min" queries A, AAAA and MX records
|
||||
--sneaky leave less traces in target logs: user agent, referer
|
||||
--ids-friendly skips a few vulnerablity checks which may cause IDSs to block the scanning IP
|
||||
--phone-out allow to contact external servers for CRL download and querying OCSP responder
|
||||
|
||||
output options (can also be preset via environment variables):
|
||||
--warnings <batch|off|false> "batch" doesn't ask for a confirmation, "off" or "false" skips connection warnings
|
||||
@ -15401,6 +15402,8 @@ SHOW_EACH_C: $SHOW_EACH_C
|
||||
SSL_NATIVE: $SSL_NATIVE
|
||||
ASSUME_HTTP $ASSUME_HTTP
|
||||
SNEAKY: $SNEAKY
|
||||
OFFENSIVE: $OFFENSIVE
|
||||
PHONE_OUT: $PHONE_OUT
|
||||
|
||||
DEBUG: $DEBUG
|
||||
|
||||
@ -16832,19 +16835,19 @@ initialize_globals() {
|
||||
set_scanning_defaults() {
|
||||
do_allciphers=true
|
||||
do_vulnerabilities=true
|
||||
do_beast="$OFFENSIVE"
|
||||
do_lucky13="$OFFENSIVE"
|
||||
do_breach="$OFFENSIVE"
|
||||
do_beast=true
|
||||
do_lucky13=true
|
||||
do_breach=true
|
||||
do_heartbleed="$OFFENSIVE"
|
||||
do_ccs_injection="$OFFENSIVE"
|
||||
do_ticketbleed="$OFFENSIVE"
|
||||
do_robot="$OFFENSIVE"
|
||||
do_crime="$OFFENSIVE"
|
||||
do_freak="$OFFENSIVE"
|
||||
do_logjam="$OFFENSIVE"
|
||||
do_drown="$OFFENSIVE"
|
||||
do_ssl_poodle="$OFFENSIVE"
|
||||
do_sweet32="$OFFENSIVE"
|
||||
do_crime=true
|
||||
do_freak=true
|
||||
do_logjam=true
|
||||
do_drown=true
|
||||
do_ssl_poodle=true
|
||||
do_sweet32=true
|
||||
do_header=true
|
||||
do_pfs=true
|
||||
do_rc4=true
|
||||
@ -16855,7 +16858,11 @@ set_scanning_defaults() {
|
||||
do_server_preference=true
|
||||
do_tls_fallback_scsv=true
|
||||
do_client_simulation=true
|
||||
VULN_COUNT=16
|
||||
if "$OFFENSIVE"; then
|
||||
VULN_COUNT=16
|
||||
else
|
||||
VULN_COUNT=12
|
||||
fi
|
||||
}
|
||||
|
||||
# returns number of $do variables set = number of run_funcs() to perform
|
||||
@ -17032,18 +17039,25 @@ parse_cmd_line() {
|
||||
do_ticketbleed="$OFFENSIVE"
|
||||
do_robot="$OFFENSIVE"
|
||||
do_renego=true
|
||||
do_crime="$OFFENSIVE"
|
||||
do_breach="$OFFENSIVE"
|
||||
do_ssl_poodle="$OFFENSIVE"
|
||||
do_crime=true
|
||||
do_breach=true
|
||||
do_ssl_poodle=true
|
||||
do_tls_fallback_scsv=true
|
||||
do_sweet32="$OFFENSIVE"
|
||||
do_freak="$OFFENSIVE"
|
||||
do_drown="$OFFENSIVE"
|
||||
do_logjam="$OFFENSIVE"
|
||||
do_beast="$OFFENSIVE"
|
||||
do_lucky13="$OFFENSIVE"
|
||||
do_sweet32=true
|
||||
do_freak=true
|
||||
do_drown=true
|
||||
do_logjam=true
|
||||
do_beast=true
|
||||
do_lucky13=true
|
||||
do_rc4=true
|
||||
VULN_COUNT=16
|
||||
if "$OFFENSIVE"; then
|
||||
VULN_COUNT=16
|
||||
else
|
||||
VULN_COUNT=12
|
||||
fi
|
||||
;;
|
||||
--ids-friendly)
|
||||
OFFENSIVE=false
|
||||
;;
|
||||
-H|--heartbleed)
|
||||
do_heartbleed=true
|
||||
|
Reference in New Issue
Block a user