Kazaa DBB Database File - 9 Fields plus Kazaa Hash Decoded

Using EnCase to Decode DBB Record Field Values

 

Return to Main Forensics Help Page

 

 

Important Note: Before reading the contents of this page, it is useful to first digress and understand how to view the Kazaa database file within EnCase and to understand the structure of each of the DBB record fields.  After doing so, return to this page and its contents will be much more understandable!  Go here first!

 


Example #1 – A File that is shared in Kazaa


1)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,320
Comment: Field #1
Slot signature label - DWORD - constant


l33l


2)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,324
Comment: Field #2
Count of bytes effectively used in this slot AFTER this field. Can be null.
DWORD 32 bit integer value


Hex

UInt32

Int32

000000f0

240

240




3)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,328
Comment: Field #3
Local name of shared file
hex00 separates this field from field that follows
ANSIZ format




Gabriel, Peter - Revenge.mp3


4)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,357
Comment: Field #4
Name of local file system where this slot's shared file exists.
hex00 separates this field from field that follows
ANSIZ format




C:\My Shared Folder


5)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,377
Comment: Field #5
DWORD Value
File Size 1,455,043 bytes

Hex

UInt32

Int32

001633c3

1455043

1455043




6)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,381
Comment: Field #6
Date/Time File last modified (Unix Date - DWord)

Time/Date

12/11/03 11:13:18AM




7)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,385
Comment: Field #7
Date/Time File last available for sharing - no value if still being shared

Time/Date

Invalid




8)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,389
Comment: Field #8
Unknown dWord value


··


9)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,393
Comment: Field #9
Flag - share or not
01 default is to share
00 turns off sharing - requires user action


Hex

UInt32

Int32

______01

1

1




10)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 1,492
Comment: Kazaa hash value




9E 0A 22 07 77 6A 35 73 0C 9F 19 BA 25 78 F6 55 8F


Example #2 - A File that is NOT shared in Kazaa


11)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,240
Comment: Field 1
Slot signature label
DWORD constant




l33l


12)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,244
Comment: Field 2
Count of bytes effectively used in this slot AFTER this field - can be null
DWORD



Hex

UInt32

Int32

000000aa

170

170




13)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,248
Comment: Field 3
Local name of file referenced in this slot or record
ANSIZ





2.gif


14)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,254
Comment: Field 4
Name of local file system directory where this slot or record's file exists
ANSIZ





C:\My Shared Folder


15)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,274
Comment: Field 5
Size of file in bytes
DWORD 32 bit integer




Hex

UInt32

Int32

0001512d

86317

86317




16)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,278
Comment: Field 6
Date/Time file was last modified
DWORD Unix date / time



Time/Date

10/13/03 05:09:24AM




17)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,282
Comment: Field 7
Date/Time file last available for sharing - default is zero
DWORD Unix date / time



Time/Date

Invalid




18)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,286
Comment: Field 8
Unknown dword value
DWORD


Hex

UInt32

Int32

0000210a

8458

8458




19)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,290
Comment: Field 9
Flag - shared or not
01 is default and means shared
00 is NOT shared and is set by user action




00



20)
Full Path Test\0\C\Documents and Settings\sbunting\Application Data\Kazaa Lite\db\data256.dbb
File Offset 75,331
Comment: Kazaa Hash Value


6A 57 E4 E0 56 BB DD 42 B5 CA AE F1 6A 7B C3 55 D2 AE FE FF

 

 

Supplemental Information:

That which follows is not part of the EnCase analysis.  Rather, it is illustrated supplemental information regarding sharing within the Kazaa software.

 

The above screenshot shows that file sharing has been disabled globally within Kazaa.  When this occurs, the registry key: HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing will have a hex value of 01.  Normally, (default - sharing permitted), this value will be hex 00.  Note that the icons depict that the file sharing is not occurring. 

 

 

