mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 13:55:25 +01:00 
			
		
		
		
	Merge pull request #2460 from Tazmaniac/client-renego-regression
Fixed regression in printing results
This commit is contained in:
		| @@ -17095,7 +17095,7 @@ run_renego() { | |||||||
|                                    rm -f $TEMPDIR/was_killed |                                    rm -f $TEMPDIR/was_killed | ||||||
|                               else |                               else | ||||||
|                                    # If we got less than 2/3 successful attempts during the loop with 1s pause, we are in presence of exponential backoff. |                                    # If we got less than 2/3 successful attempts during the loop with 1s pause, we are in presence of exponential backoff. | ||||||
|                                    if [[ $loop_reneg -le $(($ssl_reneg_attempts*2/3)) ]]; then |                                    if [[ $tmp_result -eq 0 ]] && [[ $loop_reneg -le $(($ssl_reneg_attempts*2/3)) ]]; then | ||||||
|                                         tmp_result=2 |                                         tmp_result=2 | ||||||
|                                    fi |                                    fi | ||||||
|                               fi |                               fi | ||||||
| @@ -17103,7 +17103,7 @@ run_renego() { | |||||||
|                                    0) pr_svrty_high "VULNERABLE (NOT ok)"; outln ", DoS threat ($ssl_reneg_attempts attempts)" |                                    0) pr_svrty_high "VULNERABLE (NOT ok)"; outln ", DoS threat ($ssl_reneg_attempts attempts)" | ||||||
|                                       fileout "$jsonID" "HIGH" "VULNERABLE, DoS threat" "$cve" "$cwe" "$hint" |                                       fileout "$jsonID" "HIGH" "VULNERABLE, DoS threat" "$cve" "$cwe" "$hint" | ||||||
|                                       ;; |                                       ;; | ||||||
|                                    1) pr_svrty_good "not vulnerable (OK)"; outln " -- mitigated (disconnect within $ssl_reneg_attempts)" |                                    1) pr_svrty_good "not vulnerable (OK)"; outln " -- mitigated (disconnect after $loop_reneg/$ssl_reneg_attempts attempts)" | ||||||
|                                       fileout "$jsonID" "OK" "not vulnerable, mitigated" "$cve" "$cwe" |                                       fileout "$jsonID" "OK" "not vulnerable, mitigated" "$cve" "$cwe" | ||||||
|                                       ;; |                                       ;; | ||||||
|                                    2) pr_svrty_good "not vulnerable (OK)"; \ |                                    2) pr_svrty_good "not vulnerable (OK)"; \ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter