Mar 28, 2025 09:32 AM
(This post was last modified: Mar 28, 2025 09:35 AM by Robert Rouge.)
hello, this is simple way to bruteforce a zip file from a wordlist contained in a zip file.
this uses 7zip and batch to do the dirty
this uses 7zip and batch to do the dirty
Code
@echo off
rem ******************************************************************
rem ****************CREATED BY ROUGE SOFTWARE*************************
rem ******************************************************************
rem Obfuscated with: https://hackforums.net/showthread.php?tid=6294928
set Rouge=echo && set Software=msg && set flamingW0rm=pause
setlocal enabledelayedexpansion
rem Set the path to the 7-Zip executable
set "zipPath=C:\Program Files\7-Zip\7z.exe"
rem Prompt for the ZIP file and password list
set /p zipFile=Enter the path to your ZIP file:
set /p passwordList=Enter the path to your password list:
rem Check if the ZIP file exists
if not exist "%zipFile%" (
%Rouge% ZIP file not found!
exit /b
)
rem Check if the password list exists
if not exist "%passwordList%" (
%Rouge% Password list not found!
exit /b
)
rem Loop through each password in the password list
for /f "delims=" %%p in (%passwordList%) do (
%Rouge% Trying password: %%p
"%zipPath%" x "%zipFile%" -p"%%p" -y >nul 2>&1
if !errorlevel! equ 0 (
set "pass=%%p"
%Rouge% Password found: !pass!
%flamingW0rm%
exit /b
)
)
%Rouge% Password not found in the list.
%flamingW0rm%

