On Thursday, 13. October 2011, Henri Doreau wrote: > In order to get a consistent detection stack (and actually get rid of > cpe.inc) I have moved the OS CPEs from cpe.inc to > gather-package-list.nasl, which is the script that registers the > corresponding keys. CPEs are now registered as host details with the > correct OID (not the one of cpe_inventory.inc). > > There's still a big table (basically the one from cpe.inc, re-ordered, > fixed wherever broken and updated) but it's accessed as a hashtable, > so no need for a long traversal anymore. This won't noticeably speedup > the scans but it is definitely more elegant! :) > This table only contains static CPEs, no more regexp and of course no > mix between application and OS entries anymore. > > I have used such a 1-1 mapping between "OS keys" (like "DEB5") and > CPEs, instead of directly registering CPEs in order to preserve > compatibility, as the OS keys are also used by many other scripts. > > The patch is attached for review, comments, suggestions...
I like it. Its good to have all CPE detections moved to the place where the actual detection is done. I'd say we should go for it. -- Dr. Jan-Oliver Wagner | ++49-541-335084-0 | http://www.greenbone.net/ Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460 Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-plugins mailing list [email protected] http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins
