0% found this document useful (0 votes)
24 views4 pages

Documento

This document contains instructions for a batch file that uses the unrar tool to retrieve passwords for rar files by brute forcing numeric passwords from 0 to infinity. It prompts the user for the file name and path, checks for errors, extracts the file to a temp folder, and deletes files when a password is found.

Uploaded by

Antonio Serrato
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)
24 views4 pages

Documento

This document contains instructions for a batch file that uses the unrar tool to retrieve passwords for rar files by brute forcing numeric passwords from 0 to infinity. It prompts the user for the file name and path, checks for errors, extracts the file to a temp folder, and deletes files when a password is found.

Uploaded by

Antonio Serrato
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/ 4

@echo off

Title WinRar Password Retriever

Copy “C:Program FilesWinRARUnrar.exe”

SET PASS=0

SET TMP=TempFold

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:UsersAdminDesktop) : “

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 Breaking 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