我试图让 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 / 但没有更改!
您可以尝试使用另一个来源(如 kali)重新安装 gvm,然后重新设置。我已经成功地通过这种方式处理了这个问题。
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(10条)