mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-29 21:05:26 +01:00 
			
		
		
		
	Merge pull request #1039 from dcooper16/csv_json_mass_testing
JSON and CSV output problem with mass testing
This commit is contained in:
		| @@ -867,8 +867,8 @@ fileout() { | |||||||
|  |  | ||||||
|      if ( "$do_pretty_json" && [[ "$1" == "service" ]] ) || show_finding "$severity"; then |      if ( "$do_pretty_json" && [[ "$1" == "service" ]] ) || show_finding "$severity"; then | ||||||
|          local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") |          local finding=$(strip_lf "$(newline_to_spaces "$(strip_quote "$3")")") | ||||||
|          [[ -e "$JSONFILE" ]] && (fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint") |          [[ -e "$JSONFILE" ]] && [[ ! -d "$JSONFILE" ]] && (fileout_json_finding "$1" "$severity" "$finding" "$cve" "$cwe" "$hint") | ||||||
|          "$do_csv" && \ |          "$do_csv" && [[ -n "$CSVFILE" ]] && [[ ! -d "$CSVFILE" ]] && \ | ||||||
|               echo -e \""$1\"",\"$NODE/$NODEIP\",\"$PORT"\",\""$severity"\",\""$finding"\",\""$cve"\",\""$cwe"\",\""$hint"\"" >> "$CSVFILE" |               echo -e \""$1\"",\"$NODE/$NODEIP\",\"$PORT"\",\""$severity"\",\""$finding"\",\""$cve"\",\""$cwe"\",\""$hint"\"" >> "$CSVFILE" | ||||||
|      "$FIRST_FINDING" && FIRST_FINDING=false |      "$FIRST_FINDING" && FIRST_FINDING=false | ||||||
|      fi |      fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dirk Wetter
					Dirk Wetter