The batch processing file is lightweight, and the RAR and zip passwords are cracked?

Source: Internet
Author: User
In the past two days, a friend forgot his RAR password.

I said: you go online to find software
He replied: none of them match the latest version.
I said: write it yourself.ProgramCall the command line provided by RAR to judge the information returned by RAR. Ext.
He replied: It seems very difficult for me to be in a hurry.
I said: I will test it and write several lines of programs for you.
He replied: Well, I am waiting.

Open "vs. Net that allows anyone to forget other development environments"
Create a C # project and prepare to writeCode
Nnd has not been writing the capture command line for a long time and still needs to find information depressing
Then I suddenly thought that the windows batch processing for command was very useful.
After a one-minute test, we finally completed the for command, combined with the type command and unrar.exe, and had a dictionary.
Later I found that zip can be done in a similar way.
The method is as follows:

    1. Create a directory and replace it with [dir ].

    2. Copy the RAR you forgot the password to [dir] (This RAR is represented in rarfile.rar below)

    3. Copy the unrar. EXE or RAR. EXE files in the RAR installation directory of your computer to the [dir] Directory.

    4. Find a program to generate a dictionary (which is expressed by pss.txt ),
      The row format is as follows: (one carriage return in each row)
      123
      ABC
      Test
      Admin

    5. The content of a new batch processing file is as follows (expressed by unrarfile. cmd ):
      For/F "usebackq" % I in ('Type pss.txt ') Do unrar.exe e-p % I rarfile.rar

    6. Then you can run unrarfile. cmd. The screen will stop there and ask you
      ----------------------------------------------
      [File] already exists. Overwrite it? <
      [Y]-Yes, [N]-No, [a]-All, [e]-never, [R]-Rename, [Q]-quit
      ----------------------------------------------

    7. Press Ctrl + C to end the command.
      Your file has been decompressed.

Qu bin-12-7 csdn debut (if reproduced, please indicate the author and where to reprint)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.