Sample Header Ad - 728x90

How can I repack zip to 7zip?

8 votes
2 answers
7064 views
How can I safely and quickly repack a zip archive to a 7zip archive? I checked options of 7zip program but I don't see any option to repack. I know I can extract to directory and then pack this directory but is it safe? What if ZIP has paths like "../../file.exe" or "/etc/bin/file.exe"? I tried unpacking files to stdout and while program 7zip can do this it outputs just content of files without their names etc. so I cannot just grab this output and redirect somewhere to pack into a 7zip archive.
Asked by Tom (237 rep)
May 16, 2017, 06:28 PM
Last activity: Sep 5, 2022, 01:23 AM