{"id":84,"date":"2018-03-02T11:37:47","date_gmt":"2018-03-02T19:37:47","guid":{"rendered":"http:\/\/www.emeralddesign.com\/?p=84"},"modified":"2022-01-30T20:36:18","modified_gmt":"2022-01-31T04:36:18","slug":"automatic-greenbone-openvas-feed-updates","status":"publish","type":"post","link":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/","title":{"rendered":"Automatic Greenbone\/OpenVAS Feed Updates"},"content":{"rendered":"<p>After getting things up and running a few weeks back, the system has sat idle waiting for me to do something with. Low and behold, the feeds were well out of date. Apparently you have to manually create a cron entry to update the feeds. Follow the steps below to get it done. Snagged from\u00a0<a href=\"https:\/\/sysadmin-ramblings.blogspot.com\/2017\/04\/update-openvas-feeds.html\">https:\/\/sysadmin-ramblings.blogspot.com\/2017\/04\/update-openvas-feeds.html<\/a><\/p>\n<h3 class=\"post-title entry-title\">Update Openvas Feeds<\/h3>\n<p>To ensure openvas 9 is kept up to date and running the latest tests,\u00a0 you need to sync the nvt, scap and cert data.\u00a0 The best way to do this is to create a script that sync&#8217;s the necessary data.<\/p>\n<p>&nbsp;<\/p>\n<p>Create a script under \/usr\/local\/bin called update-openvas<\/p>\n<p style=\"padding-left: 30px;\"><em>vim \/usr\/local\/bin\/update-openvas<\/em><\/p>\n<p>Add the following contents to the file<\/p>\n<p style=\"padding-left: 30px;\"><em>\/usr\/sbin\/greenbone-nvt-sync<\/em><br \/>\n<em> \/usr\/sbin\/greenbone-certdata-sync<\/em><br \/>\n<em> \/usr\/sbin\/greenbone-scapdata-sync<\/em><br \/>\n<em> \/usr\/sbin\/openvasmd &#8211;update &#8211;verbose &#8211;progress<\/em><br \/>\n<em> \/etc\/init.d\/openvas-manager restart<\/em><br \/>\n<em> \/etc\/init.d\/openvas-scanner restart<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Save the file and make it executeable<\/p>\n<p style=\"padding-left: 30px;\"><em>chmod a+x \/usr\/local\/bin\/update-openvas<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Run the script to make sure it works and that there are no errors<\/p>\n<p style=\"padding-left: 30px;\"><em>\/usr\/local\/bin\/update-openvas<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Add the script to cron to run daily<\/p>\n<p style=\"padding-left: 30px;\"><em>crontab -e<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Add the following contents<\/p>\n<p style=\"padding-left: 30px;\"><em>1 1 * * * \/usr\/local\/bin\/update-openvas 1&gt;\/dev\/null 2&gt;\/dev\/null<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>The above cronjob will be run at 1 minute past 1 every day<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After getting things up and running a few weeks back, the system has sat idle waiting for me to do something with. Low and behold, the feeds were well out of date. Apparently you have to manually create a cron entry to update the feeds. Follow the steps below to get it done. Snagged from\u00a0https:\/\/sysadmin-ramblings.blogspot.com\/2017\/04\/update-openvas-feeds.html [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Automatic Greenbone\/OpenVAS Feed Updates - Emerald Design<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Automatic Greenbone\/OpenVAS Feed Updates - Emerald Design\" \/>\n<meta property=\"og:description\" content=\"After getting things up and running a few weeks back, the system has sat idle waiting for me to do something with. Low and behold, the feeds were well out of date. Apparently you have to manually create a cron entry to update the feeds. Follow the steps below to get it done. Snagged from\u00a0https:\/\/sysadmin-ramblings.blogspot.com\/2017\/04\/update-openvas-feeds.html [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/\" \/>\n<meta property=\"og:site_name\" content=\"Emerald Design\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-02T19:37:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-01-31T04:36:18+00:00\" \/>\n<meta name=\"author\" content=\"jclifton\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jclifton\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/\"},\"author\":{\"name\":\"jclifton\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\"},\"headline\":\"Automatic Greenbone\\\/OpenVAS Feed Updates\",\"datePublished\":\"2018-03-02T19:37:47+00:00\",\"dateModified\":\"2022-01-31T04:36:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/\"},\"wordCount\":228,\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/\",\"url\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/\",\"name\":\"Automatic Greenbone\\\/OpenVAS Feed Updates - Emerald Design\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#website\"},\"datePublished\":\"2018-03-02T19:37:47+00:00\",\"dateModified\":\"2022-01-31T04:36:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/index.php\\\/2018\\\/03\\\/02\\\/automatic-greenbone-openvas-feed-updates\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.emeralddesign.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Automatic Greenbone\\\/OpenVAS Feed Updates\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#website\",\"url\":\"https:\\\/\\\/www.emeralddesign.com\\\/\",\"name\":\"Emerald Design\",\"description\":\"Technology, Photography and Shower-thoughts...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.emeralddesign.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.emeralddesign.com\\\/#\\\/schema\\\/person\\\/655c6a5043811e17f2e425fdbc46040e\",\"name\":\"jclifton\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g\",\"caption\":\"jclifton\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Automatic Greenbone\/OpenVAS Feed Updates - Emerald Design","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/","og_locale":"en_US","og_type":"article","og_title":"Automatic Greenbone\/OpenVAS Feed Updates - Emerald Design","og_description":"After getting things up and running a few weeks back, the system has sat idle waiting for me to do something with. Low and behold, the feeds were well out of date. Apparently you have to manually create a cron entry to update the feeds. Follow the steps below to get it done. Snagged from\u00a0https:\/\/sysadmin-ramblings.blogspot.com\/2017\/04\/update-openvas-feeds.html [&hellip;]","og_url":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/","og_site_name":"Emerald Design","article_published_time":"2018-03-02T19:37:47+00:00","article_modified_time":"2022-01-31T04:36:18+00:00","author":"jclifton","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jclifton","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/#article","isPartOf":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/"},"author":{"name":"jclifton","@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e"},"headline":"Automatic Greenbone\/OpenVAS Feed Updates","datePublished":"2018-03-02T19:37:47+00:00","dateModified":"2022-01-31T04:36:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/"},"wordCount":228,"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/","url":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/","name":"Automatic Greenbone\/OpenVAS Feed Updates - Emerald Design","isPartOf":{"@id":"https:\/\/www.emeralddesign.com\/#website"},"datePublished":"2018-03-02T19:37:47+00:00","dateModified":"2022-01-31T04:36:18+00:00","author":{"@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e"},"breadcrumb":{"@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.emeralddesign.com\/index.php\/2018\/03\/02\/automatic-greenbone-openvas-feed-updates\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.emeralddesign.com\/"},{"@type":"ListItem","position":2,"name":"Automatic Greenbone\/OpenVAS Feed Updates"}]},{"@type":"WebSite","@id":"https:\/\/www.emeralddesign.com\/#website","url":"https:\/\/www.emeralddesign.com\/","name":"Emerald Design","description":"Technology, Photography and Shower-thoughts...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.emeralddesign.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.emeralddesign.com\/#\/schema\/person\/655c6a5043811e17f2e425fdbc46040e","name":"jclifton","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd29f26977172d5473905d5343dca4970a4984fcb64d737a31f774bbc0545209?s=96&d=mm&r=g","caption":"jclifton"}}]}},"_links":{"self":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":7,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":91,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/posts\/84\/revisions\/91"}],"wp:attachment":[{"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.emeralddesign.com\/index.php\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}