Passwort aus Archiv (ZIP) entfernen

Cybercat

Board Kater
Registriert
21 Juli 2013
Beiträge
3.436
Ort
Ruhrpott
Kann man aus einer verschlüsselten ZIP (Passwort ist bekannt) das PW entfernen ohne das Archiv entpacken zu müssen?
 
[src=bash]$ zip -h2 | grep -i password
-e use standard (weak) PKZip 2.0 encryption, prompt for password
-P pswd use standard encryption, password is pswd
$ unzip -hh | grep -i password
-P p Use password p to decrypt files. THIS IS INSECURE! Some OS show
funzip [-password] [input[.zip|.gz]][/src]

q.e.d.
 
'unzip' macht also nicht, was man denkt, was es machen sollte?
 
Grep geht zeilenweise vor, die Onlinehilfe von 'unzip' verteilt seine Ausgabe bisweilen auf mehrere Zeilen.

[src=bash]-P p Use password p to decrypt files. THIS IS INSECURE! Some OS show
command line to other users.[/src]

[src=bash]funzip stream extractor:
funzip extracts the first member in an archive to stdout. Typically
used to unzip the first member of a stream or pipe. If a file argument
is given, read from that file instead of stdin.

funzip command line:
funzip [-password] [input[.zip|.gz]]
[/src]
 
Zurück
Oben