{"id":2273,"date":"2017-06-07T22:08:41","date_gmt":"2017-06-08T01:08:41","guid":{"rendered":"http:\/\/eriberto.pro.br\/blog\/?p=2273"},"modified":"2017-06-20T10:34:21","modified_gmt":"2017-06-20T13:34:21","slug":"openvas-9-from-kali-linux-2017-1-to-debian-9","status":"publish","type":"post","link":"https:\/\/eriberto.pro.br\/blog\/2017\/06\/07\/openvas-9-from-kali-linux-2017-1-to-debian-9\/","title":{"rendered":"OpenVAS 9 from Kali Linux 2017.1 to Debian 9"},"content":{"rendered":"<h2>The OpenVAS<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2285\" src=\"https:\/\/eriberto.pro.br\/blog\/wp-content\/uploads\/2017\/06\/openvas.png\" alt=\"\" width=\"239\" height=\"50\" \/>OpenVAS is a framework of several services and tools offering a comprehensive and powerful <img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2286 alignright\" src=\"https:\/\/eriberto.pro.br\/blog\/wp-content\/uploads\/2017\/06\/greenbone-1.png\" alt=\"\" width=\"80\" height=\"80\" \/>vulnerability scanning and vulnerability management solution. The framework is part of Greenbone Networks&#8217; commercial vulnerability management solution from which developments are contributed to the Open Source community since 2009.<\/p>\n<p>OpenVAS is composed of some elements, as OpenVAS-Cli, Greenbone Security Assistant, OpenVAS Scanner and OpenVAS Manager.<\/p>\n<p>The official OpenVAS homepage is <a href=\"http:\/\/www.openvas.org\" data-cke-saved-href=\"http:\/\/www.openvas.org\">http:\/\/www.openvas.org<\/a>.<\/p>\n<h2>From Kali Linux 2017.1 to Debian 9<\/h2>\n<p>Ok, this is a temporary solution. Now (June 2017), Debian 9 wasn&#8217;t released yet and OpenVAS 9 is not available in Debian in good conditions (it is in Experimental but a bit problematic). I think that we will have OpenVAS in <a href=\"https:\/\/backports.debian.org\/\">backports<\/a> soon.<\/p>\n<p>The OpenVAS 9 from Kali is working perfect for Debian 9. So, to take advantage of this, adopt the following procedures:<\/p>\n<p style=\"padding-left: 30px;\">1. Add a line to end of <em>\/etc\/apt\/sources.list<\/em> file:<\/p>\n<pre style=\"padding-left: 30px;\">deb http:\/\/http.kali.org\/kali kali-rolling main<\/pre>\n<p style=\"padding-left: 30px;\">2. Run:<\/p>\n<pre style=\"padding-left: 30px;\"># apt-get update\r\n# apt-get install -t kali-rolling openvas<\/pre>\n<p style=\"padding-left: 30px;\">(if you want to simulate before install, add a -s option before -t)<\/p>\n<p style=\"padding-left: 30px;\">3. Rermove or comment the previous line added to <em>\/etc\/apt\/sources.list<\/em> file to avoid future problems in your Debian.<\/p>\n<p style=\"padding-left: 30px;\">4. Run the following command to configure the OpenVAS and to download the initial database:<\/p>\n<pre style=\"padding-left: 30px;\"># openvas-setup<\/pre>\n<p style=\"padding-left: 30px;\">This step may take some time. Note that the initial password for user admin will be created and shown.<\/p>\n<p style=\"padding-left: 30px;\">5. Finally, open a web browser and access the address https:\/\/127.0.0.1:9392 (use https!!!). Alternatively, you can call http:\/\/127.0.0.1 to be automagically redirected to\u00a0https:\/\/127.0.0.1:9392.<\/p>\n<p style=\"padding-left: 30px;\">The default user is admin and the password was shown in the last step. You will can change this password inside OpenVAS (menu Administration &gt; Users &gt; Edit User, which is an blue icon).<\/p>\n<p style=\"padding-left: 30px;\">If your password was lost, you will be able to create a new administrative user via shell command. See the section &#8220;Some tips&#8221; below.<\/p>\n<p style=\"padding-left: 30px;\">6. To see the packages installed from Kali Linux, use the command:<\/p>\n<pre style=\"padding-left: 30px;\">$ dpkg -l | grep kali<\/pre>\n<h2>Some tips<\/h2>\n<p>To create a new administrative user called test:<\/p>\n<pre style=\"padding-left: 30px;\"># openvasmd --create-user test --role Admin<\/pre>\n<p>To update the database (NVTs):<\/p>\n<pre style=\"padding-left: 30px;\"># openvasmd --update\r\n# openvasmd --rebuild\r\n# service openvas-scanner restart<\/pre>\n<p>To solve the message &#8220;Login failed. Waiting for OMP service to become available&#8221;:<\/p>\n<pre style=\"padding-left: 30px;\"># openvas-start<\/pre>\n<p>To make OpenVAS listen all network interfaces, allowing one to call the service in a remote web browser (http:\/\/remote-server, port 80 only), edit the\u00a0\/lib\/systemd\/system\/greenbone-security-assistant.service and change:<\/p>\n<pre style=\"padding-left: 30px;\">ExecStart=\/usr\/sbin\/gsad --foreground --listen=127.0.0.1 --port=9392 --mlisten=127.0.0.1 --mport=9390<\/pre>\n<p style=\"padding-left: 30px;\">to<\/p>\n<pre style=\"padding-left: 30px;\">ExecStart=\/usr\/sbin\/gsad --foreground --listen=0.0.0.0 --port=9392 --mlisten=127.0.0.1 --mport=9390<\/pre>\n<p>After the change, reload the configuration and restart the service:<\/p>\n<pre style=\"padding-left: 30px;\"># systemctl daemon-reload\r\n# systemctl restart greenbone-security-assistant<\/pre>\n<h2>Quick start for beginners<\/h2>\n<p>If OpenVAS isn&#8217;t familiar for you, I have a suggestion for a quick test. Firstly, download Ubuntu Server 8.04 from <a href=\"http:\/\/old-releases.ubuntu.com\/releases\/8.04.0\/\">this page<\/a> and install it inside a virtual machine, selecting all services as LAMP, SSH etc. I used the i386 version and VirtualBox. After this, use OpenVAS to scan the Ubuntu (menu Scans &gt; Tasks &gt; a pink icon with a magic wand in the upper left corner). After the scan, click over the blue bar where we will can see the word &#8220;Done&#8221;.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The OpenVAS OpenVAS is a framework of several services and tools offering a comprehensive and powerful vulnerability scanning and vulnerability management solution. The framework is part of Greenbone Networks&#8217; commercial vulnerability management solution from which developments are contributed to the Open Source community since 2009. OpenVAS is composed of some elements, as OpenVAS-Cli, Greenbone Security&hellip;&nbsp;<a href=\"https:\/\/eriberto.pro.br\/blog\/2017\/06\/07\/openvas-9-from-kali-linux-2017-1-to-debian-9\/\" rel=\"bookmark\">Continue a ler &raquo;<span class=\"screen-reader-text\">OpenVAS 9 from Kali Linux 2017.1 to Debian 9<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[16,24,5,1],"tags":[624,61,611,625,656,654,653,655,667,622,424,623,652],"class_list":["post-2273","post","type-post","status-publish","format-standard","hentry","category-debian","category-internet","category-seguranca","category-uncategorized","tag-debian","tag-hacker","tag-hardening","tag-internet","tag-nessus","tag-network","tag-openvas","tag-pentest","tag-planet-en","tag-rede","tag-security","tag-seguranca","tag-stretch"],"_links":{"self":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/comments?post=2273"}],"version-history":[{"count":13,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2273\/revisions"}],"predecessor-version":[{"id":2289,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2273\/revisions\/2289"}],"wp:attachment":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/media?parent=2273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/categories?post=2273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/tags?post=2273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}