Showing posts with label zip files. Show all posts
Showing posts with label zip files. Show all posts

Thursday, July 21, 2011

Easy Zip FIle Password Cracker

After searching today for a free password cracking application for zip file, I decided to make my own. All that is required is 7-zip, a decent word list, and this trusty batch file.

# usage zip_crack.bat
#note: Does not handle passwords with spaces.
@echo off
SET targetfile=%2

SETLOCAL ENABLEDELAYEDEXPANSION

FOR /F %%i IN (%targetfile%) DO (
echo %%i

7z.exe e -y -p"%%i" %1
IF !ERRORLEVEL! == 0 (
ECHO %%i >> CREDS.txt
)


)