mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
HSS compatibility fix
Fixed support for target directories with spaces in the path
This commit is contained in:
parent
1740699edc
commit
b8ab07fd33
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user