Avatar of sunhux
sunhux
 asked on

How to read/extract whats in Clam's safebrowsing.cld or .gdb

I would like to read what's in Clam AV's safebrowsing .cld
(that lists the blacklisted sites).

After following some suggestions online, extracted from
the cld file  the following (using dd & 7zip):
08/11/2018  02:13 PM            18,325 Copying.txt
08/11/2018  02:14 PM       113,037,608 safebrowsing.gdb
08/11/2018  02:14 PM               514 safebrowsing.info

How can we read/extract the gdb file?
Anti-Virus AppsSoftwareDatabasesFile Sharing Software

Avatar of undefined
Last Comment
noci

8/22/2022 - Mon
noci

It looks like they are encrypted Berkeley DB files  or Gnu db files
(db_dump / gdbm_dump) should be able to process those).
Question is what is the password .., you may need to check the clamav sources for that.

DB 5.3 shows the error: BDB0178 Encrypted database: no encryption flag specified/var/lib/clamav/safebrowsing.cvd:
if i try gnu db (gdbm)  gdmb_dump shows: gdbm_open failed bad magic number.
sunhux

ASKER
I recall long ago that in databases, the message 'bad magic number'
doesn't mean it requires a password but it's something else.

Wonder how Clam AV reads it
noci

Note Berkeley DB is not GDBM... Berkeley claims to recognize the files as being encrypted. GDBM actually claims to not know the files.
Those are different toolsets...

Berkeley DB (appearantly now Oracle:) http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/overview/index.html
GDBM: https://www.gnu.org/software/gdbm/
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
sunhux

ASKER
https://fileinfo.com/extension/gdb

or it could be Borland's database:  I'll look for a PC that I could install File Viewer Plus
ASKER CERTIFIED SOLUTION
noci

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.