100% found this document useful (3 votes)
7K views

Winrar Password

This batch script extracts files from an archive using random passwords. It creates a temporary directory, prompts the user for an extraction path, and then repeatedly extracts the files using incrementing password values until it succeeds, displaying the password used. It then deletes the temporary files and displays the extracted file path and password.

Uploaded by

Edoardo Bighi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (3 votes)
7K views

Winrar Password

This batch script extracts files from an archive using random passwords. It creates a temporary directory, prompts the user for an extraction path, and then repeatedly extracts the files using incrementing password values until it succeeds, displaying the password used. It then deletes the temporary files and displays the extracted file path and password.

Uploaded by

Edoardo Bighi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

TITLE Mysticodes

ECHO OFF
:AGAIN
COLOR 0a
SET PSWD=0
SET DEST=%TEMP%\%RANDOM%
MD %DEST%
CLS
ECHO.
ECHO.
SET/P NAME=Enter the Destination Path:
IF EXIST "%NAME%" GOTO START
:PATH
CLS
ECHO.
ECHO Incorrect Path Name..Please Try Again...!
ECHO.
Pause
GOTO AGAIN
:START
CLS
SET /A PSWD=%PSWD%+1
ECHO.
ECHO Generating Possible Values...
ECHO CURRENT PASSWORD = %PSWD%
UNRAR E -INUL -P%PSWD% "%NAME%" "%DEST%"
IF /I %ERRORLEVEL% EQU 0 GOTO FINISH
GOTO START
:FINISH
RD %DEST% /Q /S
CLS
ECHO.
ECHO Final Output:
PAUSE>NUL
CLS
ECHO.
ECHO FILE = %NAME%
ECHO The Password is = %PSWD%
PAUSE>NUL
EXIT

You might also like