Skip to content

Commit

Permalink
Merge pull request #704 from m-1-k-3/qnap_strict_check
Browse files Browse the repository at this point in the history
make qnap check strict mode compatible
  • Loading branch information
BenediktMKuehne authored Jul 17, 2023
2 parents f31f57e + a050a9f commit af37409
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/trickest_blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,7 @@ uptane/asn1
sgoldthorpe/karmalb
jgsqware/clairctl
Live-Hack-CVE/
jasnow/585-652-ruby-advisory-db
pvergain/github-stars
scordero1234/java_sec_demo-main
BFHS-Robotics/BFHS-
2 changes: 1 addition & 1 deletion modules/P02_firmware_bin_file_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fw_bin_detector() {
# we are running binwalk on the file to analyze the output afterwards:
"${BINWALK_BIN[@]}" "$CHECK_FILE" > "$TMP_DIR"/s02_binwalk_output.txt
if [[ -f "$TMP_DIR"/s02_binwalk_output.txt ]]; then
QNAP_ENC_CHECK=$(grep -a -i "qnap encrypted" "$TMP_DIR"/s02_binwalk_output.txt)
QNAP_ENC_CHECK=$(grep -a -i "qnap encrypted" "$TMP_DIR"/s02_binwalk_output.txt || true)
else
QNAP_ENC_CHECK=$("${BINWALK_BIN[@]}" -y "qnap encrypted" "$CHECK_FILE")
fi
Expand Down

0 comments on commit af37409

Please sign in to comment.