Unzip password protected file

how to unzip a password-protected file using dotnetzip or sharpziplib (if the password is unknown).

+3
source share
3 answers

GPL-3 password cracking mailing code: http://oldhome.schmorp.de/marc/fcrackzip.html

Using the packages provided with Ubuntu, it took 19 seconds to crack the password of the supplied sample .zip file (as described in README).

+8
source

zip . , zip . zip N zip, . zip , , , DotNetZip.

DotNetZip, " " zip , ( ) zip . , zip, zip .

, - :

using (var zip = ZipFile.Read("myzip.zip")) {
  foreach (var e in zip.Entries) {
    System.Console.WriteLine("Entry: {0}", e.FileName);
  }
}

... zip , , - .

"" , , ZipEntry.ExtractWithPassword(password). .

, , C ++, .

+6

In no case. You need a password, or you remember the password, or someone who knows it, or you need a password recovery tool that must exist somewhere on the dark side of the Internet.

+3
source

Source: https://habr.com/ru/post/1753286/