我试图让greenbone使用openvas,如下所示:
我似乎正确安装了openvas。这是openvas-check-setup输出:
Step 1: Checking OpenVAS Scanner ...
OK: OpenVAS Scanner is present in version 5.0.5.
OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem.
OK: redis-server is present in version v=2.8.4.
OK: scanner (kb_location setting) is configured properly using the redis-server socket: /var/run/redis/redis.sock
OK: redis-server is running and listening on socket: /var/run/redis/redis.sock.
OK: redis-server configuration is OK and redis-server is running.
OK: NVT collection in /var/lib/openvas/plugins contains 45702 NVTs.
WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.
SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html).
OK: The NVT cache in /var/cache/openvas contains 45702 files for 45702 NVTs.
Step 2: Checking OpenVAS Manager ...
OK: OpenVAS Manager is present in version 6.0.7.
OK: OpenVAS Manager client certificate is present as /var/lib/openvas/CA/clientcert.pem.
OK: OpenVAS Manager database found in /var/lib/openvas/mgr/tasks.db.
OK: Access rights for the OpenVAS Manager database are correct.
OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled.
OK: OpenVAS Manager database is at revision 146.
OK: OpenVAS Manager expects database at revision 146.
OK: Database schema is up to date.
OK: OpenVAS Manager database contains information about 45702 NVTs.
OK: At least one user exists.
OK: OpenVAS SCAP database found in /var/lib/openvas/scap-data/scap.db.
OK: OpenVAS CERT database found in /var/lib/openvas/cert-data/cert.db.
OK: xsltproc found.
Step 3: Checking user configuration ...
WARNING: Your password policy is empty.
SUGGEST: Edit the /etc/openvas/pwpolicy.conf file to set a password policy.
Step 4: Checking Greenbone Security Assistant (GSA) ...
ERROR: No Greenbone Security Assistant (gsad) found.
FIX: Please install Greenbone Security Assistant.
然后我下载了greenbone-security-assistant-6.0.9.tar.gz并按照INSTALL文件中的说明完成。 但是当我运行cmake时它返回:
cmake ..
-- Configuring greenbone-security-assistant...
-- checking for module 'libopenvas_omp>=8.0.0'
-- package 'libopenvas_omp>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
CMakeLists.txt:76 (pkg_check_modules)
-- checking for module 'libopenvas_base>=8.0.0'
-- package 'libopenvas_base>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
CMakeLists.txt:77 (pkg_check_modules)
-- checking for module 'libopenvas_misc>=8.0.0'
-- package 'libopenvas_misc>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
CMakeLists.txt:78 (pkg_check_modules)
-- Looking for libgcrypt...
-- Looking for libgcrypt... /usr/lib/i386-linux-gnu/libgcrypt.so
CMake Error at CMakeLists.txt:111 (message):
One or more required libraries was not found (see message above), please
install the missing libraries and run cmake again.
-- Configuring incomplete, errors occurred!
似乎cmake无法提交任何openvas lib。 所有的openvas库都位于默认路径中:
/usr/lib/libopenvas_base.so.8
/usr/lib/libopenvas_base.so.8.0.6
/usr/lib/libopenvas_misc.so.8
/usr/lib/libopenvas_misc.so.8.0.6
/usr/lib/libopenvas_nasl.so.8
/usr/lib/libopenvas_nasl.so.8.0.6
/usr/lib/libopenvas_omp.so.8
/usr/lib/libopenvas_omp.so.8.0.6
这在INSTALL文件中提到:
如果您已将所需的库安装到非标准位置, 记得将PKG_CONFIG_PATH环境变量设置为 配置之前pkg-config文件的位置:
$ export PKG_CONFIG_PATH=/your/location/lib/pkgconfig:$PKG_CONFIG_PATH
但openvas将其安装在默认路径中,我也尝试将环境var(PKG_CONFIG_PATH)设置为/ usr / lib /但未更改!