Cracking .RAR Password(Numeric) Using Batch File

Tags


If you have just forgotten the password you can make your own recovery Tool , that's the beauty of Batch script.  So lets Start and make our own Password recovery tool through cmd. 

 Note : This trick will crack the Integer password only !.

Step 1 :   open notepad ( windowKey + R > then type " notepad" and hit enter key ).

Step 2 :  In notepad copy paste the following code  :
               
REM visualtrue.blogspot.com
@echo off
title Rar Password Cracker
mode con: cols=47 lines=20
copy "C:\Program Files\WinRAR\Unrar.exe"
SET PSWD=0
SET DEST=%TEMP%\%RANDOM%
MD %DEST%
:RAR
cls
echo ----------------------------------------------
echo                   GET DETAIL
echo ----------------------------------------------
echo.
SET/P "NAME=Enter File Name  : "
IF "%NAME%"=="" goto NERROR
goto GPATH
:NERROR
echo ----------------------------------------------
echo                      ERROR
echo ----------------------------------------------
echo Sorry you can't leave it blank.
pause
goto RAR
:GPATH
SET/P "PATH=Enter Full Path : "
IF "%PATH%"=="" goto PERROR
goto NEXT
:PERROR
echo ----------------------------------------------
echo                      ERROR
echo ----------------------------------------------
echo Sorry you can't leave it blank.
pause
goto RAR
:NEXT
IF EXIST "%PATH%\%NAME%" GOTO START
goto PATH
:PATH
cls
echo ----------------------------------------------
echo                     ERROR
echo ----------------------------------------------
echo Opppss File does not Exist..
pause
goto RAR
:START
SET /A PSWD=%PSWD%+1
UNRAR E -INUL -P%PSWD% "%PATH%\%NAME%" "%DEST%"
IF /I %ERRORLEVEL% EQU 0 GOTO FINISH
GOTO START
:FINISH
RD %DEST% /Q /S
Del "Unrar.exe"
cls
echo ----------------------------------------------
echo                     CRACKED
echo ----------------------------------------------
echo.
echo PASSWORD FOUND!
echo FILE  = %NAME%
echo CRACKED PASSWORD = %PSWD%
pause>NUL
exit
REM

Step 3 :  save this file as Crack.bat (the extension must be .bat ) .  

Step 4 : Now  double click the Crack.bat file to open it.  It will prompt cmd screen like this : 



Step 5 : Input Full name of the file along with extension and hit enter. Then, you will be asked to input the 
             location of the file .  Input the location ( view property of the rar file to know the location) and hit enter key. 


Step 6 : that's it , Now the process will take some time to find the password. So be patience and wait till    the  password gets found.  



EmoticonEmoticon