All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: corrupted brginning VBK file help reconstruct manually (HEX)
PostPosted: December 5th, 2019, 9:44 
Offline

Joined: March 4th, 2019, 8:33
Posts: 78
I've got A VBK file (veeam backup & replication) where the the beginning of the file is missing
and need to reconstruct it manually (HEX) in order to be recognized by the software

I've examined a few good working file and figured that the structure is as follows

first sector - header + some unknown (yet) bytes (will not be recognized without it)
....
sector 8 index (very important, I think every byte counts)
.....
sector 104 copy of the index (not needed)
(dumb, who puts a copy of so important data so close to the source)
....
metadata
.....
data
.....
metadata
.... Etc.

what I need the most is reconstruct sector 0x08 which tells the software where everything is located (metadata, data)
I've figured it out partially (bolow) and need help with the rest

Here is A small example I've created

note if you gonna install the software
* the intallation package is huge (3.5GB)
* takes a long time to install
* denies access to the file

structure of sector 0

Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000    09 00 00 00 01 00 00 00 03 00 00 00 6D 64 35 00  <- header
........
00000100    00 00 00 00 00 00 00 09 00 00 00 00 00 10 00 00  <- don't know what it is


I dont know what 0x100-0x10F means
it seams that 0x107 is always (?) 09
on 0x10D and 0x10F i've seen different data (attached below)

----------

structure of sector 8

Code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00001000 66 4C 9C 9A 01 00 00 00 12 00 00 00 00 00 00 00
00001010 00 30 DF 07 00 00 00 00 03 00 00 00 00 00 00 00
00001020 00 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00
00001030 00 00 00 00 6D 00 00 00 00 00 00 00 02 00 00 00
00001040 00 00 00 00 00 00 00 00 02 00 00 00 FF FF FF FF
00001050 FF FF FF FF FF FF FF FF FF FF FF FF 01 00 00 00
00001060 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00001070 00 00 00 00 A0 0B 00 00 03 00 00 00 DF 65 2F A1
00001080 00 90 01 00 00 00 00 00 00 10 50 00 33 BD FC 89
00001090 00 A0 51 00 00 00 00 00 00 10 50 00 A7 15 4D 70
000010A0 00 B0 A1 00 00 00 00 00 00 10 50 00 00 00 00 00


here is what I've found so far

0x1000 - 0x1007 might be (?) some kind of checksum (which I dont know how its calculated)
0x1008 - 0x100F ?
0x1010 - 0x1017 file size
0x1018 - 0x101B always the same as 0x1078 -0x107B number of sections (metadata, data)
0x101C - 0x101F ? (always 00)
0x1020 - 0x102F (?) always the same
0x1030 - 0x1047 (?) different data from file to file
0x1048 - 0x106F (?) always the same (except 0x1048)
0x1070 - 0x1077 (?) always the same
0x1078 - 0x107B number of sections (metadata, data)
0x107C - 0x107F (?) differnt data from file to file
0x1080 - 0x1087 location where the first section (metadata) starts
0x1087 - 0x108B the lengths of section section (always the same)
0x108C - 0x108F (?) different data from file to file
0x1090 - 0x1097 location where the second section (metadata) starts
0x1097 - 0x109B the lengths of the section (always the same)
0x109C - 0x109F (?) different data from file to file
0x10A0 - 0x10A7 location where the last section (metadata) starts
0x10A7 - 0x10AB the lengths of last section (always the same)
0x10AC - 0x10AF if its the last its always the same (0x00)

can anyone help to figure out the rest of it ?

below is attached the beginning of the files (first 0x08 sectors) I've based my research (03 and 04.bin have a lot of sections)
Attachment:
ReasearchBsedOn.zip [1.64 KiB]
Downloaded 534 times


alternatively does anyone know how the data is compressed (data starts @ 0x1E1F000) so I can decompress it ?


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: December 5th, 2019, 15:48 
Offline
User avatar

Joined: September 8th, 2009, 18:21
Posts: 15528
Location: Australia
ISTM that the info for each section should be viewed as ...

Code:
8D114320 00900100 00000000 00105000
33BDFC89 00A05100 00000000 00105000
E6B41901 00B0A100 00000000 00105000

... which would then suggest that the leading dword is some kind of checksum or CRC.

_________________
A backup a day keeps DR away.


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: December 5th, 2019, 18:13 
Offline

Joined: March 4th, 2019, 8:33
Posts: 78
fzabkar wrote:
... which would then suggest that the leading dword is some kind of checksum or CRC.

I thought that it might be a checksum for that section
because in the small dos file extract.exe (to extract the files out of the VBK) when I've searched "calc" I got a few results about CRC and SHA256 ...
the question is what and how is it calculated

or is there a way to decompress the data somehow


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: December 11th, 2019, 23:30 
Offline

Joined: March 4th, 2019, 8:33
Posts: 78
HaspHL wrote:
0x1000 - 0x1007 might be (?) some kind of checksum (which I dont know how its calculated)

0x1000 - 0x1003 must be A checksum of that sector only
but still don't know how it's calculated


Attachments:
CS.JPG
CS.JPG [ 215.47 KiB | Viewed 11050 times ]
Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: December 28th, 2019, 16:58 
Offline

Joined: December 28th, 2019, 16:50
Posts: 1
Location: Brussels
Hi HaspHL,

I just strumbled upon this thread using Google. I’m in the same pickle; the beginning of the vbk file is corrupt. The rest of the file is still intact.

Have you made any more progress? The stuff you posted here is really helpful and gives me already a lot of info to get started with. I’m not in the possession of a file that is not corrupted; so this really helps!

Hopefully we can figure this out together!

Kind regards,
Chrisker


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: December 29th, 2019, 20:54 
Offline

Joined: March 4th, 2019, 8:33
Posts: 78
1. what is the size of your VBK file ?
2. how many sectors are corrupted ?


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: July 6th, 2022, 10:40 
Offline

Joined: March 6th, 2021, 9:23
Posts: 3
Location: Türkiye
HaspHL, Hello, I have the same case. were you able to find a solution?


Top
 Profile  
 
 Post subject: Re: corrupted brginning VBK file help reconstruct manually (
PostPosted: November 26th, 2023, 7:52 
Offline

Joined: March 4th, 2019, 8:33
Posts: 78
during the time this thread is alive I've got a lot of requests to get a copy/access to the file extract.exe

what I can't understand is why does someone need to ask me to get access/copy for something that's available free of charge on the internet @veeams website


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: MasterT and 103 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group