Possible Duplicate:
ZIP password recovery

I have rar & zip files that I made a year ago and I don't remember the password. Is there a way to recover it?

link|improve this question
feedback

migrated from stackoverflow.com Mar 29 '11 at 12:53

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by Tom Wijsman, BloodPhilia, studiohack Mar 30 '11 at 15:08

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

I think that the only way you can try is the Bruteforce method. There are many tools that can do the job but it's a really bad/long/... solution.

On linux, you can try Rarcrack.

Example :

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

According to the documentation :

Everything in [] are optional, rarcrack default crack two threads and autodetect the archive type. If the detection wrong you can specify the correct file type with the type parameter. RarCrack currently crack maximum in 12 threads.

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).

<?xml version="1.0" encoding="UTF-8"?>
  <rarcrack>
    <abc>0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</abc>
    <current>uU</current>
    <good_password></good_password>
  </rarcrack>

This is a sample XML file, and you see there is a character set. If you want, you can modify this file and when you start RarCrack again the program will be use new variables.

Warning: Take care when you changing this file, make sure the current password don't have characters outside the abc[character set]!

link|improve this answer
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.