{"id":10317,"date":"2017-07-26T16:36:53","date_gmt":"2017-07-26T15:36:53","guid":{"rendered":"https:\/\/myworldofit.net\/?p=10317"},"modified":"2020-04-25T15:37:58","modified_gmt":"2020-04-25T14:37:58","slug":"a-windows-sysadmin-installs-and-uses-openvas-end-to-end-guide-simple-beginnings","status":"publish","type":"post","link":"https:\/\/myworldofit.net\/?p=10317","title":{"rendered":"A Windows SysAdmin installs and uses OpenVAS &#8211; End to end guide &#8211; Simple Beginnings"},"content":{"rendered":"<div class=\"pps-series-post-details pps-series-post-details-variant-classic pps-series-post-details-11445\" data-series-id=\"412\"><div class=\"pps-series-meta-content\"><div class=\"pps-series-meta-text\">This entry is part 2 of 4 in the series <a href=\"https:\/\/myworldofit.net\/?series=a-windows-sysadmin-installs-and-uses-openvas\">A Windows SysAdmin installs and uses OpenVAS<\/a><\/div><\/div><\/div><p><a href=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-10319\" src=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan-1024x262.png\" alt=\"\" width=\"600\" height=\"153\" srcset=\"https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan-1024x262.png 1024w, https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan-300x77.png 300w, https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan-768x196.png 768w, https:\/\/myworldofit.net\/wp-content\/uploads\/2017\/07\/FirstScan.png 1271w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a>Following on from the previous post (<a href=\"https:\/\/myworldofit.net\/?p=10304\">A Windows SysAdmin installs and uses OpenVAS \u2013 End to end guide \u2013 Simple Beginnings<\/a>) in this post we&#8217;ll be using <a href=\"https:\/\/msdn.microsoft.com\/en-us\/powershell\/scripting\/powershell-scripting\">PowerShell<\/a>, <a href=\"http:\/\/www.openvas.org\/\">OpenVAS<\/a> and the <a href=\"http:\/\/docs.greenbone.net\/GSM-Manual\/gos-4\/en\/tools.html#omp\">OMP<\/a> (Open Management Protocol from Greenbone) to create a Target (a machine\/device) to conduct some Pen Testing against, create a Task to scan the target and then generate a report.<\/p>\n<p>The final step is quite possibly the most important though; it&#8217;s worth pointing out (hopefully the obvious) that you could have the most amazing Pen Testing software package on the planet but unless you then absorb the reports and take action to Mitigate\/Resolve\/Eliminate the risks identified it&#8217;s all just a horrible waste of CPU cycles.<\/p>\n<p>A quick note &#8211; this guide is shown as only a small example of how you can get started with OpenVAS, stay tuned for more in depth guides!<\/p>\n<h2>Getting Ready<\/h2>\n<p>In this first stage we will download the OMP client for Windows (from&nbsp;<a href=\"http:\/\/docs.greenbone.net\/GSM-Manual\/gos-4\/en\/tools.html#omp\">http:\/\/docs.greenbone.net\/GSM-Manual\/gos-4\/en\/tools.html#omp<\/a>), get it into the right place on our computer as well as create a omp.config file (you can download an example from below) which will provide settings and credentials to the OMP client.<\/p>\n<p><a href=\"https:\/\/gist.githubusercontent.com\/jamesfed\/4ed9be7de2adb83d1d442cc06ea1dbeb\/raw\/d6eca309f5a5c188ee89dc861811b610f70beb35\/omp.config\" download=\"\">Example OMP File<\/a> (hosted on GitHub &#8211;&nbsp;<a href=\"https:\/\/gist.github.com\/jamesfed\/4ed9be7de2adb83d1d442cc06ea1dbeb\">https:\/\/gist.github.com\/jamesfed\/4ed9be7de2adb83d1d442cc06ea1dbeb<\/a>).<\/p>\n<p>In addition to follow through with this guide you should download the .ps1 file below which contains the PowerShell code for the steps shown in the screenshots.<\/p>\n<p><a href=\"https:\/\/gist.githubusercontent.com\/jamesfed\/6a5c6634abc12c180f125e25c2764d1f\/raw\/216bffbcd8b33a247d6f40781903cd7b2448f673\/OpenVAS-Simple-Example.ps1\" download=\"\">OpenVAS-Simple-Example.ps1<\/a> (hosted on GitHub &#8211;&nbsp;<a href=\"https:\/\/gist.github.com\/jamesfed\/6a5c6634abc12c180f125e25c2764d1f\">https:\/\/gist.github.com\/jamesfed\/6a5c6634abc12c180f125e25c2764d1f<\/a>).<\/p>\nngg_shortcode_0_placeholder\n<h2>Creating a Target<\/h2>\nngg_shortcode_1_placeholder\n<h2>Creating and kicking off a Task<\/h2>\nngg_shortcode_2_placeholder\n<h2>Exporting the Report<\/h2>\nngg_shortcode_3_placeholder\n<h2>Reading the Report<\/h2>\nngg_shortcode_4_placeholder\n<h2>There&#8217;s more!<\/h2>\n<p>To discover more about the omp.exe tool take a look here &#8211;&nbsp;<a href=\"http:\/\/docs.greenbone.net\/GSM-Manual\/gos-4\/en\/omp.html#access-with-omp\">http:\/\/docs.greenbone.net\/GSM-Manual\/gos-4\/en\/omp.html#access-with-omp<\/a>.<\/p>\n<p>In the next post of this series I&#8217;ll be covering how we can take these simple beginnings and start to build something more in depth through OMP and PowerShell.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pps-series-post-details pps-series-post-details-variant-classic pps-series-post-details-11445 pps-series-meta-excerpt\" data-series-id=\"412\"><div class=\"pps-series-meta-content\"><div class=\"pps-series-meta-text\">This entry is part 2 of 4 in the series <a href=\"https:\/\/myworldofit.net\/?series=a-windows-sysadmin-installs-and-uses-openvas\">A Windows SysAdmin installs and uses OpenVAS<\/a><\/div><\/div><\/div><p>Following on from the previous post (A Windows SysAdmin installs and uses OpenVAS \u2013 End to end guide \u2013 Simple Beginnings) in this post we&#8217;ll be using PowerShell, OpenVAS and the OMP (Open Management Protocol from Greenbone) to create a Target (a machine\/device) to conduct some Pen Testing against, create a Task to scan the target and then generate a&#8230; <a class=\"read-more\" href=\"https:\/\/myworldofit.net\/?p=10317\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[20],"tags":[413,410,411,248],"series":[412],"class_list":["post-10317","post","type-post","status-publish","format-standard","hentry","category-software","tag-cli","tag-openvas","tag-pen-testing","tag-powershell","series-a-windows-sysadmin-installs-and-uses-openvas"],"_links":{"self":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10317"}],"version-history":[{"count":13,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10317\/revisions"}],"predecessor-version":[{"id":11029,"href":"https:\/\/myworldofit.net\/index.php?rest_route=\/wp\/v2\/posts\/10317\/revisions\/11029"}],"wp:attachment":[{"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10317"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/myworldofit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=10317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}