Files
svr/usr/bin/unzip_bruteforce
T

23 lines
323 B
Bash
Raw Normal View History

2026-04-02 17:40:11 +02:00
#!/usr/bin/bash
if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
echo "Usage: $0 list file.zip"
exit 1
fi
2026-04-02 18:29:00 +02:00
LIST=$1
FILE=$2
2026-04-02 17:40:11 +02:00
LIST=$1
FILE=$2
while IFS= read -r line; do
2026-04-02 18:29:00 +02:00
#echo "try: $line"
if unzip -P "$line" -t "$FILE" >/dev/null 2>&1; then
echo "FOUND: $line"
break
fi
2026-04-02 17:40:11 +02:00
done < "$LIST"
exit 0