views:

78

answers:

4

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

+1  A: 

No way. You need the password, either you remember the password or the person who knows it or you need a password recovery tool, which should exist somewhere on the dark side of the web.

Andreas_D
can we list the names of files present in the zip files
Niraj Choubey
Sure - create a passwort protected zip archive and open the archive with winzip, winrar, 7zip, ... they all display the content. Password is required to extract a file from the archive.
Andreas_D
i asked programmatically using dotnetzip.
Niraj Choubey
Hope someone with dotnetzip experience follows this discussion. BTW - have you just tried reading the directory of a password protected file with dotnetzip?
Andreas_D
yes andreas , i have tried that.
Niraj Choubey
A: 

If you don't know the password, you can't open the file. You'll need to resort to some kind of zip password cracker, several can be found online.

Håvard S
+3  A: 

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

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

sarnold