0% found this document useful (0 votes)
3 views

Document

The document contains a batch script for a 'Rar Password Unlocker' tool that prompts the user for a file name and path to attempt to unlock a password-protected RAR file. It uses a brute-force method to increment the password until it successfully extracts the file, displaying the found password upon completion. The script also includes error handling for empty inputs and file existence checks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Document

The document contains a batch script for a 'Rar Password Unlocker' tool that prompts the user for a file name and path to attempt to unlock a password-protected RAR file. It uses a brute-force method to increment the password until it successfully extracts the file, displaying the found password upon completion. The script also includes error handling for empty inputs and file existence checks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Copy The Following code in notepad.

@echo off
title Rar Password Unlocker
copy "C:\Program Files\WinRAR\Unrar.exe"
SET PASS=0
SET TMP=Temp
MD %TMP%
:RAR
cls
echo.
SET/P "NAME=File Name : "
IF "%NAME%"=="" goto ProblemDetected
goto GPATH
:ProblemDetected
echo You can't leave this blank.
pause
goto RAR
:GPATH
SET/P "PATH=Enter Full Path (eg: C:\Users\Admin\Desktop) : "
IF "%PATH%"=="" goto PERROR
goto NEXT
:PERROR
echo You can't leave this blank.
pause
goto RAR
:NEXT
IF EXIST "%PATH%\%NAME%" GOTO SP
goto PATH
:PATH
cls
echo File couldn't be found. Make sure you include the (.RAR) extension at the end of
the file's name.
pause
goto RAR
:SP
echo.
echo Retrieving Password...
echo.
:START
title Processing...
SET /A PASS=%PASS%+1
UNRAR E -INUL -P%PASS% "%PATH%\%NAME%" "%TMP%"
IF /I %ERRORLEVEL% EQU 0 GOTO FINISH
GOTO START
:FINISH
RD %TMP% /Q /S
Del "Unrar.exe"
cls
title 1 Password Found
echo.
echo File = %NAME%
echo Stable Password= %PASS%
echo.
echo Press any key to exit.
pause>NUL
exit

You might also like