Even though file sharing has been turned off globally, the bit flag in the dbb file still shows the default value of 01, which means sharing is permitted for the file as long as file sharing globally is enabled, which is currently not the case.

 

 

Restoring global file sharing back to its default condition, which enables file sharing, the icons change to indicate file sharing is enabled.  The icons change to show arrows that depict sharing.  When in this default condition (global file sharing permitted), the registry key: HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing will have a hex value of 00.

 

 

Selecting a file (or group of files) and right clicking provides the user with the option to “Stop Sharing” or alternatively to “Start Sharing” if sharing had been stop for a file or files. 

 

 

Upon stopping the sharing of a file or group of files, the icon changes of those files as shown above.

 

 

Concurrent with the icon change, the share bit flag in the dbb is set to hex 00, indicating that the file is no longer available for sharing.

Another example:

To further exemplify this feature, two identical files were added to the Kazaa “My Shared Folder”.  One was named 1.gif while the other was 2.gif.  The default sharing was “stopped” for 2.gif.  Below are the hex value streams for the first nine fields in the dbb records for these two files.

Field 1         Field 2       Field 3                Field 4                                                                         Field 5       Field 6        Field 7     Field 8        Field 9

6C33336C AA000000 312E676966 00 433A5C4D792053686172656420466F6C646572 00 2D510100 C46B8A3F 00000000 0A210000 01

                                    1  .  g  i  f                                                                                                                                                                     Shared by default    

6C33336C AA000000 322E676966 00 433A5C4D792053686172656420466F6C646572 00 2D510100 C46B8A3F 00000000 0A210000 00

                                    2  .  g  i  f                                                                                                                                                                     Share turned off

 

Red denotes values that are different (file name 1 or 2 and share on or off)

Note:  2.gif is the same file used in example #2 above for a file whose sharing has been stopped.

 

Summary:

Thus to determine if a file is being shared by the Kazaa user, one must first ascertain if sharing is enabled globally.

HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing  = hex 00 then sharing is globally permitted

If HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing = hex 00, then you must examine the dbb file record for the file in question.  If the share bit flag for that file is the default value of hex 01, then that file is being shared.  If the share bit flag value for that file is hex 00, then the user has intentionally turned off sharing for that file.

For a file to be shared, HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing  must equal hex 00  AND the file’s share bit flag value (dbb record field #9) must be set to the default value hex 01.

HKEY_CURRENT_USER\Software\Kazaa\LocalContent\DisableSharing  = hex 01 then sharing is globally turned off – no sharing of files within the Kazaa software is being permitted at that time regardless of their bit flag setting in the dbb record.

 

 

Testing and validation conducted Monday, December 15, 2003 using EnCase 4.16a, WinHex V 11.15, and Kazaa K++ 2.4.3 running under Windows XP. To further validate these raw data values, several files were selected and had their file share byte flags changed from what they were (00's were changed to 01's and 01's were changed to 00's).  The system was restarted to avoid "data resident in RAM" issues.  Upon restart, those with changed share values were detected as changed within Kazaa.  Furthermore, the DBB files were evaluated by Kazaalyzer.  All results were cross-checked and validated between Kazaalyser and Kazaa after having been altered in Win Hex.    Individual examiners are strongly encouraged to test and validate these settings and procedures in their own environment to assure they achieve similar results and to be able to testify first hand as to their findings.  If anyone discovers significantly different findings from what is presented here, please advise me at once so we can determine why there is a difference and report the results of any discrepancies, errors, or omissions. 

Thanks . . . .

Steve

 

 

This web site was created to provide assistance to computer forensics examiners engaging in cyber-crime investigations.  This field is rapidly evolving and changing as technology marches forward.  It is, therefore, intended to be a growing and evolving resource.  As you conduct your examinations and investigations, if you encounter information, links, or have suggestions that would help others, please let me know so I can add it to this site.  My email address is sbunting@udel.edu .  Thank you.

This site created and maintained by: 
Steve Bunting
Email: sbunting@udel.edu