Skip to content

Commit

Permalink
remove threading
Browse files Browse the repository at this point in the history
  • Loading branch information
HoxhaEndri committed Nov 13, 2023
1 parent d7d80bf commit 89c5273
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions modules/S02_UEFI_FwHunt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,9 @@ S02_UEFI_FwHunt() {
local EXTRACTED_FILE=""

if [[ "${UEFI_VERIFIED}" -eq 1 ]] || { [[ "${RTOS}" -eq 1 ]] && [[ "${UEFI_DETECTED}" -eq 1 ]]; }; then
print_output "[*] Starting FwHunter UEFI firmware vulnerability detection"
if [[ ${THREADED} -eq 1 ]]; then
fwhunter "${FIRMWARE_PATH_BAK}" &
local TMP_PID="$!"
store_kill_pids "${TMP_PID}"
WAIT_PIDS_S02+=( "${TMP_PID}" )
max_pids_protection "${MAX_MOD_THREADS}" "${WAIT_PIDS_S02[@]}"
else
fwhunter "${FIRMWARE_PATH_BAK}"
fi
if [[ $(grep -c "FwHunt rule" "${LOG_PATH_MODULE}""/fwhunt_scan_"*) -eq 0 ]]; then
print_output "[*] Starting FwHunter UEFI firmware vulnerability detection"
fwhunter "${FIRMWARE_PATH_BAK}"
if [[ $(grep -c "FwHunt rule" "${LOG_PATH_MODULE}""/fwhunt_scan_firmware.txt" ) -eq 0 ]]; then
for EXTRACTED_FILE in "${FILE_ARR_LIMITED[@]}"; do
if [[ ${THREADED} -eq 1 ]]; then
fwhunter "${EXTRACTED_FILE}" &
Expand Down

0 comments on commit 89c5273

Please sign in to comment.