1 Replies - 145 Views - Last Post: 14 January 2014 - 07:46 AM Rate Topic: -----

#1 debapriya.sen93  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 14-January 14

How to detect error code for extraction with wrong password at the beg

Posted 14 January 2014 - 07:03 AM

I am working on a brute force attack like software (a .bat file), which will try to extract a file, with some predefined passwords. My algorithm is somehow like this: -

    "C:\Program Files\WinRAR\WinRAR.exe" x -inul -ppassword1 "path to my rar file" 
    if %ERRORLEVEL% GEQ 1 GOTO try2
    GOTO exit

    :try2
    "C:\Program Files\WinRAR\WinRAR.exe" x -inul -ppassword2 "path to my rar file" 
    if %ERRORLEVEL% GEQ 1 GOTO try3
    GOTO exit

    :try3
    "C:\Program Files\WinRAR\WinRAR.exe" x -inul -ppassword3 "path to my rar file" 
    if %ERRORLEVEL% GEQ 1 GOTO try4
    GOTO exit


like this. Everything is working according to my expectation with a problem in 10% of the cases.

In normal case i.e, for manual extraction (not with my software) I found: There are certain rar files which starts extracting even with a wrong password and when the extraction is about to complete, it shows an error message "Corrupted file or wrong password" . My software in such cases, faces a great problem => It extracts the same file a number of times because ERRORLEVEL is 0 (until the extraction is about to finish). Is there any way to modify such rar files so that,it will not start extracting with wrong passwords. Or, any way to detect the error code at the beginning of extraction (Not near the end of extraction).

Is This A Good Question/Topic? 0
  • +

Replies To: How to detect error code for extraction with wrong password at the beg

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9059
  • View blog
  • Posts: 34,019
  • Joined: 12-June 08

Re: How to detect error code for extraction with wrong password at the beg

Posted 14 January 2014 - 07:46 AM

We will not help you create malicious tools, and I ask you do not persist in continuing this inquiry here. I am closing the topic, and if you have further questions on 'why' feel free to shoot me a PM.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1