Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • RSS Feed

    subscribe to the Debian Admin RSS feed
  • Sponsors



    • Cheap Web hosting services
  • Categories

  • Meta

  • Support Debian Admin

    Amount $:
    Website(Optional):

  • Sponsors

  • Archives



Howto Crack Rar, 7z, and zip files in Linux

Posted by Admin on April 24th, 2008

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

If you forget your password for compressed archive (rar, 7z, zip), this program is the solution.This program uses bruteforce algorithm to find correct password. You can specify wich characters will be used in password generations.

Warning: Please don’t use this program for any illegal things!

Preparing your system

First you need to install the following package

#apt-get install libxml2-dev build-essential

Now you need to download the latest version of rarcrack from here

#wget http://surfnet.dl.sourceforge.net/sourceforge/rarcrack/rarcrack-0.2.tar.bz2

Now you have rarcrack-0.2.tar.bz2 file and you need to extract this file

#tar -xjf rarcrack-0.2.tar.bz2

#cd rarcrack-0.2

#make

You must be root to run the following command

#make install

Using Rarcrack

rarcrack your_encrypted_archive.ext [--threads thread_num] [--type rar|zip|7z]

Example

rarcrack something.rar

After the cracking started RarCrack will print the current status of cracking and save it’s to a status file. If you want more specific password character set, you need to run RarCrack to create the XML status file (3 sec).

 

Share/Save/Bookmark

4 Responses to “Howto Crack Rar, 7z, and zip files in Linux”

  1. H Says:

    how if the file is a exe that was a rar ? exe with password.
    please help

  2. George Says:

    I tested rarcrack but failed.
    A file (a.txt) was crypted by WinRAR 3.5 with password ‘aa’. The encrypted file is a.rar.

    ./rarcrack a.rar
    RarCrack! 0.2 by David Zoltan Kedves (kedazo@gmail.com)

    INFO: detected file type: rar
    INFO: cracking a.rar, status file: a.rar.xml
    Probing: ‘p8′ [539 pwds/sec]

    it didn’t found ‘aa’.

    George

  3. Belete Says:

    i forget it my zip folder file help me when i get my password or breaker it and the folder has four file

  4. Merc Says:

    Of course, brute force can sometimes useful but in most cases it’s not (the same for this program approach).

    On my 1.6Mhz/512MB it’s an average of 50pass/sec which means 180.000 password/h. Pretty impressive but…

    Let’s consider we have 62 digits to try (A-Za-z = 52, 0-9 = 10). This means

    2 digits pass = 62 * 62 = 3844 possible combinations
    3 digits pass = 62^3 = 246.016 possible combinations

    and for a simple 5 digits pass means 62^5 = 916.132.832 combinations.

    How take this number, divide it by 180k pass/h and we’ll have more than 5000h ~ 212 days of non stop trying. Put a 8 character password and you’ll end up with a lifetime.

    A more friendly approach (I saw it long time ago) was to remove the password from the file and modify the file flag to nonpass situation, but I’m not quite sure if it’s still working.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
Rodney's Kontera DynamiContext Plugin plugged in.