{"id":39,"date":"2008-02-03T15:56:28","date_gmt":"2008-02-03T15:56:28","guid":{"rendered":"http:\/\/pentestmonkey.net\/?p=39"},"modified":"2011-08-20T15:51:13","modified_gmt":"2011-08-20T15:51:13","slug":"osvdb-import","status":"publish","type":"post","link":"https:\/\/pentestmonkey.net\/blog\/osvdb-import","title":{"rendered":"Importing OSVDB into a Postgres Database"},"content":{"rendered":"

I was looking at the Open Source Vulnerbility Database<\/a> (OSVDB) recently.\u00a0 If you haven’t come across it before, it’s a source vulnerability information, similar to bugtraq<\/a> or secunia<\/a>.<\/p>\n

OSVDB has a good web frontend which is easy to search.\u00a0 I was investigating if the database could be downloaded and searched offline during onsite pentests when no Internet connection is available.<\/p>\n

In this post I talk about some of the problems I encountered and how I worked around them.\u00a0 OSVDB is a fantastic resource and I hope this post helps you get some use out of it.<\/p>\n

<\/p>\n

Downloading OSVDB<\/h3>\n

Once you agree to the license<\/a> it’s possible to download XML dupms of the OSVDB database.\u00a0 At the time of writing these were about 100 MB when uncompressed and contained information on around 40,000 vulnerabilities.\u00a0 This should be a valuable asset when you’re cut off from the Internet.<\/p>\n

Searching your Offline OSVDB<\/h3>\n

There are several ways you could go about searching this information.\u00a0 The ones that occurred to me initially were:<\/p>\n