unzip_bruteforce

This commit is contained in:
Your Name
2026-04-02 18:29:00 +02:00
parent 9167595ab9
commit 6640624020
+6 -5
View File
@@ -5,15 +5,16 @@ if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
exit 1
fi
LIST=$1
FILE=$2
LIST=$1
FILE=$2
# process input file
while IFS= read -r line; do
echo try: $line
if unzip -p $line $FILE ; then
echo FOUND : $line
break ;
#echo "try: $line"
if unzip -P "$line" -t "$FILE" >/dev/null 2>&1; then
echo "FOUND: $line"
break
fi
done < "$LIST"