Everyone gets tired of recovering their old password protected rar archive. So how about we build our own password cracker batch file. Sounds interesting ? Lets have fun then
Note: It only cracks numeric password
1) Copy the code in a txt file:
@echo off
color 0a
title Rar Password Cracker (Numeric)
mode con: cols=60 lines=30
SET PSWD=0
SET DEST=%TEMP%\%RANDOM%
MD %DEST%
:RAR
cls
echo ----------------------------------------------
echo Enter the details
echo ----------------------------------------------
echo.
SET/P "UNRAR_PATH=Enter Full Path of Unrar.exe (Don't include unrar.exe) :"
SET/P "PATH=Enter Full Path of the file (Don't include the File Name) : "
IF "%PATH%"=="" goto PERROR
cd %PATH%
SET/P "NAME=Enter File Name (Including the format extension) : "
IF "%NAME%"=="" goto NERROR
goto NEXT
:NERROR
echo ----------------------------------------------
echo ERROR
echo ----------------------------------------------
echo Please enter the location !!
pause
goto RAR
:PERROR
echo ----------------------------------------------
echo ERROR
echo ----------------------------------------------
echo Please enter the location !!
pause
goto RAR
:NEXT
IF EXIST "%PATH%\%NAME%" GOTO START
goto PATH
:PATH
cls
echo ----------------------------------------------
echo ERROR
echo ----------------------------------------------
echo File doesn't exit -_-
pause
goto RAR
:START
cls
echo.
echo Cracking...
SET /A PSWD+=1
cd %UNRAR_PATH%
unrar E -INUL -P%PSWD% "%PATH%\%NAME%" "%DEST%"
IF /I %ERRORLEVEL% EQU 0 GOTO FINISH
GOTO START
:FINISH
RD %DEST% /Q /S
cls
echo ----------------------------------------------
echo CRACKED :)
echo ----------------------------------------------
echo.
echo Password Found! 0_o
echo File = %NAME%
echo Cracked password = %PSWD%
pause >NUL
exit
2) Save the txt file with .bat extension
3) Run the batch file
4) Enter the location of unrar.exe ( Default: C:\Program Files\WinRAR)
5) Enter the location of the file and the file name with format (.rar)
6) Wait for some time till the password is cracked
The cracking speed is entirely based on the size of the file password and it may take hours as its based on simple brute force attack.
Feeling lazy to copy the code eh? I got your back bud XD
Feel free to comment if you ran into error. Keep exploiting :)
Comments
Post a Comment