Merge pull request #925 from seccubus/json_footer_breaks_json

JSOn output is broken by the JSON footer in combination with mass mode
This commit is contained in:
Dirk Wetter 2017-12-07 09:59:58 +01:00 committed by GitHub
commit 7e62dc3192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14534,6 +14534,7 @@ run_mass_testing() {
"$first" || fileout_separator # this is needed for appended output, see #687
first=false
cat "$TEMPDIR/jsonfile_child.json" >> "$JSONFILE"
FIRST_FINDING=false
fi
done < "${FNAME}"
return $?
@ -14555,6 +14556,7 @@ get_next_message_testing_parallel_result() {
# produced some JSON output.
"$FIRST_JSON_OUTPUT" || fileout_separator # this is needed for appended output, see #687
FIRST_JSON_OUTPUT=false
FIRST_FINDING=false
cat "$TEMPDIR/jsonfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).json" >> "$JSONFILE"
fi
"$CSVHEADER" && cat "$TEMPDIR/csvfile_$(printf "%08d" $NEXT_PARALLEL_TEST_TO_FINISH).csv" >> "$CSVFILE"