Голосование за лучший ответ
dim565
Искусственный Интеллект
(423307)
7 лет назад
Это хоть архив открываете? Видимо повредился.
Игорь ЦветковПросветленный (40378)
7 лет назад
не мог он повредится…
dim565
Искусственный Интеллект
(423307)
попробуйте через winrar
Галерный
Искусственный Интеллект
(111439)
7 лет назад
Открывай через WinRAR)))
Если не поможет, то пробуй из под Linux.
Не открылся и в Linux – АРХИВ БИТЫЙ
Олег Пхиденко
Просветленный
(21253)
7 лет назад
Если распаковывать (не открывать, а распаковывать) WinRAR, то при появлении ошибки в окне сообщения WinRAR найти пункт что то типа “оставить на диске” и поставить галку. Продолжить. Обычно распакованный файл открывается
Comments
kolesar-andras
added a commit
to kolesar-andras/ArchiveStream-php
that referenced
this issue
Feb 15, 2018
Extra fields need to have a 2-byte long size field after type field. Zip64 record in file header did not have this field. Fixes issue barracudanetworks#44 for recent version of 7-Zip: * 18.01 reports OK. * 16.02 still reports Headers Errror.
kolesar-andras
added a commit
to kolesar-andras/ArchiveStream-php
that referenced
this issue
Feb 15, 2018
7-Zip version 16.02 complaints with Headers Error if there is 0xFFFF.
Even when Zip64 EOF has the correct value.
Fixes barracudanetworks#44 in 7-Zip version 16.02.
A free file archiver for extremely high compression
-
Summary
-
Files
-
Reviews
-
Support
-
Wiki
-
Tickets ▾
- Support Requests
- Patches
- Bugs
- Feature Requests
-
News
-
Discussion
Menu
▾
▴
Битые архивы. Ошибка заголовка
Created:
2022-03-21
Updated:
2022-03-23
-
Здравствуйте!
есть 3 битых архива с паролем.
По статье https://www.7-zip.org/recover.html восстановить не получается.
Помогите, пожалуйста, восстановить данныеПример одного из файлов
Start Header
37 7a bc af 27 1c 00 04 b9 9e 90 10 e5 28 a0 01
00 00 00 00 25 00 00 00 00 00 00 00 01 92 c8 02Start of compressed data.
02 e0 24 c3 ..по расчетам и Headerа длина файла должна быть 27 273 514 байт
мой файл 27 209 728 байт
попробовал дополнить файл на 63 786 байта из подобного архива, с тем же паролем,7z t a.7z -bb9 -pYourPassword -bse1 > test.txt
выдает ошибку
Open ERROR: Can not open the file as [7z] archiveERRORS:
Headers ErrorCan’t open as archive: 1
Files: 0
Size: 0
Compressed: 0Last edit: Who Is Absent 2022-03-21
-
show last 128 bytes in hex.
-
последние 128 байт
44 6e 26 2c 8c 88 04 b7 08 c3 5b 85 46 54 c1 f4
80 f4 8d 29 91 98 52 92 86 d6 11 a4 58 0a 3a 5e
3e bb b9 19 02 eb a3 7e dd 56 7f dd 6e a0 24 11
c5 04 d4 87 7f 4c c3 9c 2f bc 2b 14 70 35 ee 46
77 c1 22 16 26 8b 2e b5 a6 06 cb 64 00 4c e7 aa
90 23 8d 67 ea 54 35 0c 00 00 17 06 e1 b0 c0 76
01 09 98 e3 00 07 0b 01 00 01 23 03 01 01 05 5d
00 00 01 00 0c c0 62 ee 0a 01 1f 8f 67 3f 00 00Last edit: Who Is Absent 2022-03-21
-
The end of archive looks correct.
You must insert some data in the middle of archive.
Split the archive into 3 parts:
part-1 – big part
part-2 – 1 byte
part-3 – about 1 MBthen increase the size of part-2 with any data such way that total size of all parts will be equal to size of original archive as pointed in header.
Then try to open it.
-
исходные данные.
не полный архив с паролем
размер 5 766 381 568 байт
1. вычитал header 20 байт
37 7a bc af 27 1c 00 04 78 4f 7d cc 54 ca 8f 62
01 00 00 00 29 00 00 00 00 00 00 00 5d a8 4e
2. размер файла должен быть 5 948 557 908
3. обозвал исходный файл 1.7z.001
4. создал 1.7z.003 нулями и последние 128 байт добавил из аналогичного архива
5. разделил файл 1.7z.001 на две равные части и назвал их 1.7z.001 и 1.7z.002 каждый по 2883190784 байт
header не правил во второй и третий файлы header не добавлял
по итогу файл не распаковывается
ругается на Ошибки в заголовках
-
there are two different situations for recovering:
situation-1 : if you have correct end header in last 128 bytes,
then insert data in the middle.situation-2 : if you have no correct end header in last 128 bytes
use end header from another archive. But if archive was encrypted, then IV will be different and you will get incorrect first 16 bytes of lzma2 stream. So data recovering can be much more more difficult for encryped archive, if you have no correct end header. You must develop special software in that case that will help to recover the data.Also if you have many corrupted archives, try to analyze all cases of correct archives and incorrect archives, and try to find the reason of corruption. Analyze original and corrupted sizes and data.
-
у меня вторая ситуация.
огромное СПАСИБО за развернутые ответы!
-
in previous message you showed last 128 with correct end header.
So you had situation-1 in that case.
-
эти 128байт(footer) были взяты из другого архива с другими данными и другого размера но с тем же паролем.
при добавлении их в в конец архива я получаю ошибку “Ошибки в заголовках” т.к. header я не исправлял, он как был, так остался оригинальным.
footer оригинального архива отсутствует.
-
Then that your information was useless. I know that corect archive has correct end header.
I asked you to show real last 128 bytes of corrupted archive.Last edit: Igor Pavlov 2022-03-23
-
пример поврежденного файла
header
37 7a bc af 27 1c 00 04 b9 9e 90 10 e5 28 a0 01
00 00 00 00 25 00 00 00 00 00 00 00 01 92 c8 02footer
92 52 ba 47 85 98 a8 7a a8 b7 1a 71 5a 0d cc 54
32 55 2c 8a 1a 4f 7c b1 40 46 64 5b b1 ce e1 bf
45 ac be 0d 9e ed 4a 36 ed fa d6 65 3f f4 c6 c1
70 46 ad 43 b0 48 de d3 11 26 3e f6 fd 41 78 7d
d5 34 e5 8a e4 87 36 7c 54 7e 01 15 5b 28 e9 f2
44 27 18 f9 11 b4 88 36 f8 23 94 1a 05 68 1f 6c
75 cc 6a a2 46 82 6a 16 80 29 64 3f 20 df aa d3
30 ef 7f 87 71 d6 20 08 9f 87 0b 7b 9f a2 a7 93размер поврежденного файла 27 209 728 байт
Last edit: Who Is Absent 2022-03-23
-
To recover data you need to recover 128-bit IV for AES-CBC that was stored in missing footer.
So you need original uncompressed data (at least 32 bytes) from first file in archive. Then you compress it with lzma2 and use it to recover AES-IV.original_data -> lzma2_compressed_data lzma2_compressed_data + password + IV -> encrypted_data
you have
encrypted_data
andpassword
.
so you needoriginal_data
orlzma2_compressed_data
to recoverIV
. You can try to search first file another good 7z archives that were created for same data set.Also you must develop special modified 7-Zip that will be used for recovering using different sources: corruped archive, recovered IV and so on.
Note also that only raw data stream recovering is possible. You will not get any file names, sizes and so on.
Last edit: Igor Pavlov 2022-03-23
Log in to post a comment.
I have code for creating zip file in ant build script.
<target name="zip-dist" description="archiving artifacts">
<zip destfile="${artifacts}/${zipfile}.zip" update="false" basedir="${target.dist}" includes="*.xyz-*" />
</target>
When file is being extracted using win zip right click -> Extract All...
there’s no warning, but while extracting with 7-zip
showing ‘Warnings: Headers Error’ but its successful.
I know this has no effect on the output as its just a warning so suggested users to ignore it or use win-zip method.
But trust me it is impossible to make them understand and they all are keep on eating my head.
There are many users and I am banging my head repeating same thing again and again. Still they want it to be fixed.
Can I use any attribute in ant-zip
target or should I use any different zipping technique in ant build
?
I have searched multiple online sources, this is last hope!
Please help.
asked Aug 19, 2019 at 13:33
I had the same issue.
Fixed adding only one attribute, to force Zip64 extensions:
zip64Mode="always"
Try and should work for you too.
סטנלי גרונן
2,90723 gold badges46 silver badges68 bronze badges
answered Jan 7, 2020 at 17:34
2
Instead of regular zip target used 7-zip to create zip.
<property name="7z.exe" value="C:/Program Files/7-Zip/7z.exe" />
<target name="zip-dist" description="archiving artifacts">
<exec executable="${7z.exe}">
<arg value="a" />
<arg value="-tzip" />
<arg value="${artifacts}/${zipfile}.zip" />
<arg value="${target.dist}/*.xyz-*" />
</exec>
</target>
As 7-zip includes all necessary information regarding header, so that warning will not occur.
Of course, 7-zip must be available in system.
answered Aug 20, 2019 at 8:16
PremPrem
3081 gold badge4 silver badges23 bronze badges
The use of emails for sharing files has become a part and parcel of our lives. While small-sized files can be easily transferred via email, but for sharing large-sized files we compress them using archive file formats like 7 ZIP, ZIP, RAR, etc. 7 Zip is a very popular compressed file format used for compressing and transferring files over the network. The facility of compressing multiple large files into a single 7 ZIP archive file makes the compressed file vulnerable to malware and virus infections. In case there is an error during file transfer, the file gets corrupted. Corruption of files may manifest itself in errors such as the “headers” error.
Zip File Header Error Reason
Your computer may be infected with a virus and you may not realize this until you are unable to access 7 ZIP files. In this article, we will discuss the causes leading to headers error and solutions to repair headers error of 7 Zip files. First, we will discuss the causes:
- As compressed files are prone to corruption by virus or malware program infection, such infection can render the file as unreadable.
- Sudden system shutdown due to power failure while extracting 7 ZIP files can lead to a header error. You may not be able to access the file when you try to extract it later.
- In case there are complications in the installation process of programs like Win Zip,7 ZIP, Pal Talk, etc. you may get a “header corrupt “ message.
- Damage to the storage space where the files are stored.
- There can be errors due to invalid data introduced in the files at the time of download. Also if there is an interruption while downloading the 7 ZIP file from the internet, it gets corrupted.
- Use of unauthorized third-party software to extract 7 ZIP files and fix compressed zip folder error.
Methods to Repair Headers Error of 7 ZIP Files
In this section, we will discuss the methods to repair headers error of 7 Zip files :
Method 1. Run Command Prompt to Repair Headers Error: You can repair headers error of 7 Zip files by running the command prompt. Follow the steps given below:
Step 1.Open the Command Prompt of your system as an administrator and not as a standard user. The steps to be followed for this purpose vary for different Windows OS versions as shown below:
For Windows 7, Vista 8 and XP:
- Select the Start button.
- Go to All Programs > Accessories.
- Right-click on the Command Prompt button and select Run as Administrator.
For Windows 8.1 and 10 follow these steps :
- Right-click on the Start button.
- Select the Command Prompt (Admin).
Step 2.Change the directories to the original location of your corrupt ZIP file.
Step 3.Type in the command :
“C:Program FilesWinzipwzzip” – yf
zipfile.zip
Step 4. Press the Enter key to run the command. You can use the name of your Zip file instead of “zipfile.zip to find the invalid or corrupt files.
Method 2. Use Another Free Compression Software: You can repair headers error of 7 Zip files by using another free compression software. Apart from 7 Zip, there are many open-source tools available online for free. Some of them are :
- WinZip: It is a very popular compression tool used for both compressing and extracting files. The Zip Send feature allows you to zip and send large files.
- Zipware: It supports all the major archive file formats for both small and large files. You can perform your compression function directly from Windows Explorer.
- WinRar: It is a great tool for compression of multimedia files. The “solid archive box” feature allows you to compress files in batches.
- PeaZip: This file compression tool supports over 150 archive file formats and has a large number of advanced features.
Method 3. Repair Headers Error of 7 Zip Files with Aryson Archive Recovery:
Aryson Archive Recovery Tool is highly efficient in extracting corrupt, damaged, and inaccessible. zip files without affecting the original content. This software comes with an ultimate Repair algorithm to extract corrupt Zip files in any condition and repairs them to allow access for future use. It is the best solution to extract files from all types of zip files which are created by WinZip, WinRAR, Zipware, etc. It can easily repair corrupt zip files which are either spanned or split.
A Direct Ways for Repairing Headers of ZIP Files
Aryson Archive Recovery tool is a Windows-based software that is capable of repairing and restoring all types of ZIP files. It can quickly fix corrupt spanning or split zip files. Follow the steps given below to repair headers error of 7 Zip files:
Given Steps to Repair Headers Error of 7 ZIP Files
- Launch the software first. Choose either single or multiple files. Hit Browse to select a single ZIP file.
- The chosen ZIP file will be displayed in the edit box. Press Open to proceed.
- Choose the recovery mode: Standard or Advanced. Hit the Next button to continue the process.
- All recovered files will be displayed in the list. Press the Next button to proceed.
- To save the recovered output, tap Browse, and define a location. You can save them at the original location too.
- Tap Save to start the saving process.
- Hit the OK button.
- Once the saving process is completed, select OK and exit.
Aryson Zip File Repair Tool is useful in many instances
- Use when restoring Zip Files: It is a flexible, efficient, easy to use, and inexpensive ZIP recovery program that helps you to recover as much information as possible from damaged ZIP files. It needs low repair costs for maintenance, which saves a lot of time and money. It can be used by any user whether he is a techie or not.
- Use when Restoring Files from Corrupted Zip Files: Freeware Online Archive Data Recovery Tool is the fastest and best application that has many advanced algorithms. It can easily restore your lost Zip files on all Windows versions such as Windows 10, Windows 8, and 8.1, Windows 7, etc.
- Use to Fetch Inaccessible ZIP Files: ZIP Repair Tool can easily recover data from the corrupted inaccessible ZIP files. This tool fully supports types of zip files that are created by WinZip, WinRAR, etc. The tool has an essential function that utilizes minimal time for the complete recovery of multiple zip files’ data.
- Use to Solve the Error “Cannot open file: not a valid archive”: A zip file (single file) includes several large size files. When this zip file becomes inaccessible, it shows an error such as “ Can not open file: not a valid archive.” ZIP File Recovery Program plays a crucial role in retrieving complete files.
Conclusion
The ZIP format is used for transferring large-sized data files by compressing it into a zip file. However, there is a chance of files getting infected with malware or virus and becoming inaccessible. Aryson Archive Repair Software plays a key role in repairing corrupt files and extracting them without damaging the original content.
Realted Post