2 Star 1 Fork 0

ForJustice / openvas-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

OpenVAS image for Docker

Circle CI

A Docker container for OpenVAS 7 on the Ubuntu 14.04 phusion/baseimage. By default, the latest images includes the OpenVAS Base as well as the NVTs and Certs required to run OpenVAS. We also package a version without NVTs and Certs if you want to sync them in realtime.

Requirements

Docker Ports available: 443, 9390, 9391

Usage

There are now a number of OpenVAS 7 images you can choose from:

  • mikesplain/openvas_base => Just executables. Will download certs and NVTs at start.
  • mikesplain/openvas => Base + NVTs and Certs.

Note: This was recently changed to force base updates and improve container linking. We are now utilizing 2 docker hub repos rather than 1.

Simply run:

docker run -d -p 443:443 -p 9390:9390 -p 9391:9391 mikesplain/openvas

This will grab the container from the docker registry and start it up. Openvas startup can take some time (2-3 minutes whilte NVT's are scanned and databases rebuilt), so be patient. That being said, the web UI should be available almost immediately. Goto https://<machinename>

Username: admin
Password: openvas

To check the status of the process, run:

docker top mikesplain/openvas

In the output, look for the process scanning cert data. It contains a percentage.

To run bash inside the container run:

docker exec -it <container id> bash

Image Notes

This image was recently updated into 2 main versions. The base build sets up OpenVAS in a condensed format to make it quicker to download. It also creates necessary scripts for startup to start NVT and Cert syncing.

With that in mind, syncing of data occurs via wget, curl and rsync. In certain environments, one or many of those connections may not be possible. For these cases, we also build the "full" version of OpenVAS which includes the needed NVTs and Certs. Docker compressions of images really helps here and compresses nearly 1 GB of images into ~150 MB.

These changes allowed me to reduce the size of the image by almost 2 GB.

Out Of Date NVTs / Certs

If at any point you believe NVTs and/or Certs need to be updated, please put in a pull request with a simple change like this:

# Fork Repo and git clone

git checkout -b update_nvts_and_certs
echo `date` > build
git commit -am "Please update NVTs and Certs"
git push

# Open PR

Contributing

I'm always happy to accept pull requests or issues.

Thanks

Thanks to hackertarget for the great tutorial: http://hackertarget.com/install-openvas-7-ubuntu/

The MIT License (MIT) Copyright (c) 2015 Mike Splain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

A Docker container for Openvas 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zcodeworld/openvas-docker.git
git@gitee.com:zcodeworld/openvas-docker.git
zcodeworld
openvas-docker
openvas-docker
master

搜索帮助