Skip to content

Commit

Permalink
Merge pull request #902 from m-1-k-3/issue_889
Browse files Browse the repository at this point in the history
Issue 889
  • Loading branch information
m-1-k-3 committed Nov 22, 2023
2 parents 293acd3 + 20441d7 commit 3c14451
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/F20_vul_aggregator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ cve_extractor() {
write_anchor "cve_${BINARY}"
if [[ "${EXPLOIT_COUNTER_VERSION}" -gt 0 ]]; then
print_ln
tail -n +2 "${LOG_PATH_MODULE}"/cve_sum/"${AGG_LOG_FILE}" | tee -a "${LOG_FILE}" || true
grep -v "Statistics" "${LOG_PATH_MODULE}"/cve_sum/"${AGG_LOG_FILE}" | tee -a "${LOG_FILE}" || true
if [[ "${KERNEL_VERIFIED_VULN}" -gt 0 ]]; then
print_output "[+] Found ${RED}${BOLD}${CVE_COUNTER_VERSION}${GREEN} CVEs (${RED}${KERNEL_VERIFIED_VULN} verified${GREEN}) and ${RED}${BOLD}${EXPLOIT_COUNTER_VERSION}${GREEN} exploits (including POC's) in ${ORANGE}${BINARY}${GREEN} with version ${ORANGE}${VERSION}${GREEN} (source ${ORANGE}${VSOURCE}${GREEN}).${NC}"
else
Expand All @@ -1078,7 +1078,7 @@ cve_extractor() {
print_ln
elif [[ "${CVE_COUNTER_VERSION}" -gt 0 ]]; then
print_ln
tail -n +2 "${LOG_PATH_MODULE}"/cve_sum/"${AGG_LOG_FILE}" | tee -a "${LOG_FILE}"
grep -v "Statistics" "${LOG_PATH_MODULE}"/cve_sum/"${AGG_LOG_FILE}" | tee -a "${LOG_FILE}" || true
if [[ "${KERNEL_VERIFIED_VULN}" -gt 0 ]]; then
print_output "[+] Found ${ORANGE}${BOLD}${CVE_COUNTER_VERSION}${GREEN} CVEs (${ORANGE}${KERNEL_VERIFIED_VULN} verified${GREEN}) and ${ORANGE}${BOLD}${EXPLOIT_COUNTER_VERSION}${GREEN} exploits (including POC's) in ${ORANGE}${BINARY}${GREEN} with version ${ORANGE}${VERSION}${GREEN} (source ${ORANGE}${VSOURCE}${GREEN}).${NC}"
else
Expand Down Expand Up @@ -1207,7 +1207,7 @@ get_uefi_details() {

if [[ -f "${S02_LOG}" ]]; then
print_output "[*] Collect CVE details of module $(basename "${S02_LOG}")."
readarray -t CVE_S02_DETAILS < <(cut -d\; -f3 "${S02_LOG}" | tail -n +2 | sort -u || true)
readarray -t CVE_S02_DETAILS < <(cut -d\; -f3 "${S02_LOG}" | tail -n +2 | sort -u | grep "^CVE-" || true)
fi
}

Expand Down

0 comments on commit 3c14451

Please sign in to comment.