Skip to content

Commit

Permalink
Merge pull request #844 from m-1-k-3/master
Browse files Browse the repository at this point in the history
fix #839
  • Loading branch information
m-1-k-3 committed Oct 23, 2023
2 parents f172106 + 1fb8acf commit c2b832a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
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

0 comments on commit c2b832a

Please sign in to comment.