From 664062402088210188d5eed25ef90cca217cf586 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 2 Apr 2026 18:29:00 +0200 Subject: [PATCH] unzip_bruteforce --- usr/bin/unzip_bruteforce | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/usr/bin/unzip_bruteforce b/usr/bin/unzip_bruteforce index e7c81eb..23f96fe 100755 --- a/usr/bin/unzip_bruteforce +++ b/usr/bin/unzip_bruteforce @@ -5,16 +5,17 @@ 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 ; - fi + #echo "try: $line" + if unzip -P "$line" -t "$FILE" >/dev/null 2>&1; then + echo "FOUND: $line" + break + fi done < "$LIST" exit 0