Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #839 #844

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions helpers/helpers_emba_html_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,7 @@ update_index()
# add emba.log to webreport
generate_report_file "$MAIN_LOG"
sed -i -e "s@buttonTimeInvisible@buttonTime@ ; s@TIMELINK@.\/$(basename "${MAIN_LOG%."${MAIN_LOG##*.}"}"".html")@" "$ABS_HTML_PATH""/""$INDEX_FILE"

# generate files in $SUPPL_PATH (supplementary files from modules)
readarray -t SUPPL_FILES < <(find "$SUPPL_PATH" ! -path "$SUPPL_PATH")
if [[ "${#SUPPL_FILES[@]}" -gt 0 ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion modules/S108_stacs_password_search.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ S108_stacs_password_search()
pre_module_reporter "${FUNCNAME[0]}"

local STACS_RULES_DIR="$EXT_DIR"/stacs-rules
local STACS_LOG_FILE="$LOG_DIR"/etc/stacs_pw_hashes.json
local STACS_LOG_FILE="$LOG_PATH_MODULE"/stacs_pw_hashes.json
local ELEMENTS=0
local ELEMENTS_=0
local PW_PATH=""
Expand Down
4 changes: 2 additions & 2 deletions modules/S13_weak_func_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ output_function_details()
SEARCH_TERM=$(basename "$BINARY_")
if grep -q "^$SEARCH_TERM\$" "$BASE_LINUX_FILES" 2>/dev/null; then
COMMON_FILES_FOUND="${CYAN}"" - common linux file: yes - "
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
CFF_CSV="true"
else
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
COMMON_FILES_FOUND="${RED}"" - common linux file: no -"
CFF_CSV="false"
fi
Expand Down
4 changes: 2 additions & 2 deletions modules/S14_weak_func_radare_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ radare_output_function_details()
SEARCH_TERM=$(basename "$BINARY_")
if grep -q "^$SEARCH_TERM\$" "$BASE_LINUX_FILES" 2>/dev/null; then
COMMON_FILES_FOUND="${CYAN}"" - common linux file: yes - "
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
CFF_CSV="true"
else
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
COMMON_FILES_FOUND="${RED}"" - common linux file: no -"
CFF_CSV="false"
fi
Expand Down
4 changes: 2 additions & 2 deletions modules/S15_radare_decompile_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ radare_decomp_output_function_details() {
SEARCH_TERM=$(basename "$BINARY_")
if grep -q "^$SEARCH_TERM\$" "$BASE_LINUX_FILES" 2>/dev/null; then
COMMON_FILES_FOUND="${CYAN}"" - common linux file: yes - "
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
CFF_CSV="true"
else
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$SUPPL_PATH/common_linux_files.txt"
write_log "[+] File $(print_path "$BINARY_") not found in default Linux file dictionary" "$LOG_PATH_MODULE/common_linux_files.txt"
COMMON_FILES_FOUND="${RED}"" - common linux file: no -"
CFF_CSV="false"
fi
Expand Down