unzip_bruteforce
This commit is contained in:
@@ -5,15 +5,16 @@ if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LIST=$1
|
||||||
|
FILE=$2
|
||||||
LIST=$1
|
LIST=$1
|
||||||
FILE=$2
|
FILE=$2
|
||||||
|
|
||||||
# process input file
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
echo try: $line
|
#echo "try: $line"
|
||||||
if unzip -p $line $FILE ; then
|
if unzip -P "$line" -t "$FILE" >/dev/null 2>&1; then
|
||||||
echo FOUND : $line
|
echo "FOUND: $line"
|
||||||
break ;
|
break
|
||||||
fi
|
fi
|
||||||
done < "$LIST"
|
done < "$LIST"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user