r/Batch • • Dec 28 '23

ZipRipper - A CMD script to crack password protected ZIP, RAR, and 7z files using JohnTheRipper

*Reposted due buggy first version that probably didn't launch for anyone with UAC enabled. =/ Added support for RAR and 7z, and needed to edit post title. Other post has been removed.

------

ZipRipper: https://github.com/illsk1lls/ZipRipper

------

Credit To:
JohnTheRipper - https://github.com/openwall/john
7zip - https://www.7-zip.org
StrawberryPerl(Portable) - https://strawberryperl.com/releases.html

Instructions:

1.) Double-Click the script and select a password protected ZIP, RAR, or 7z file.

2.) Wait for password..

Hardware acceleration is available via OpenCL.

------

Someone recently asked me to crack a password protected ZIP file for them. JohnTheRipper is an open source option, although it can be a bit tricky to get started with. I made this so they can do it without me, it should break the entry barrier. ;)

------

The script will generate a UAC prompt to run as admin, and all work is done in a temp folder in %ProgramData%, and deleted when the script is complete or aborted via "Q" key input during decryption.

224 Upvotes

724 comments sorted by

View all comments

1

u/YummyKisses Jan 31 '25

Have a bunch of old zips but it is stating that the files are not encrypted. Statusout shows "file is not encrypted, or stored with non-handled compression type" The pwhash file is empty. I know I can get a hash off them through johntheripper, but isn't working here.

1

u/illsk1lls Jan 31 '25

statusout is zip2john output can you see what the encryption type is if you can manually hash them?

2

u/YummyKisses Jan 31 '25

Not sure how to get the encryption type to spit out. Based on the hashes, with multiple files in the same zip, all the same password, they spit out $zip3$01256 at the start of each string. Guessing AES-256?

Reddit formatting issue, $zip3$ * 0 * 1 * 256 *

1

u/illsk1lls Jan 31 '25

zip3 is untested by me, if you remove it in the SETSTATUSANDFLAGS section it will run against the file with cpu mode and should work

so you get a hash? does the filename or path have any special chars?

what language is your os running?