mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-04 07:45:27 +01:00 
			
		
		
		
	Look-ahead trick for -U --ids-friendly
If the order of the cmdline is '-U --ids-friendly' then we need to make sure we catch --ids-friendly. Normally we do not, see #1717. The following statement makes sure. In the do-while + case-esac loop the check for --ids-friendly will be executed again, but it does not hurt
This commit is contained in:
		@@ -22163,6 +22163,13 @@ parse_cmd_line() {
 | 
				
			|||||||
                    do_client_simulation=true
 | 
					                    do_client_simulation=true
 | 
				
			||||||
                    ;;
 | 
					                    ;;
 | 
				
			||||||
               -U|--vulnerable|--vulnerabilities)
 | 
					               -U|--vulnerable|--vulnerabilities)
 | 
				
			||||||
 | 
					                    # Lookahead function: If the order of the cmdline is '-U --ids-friendly'
 | 
				
			||||||
 | 
					                    # then we need to make sure we catch --ids-friendly. Normally we do not,
 | 
				
			||||||
 | 
					                    # see #1717.  The following statement makes sure. In the do-while + case-esac
 | 
				
			||||||
 | 
					                    # loop it will be execute again, but it does not hurt
 | 
				
			||||||
 | 
					                    if [[ "${CMDLINE_ARRAY[@]}" =~ --ids-friendly ]]; then
 | 
				
			||||||
 | 
					                         OFFENSIVE=false
 | 
				
			||||||
 | 
					                    fi
 | 
				
			||||||
                    do_vulnerabilities=true
 | 
					                    do_vulnerabilities=true
 | 
				
			||||||
                    do_heartbleed="$OFFENSIVE"
 | 
					                    do_heartbleed="$OFFENSIVE"
 | 
				
			||||||
                    do_ccs_injection="$OFFENSIVE"
 | 
					                    do_ccs_injection="$OFFENSIVE"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user