unzip_bruteforce
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user