Decode Shareaza's library1.dat file

Discuss any general topics regarding Shareaza.
Forum rules
Home | Wiki | Rules

Decode Shareaza's library1.dat file

Postby gabicea » 18 Sep 2013 12:18

I'm writting a program to do readable the library1.dat file but I had found some problems to do it. Could someone help me to understand the internal structure of that file.

Thanks a lot.
gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby queueclimber » 20 Sep 2013 19:11

I'm sure, no one can help you, if you didn't specify the trouble you have.
User avatar
queueclimber
 
Posts: 158
Joined: 25 Jun 2012 19:22

Re: Decode Shareaza's library1.dat file

Postby gabicea » 21 Sep 2013 11:30

I don't know the internal structure of Library1.dat, so, I can't decode it... Maybe someone knows the meaning of each byte
gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby old_death » 21 Sep 2013 20:33

AFAIK, it's an slite based database. Why don't you download the Shareaza source code and use it as a basis for decoding it?
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Decode Shareaza's library1.dat file

Postby gabicea » 23 Sep 2013 11:46

gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby old_death » 23 Sep 2013 14:56

A good starting point might be the startup routine or the plugins creating file previews and extracting metadata. ;)
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Decode Shareaza's library1.dat file

Postby gabicea » 23 Sep 2013 15:47

gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby gabicea » 23 Sep 2013 19:23

I have been looking the Shareaza's sourcecode, and I have found some trouble in Serialize function of Libary.cpp file. First of all, the Shareaza stores the FILETIME, then the LIBRARY_SER_VERSION, but when it calls to Serialize1 function I'm lost and I don't know whats the meaning of the next bytes...
gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby queueclimber » 23 Sep 2013 21:43

Erm, yes.
It is coded on a very high level.
User avatar
queueclimber
 
Posts: 158
Joined: 25 Jun 2012 19:22

Re: Decode Shareaza's library1.dat file

Postby old_death » 23 Sep 2013 23:04

What function are you referring to exactly? (File and line number plz)
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19

Re: Decode Shareaza's library1.dat file

Postby gabicea » 27 Sep 2013 23:24

gabicea
 
Posts: 6
Joined: 17 Sep 2013 12:43

Re: Decode Shareaza's library1.dat file

Postby old_death » 30 Sep 2013 13:00

It's easy: each serialize function writes the content of the class it is a member of to file. In order to extract the information from the library.dat file, just copy/paste all of the serialize functions to your program and make sure they are called in the right order and in reading mode.
User avatar
old_death
 
Posts: 1950
Joined: 13 Jun 2009 16:19


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron