From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Format:Berkeley DB database file" |
|---|
| claim | "A Berkeley DB database is recognised by a 32-bit magic at file offset 12 (0x053162 btree, 0x061561 hash, 0x042253 queue), stored in the creating machine's byte order." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Berkeley DB database files" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "magic" |
|---|
| indicator | "offset 12: 62 31 05 00 (btree LE), 61 15 06 00 (hash LE), 53 22 04 00 (queue LE); big-endian files show 00 05 31 62 etc." |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "magic is field 12-15 of DBMETA; values in db.in. Byte-order statement is from general knowledge of the library (readers swap), not read in source." |
|---|
| repo | "https://github.com/berkeleydb/libdb" |
|---|
| commit | "5e00a8b5e17afac346816a60dbe876b1881c6990" |
|---|
| path | "src/dbinc/db_page.h" |
|---|
| lines | "73-94" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "Magic at offset 12" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T23:13:16.642Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T03:42:38.593Z" |
|---|
| result | "confirmed" |
|---|
| method | "libdb db_page.h lines 73-94: DBMETA magic at bytes 12-15; db.in lines 1314-1326: DB_BTREEMAGIC 0x053162, DB_HASHMAGIC 0x061561, DB_QAMMAGIC 0x042253. Byte-order statement not read in source (still medium)." |
|---|
|
|
|---|