Skip to content

Instantly share code, notes, and snippets.

@zhilyaev
Created January 11, 2021 18:06
Show Gist options
  • Select an option

  • Save zhilyaev/bf7b8a2c90e7d377c726dd768460f396 to your computer and use it in GitHub Desktop.

Select an option

Save zhilyaev/bf7b8a2c90e7d377c726dd768460f396 to your computer and use it in GitHub Desktop.
CrackZip
#!/bin/bash
# Tested using bash version 4.1.5
for ((i=100000;i<=1000000;i++));
do
unzip -P $i -o $1
if [ $? -eq 0 ]
then
echo "Your password is $i"
break
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment