xct's notes
Search…
Other

Crack Zip Password

1
#!/bin/zsh
2
if [ $# -ne 2 ]
3
then
4
echo "Usage $0 <file.7z> <wordlist>";
5
exit;
6
fi
7
7z l "${1}"
8
9
echo "Generating wordlist..."
10
/home/xct/tools/JohnTheRipper/run/john --wordlist="${2}" --rules --stdout | while read i
11
do
12
echo -ne "\rTrying \"$i\" "
13
7z x -p"${i}" "${1}" -aoa >/dev/null
14
STATUS=$?
15
if [ $STATUS -eq 0 ]; then
16
echo -e "\rArchive password is: \"${i}\""
17
break
18
fi
19
done
Copied!
Last modified 1yr ago
Copy link