Talk:OpenVAS

From ArchWiki

nmap 5.51

I noticed that openvas-check-setup complains about more recent versions of nmap - Arch uses v7 as of writing, but the script says only 5.51 is properly supported.

Unsure if this is the correct way to do it but grabbing and altering the [nmap-svn AUR]'s PKGBUILD to the following worked for me, so that it downloads the 5.51 tarball and compiles that. (Maintainer and contributor headings removed as I'm not sure if email addresses should be on the talk pages.. I'm new to commenting here. All credit to the maintainers and contributors in the above link)

pkgname="nmap"
pkgver=5.51
pkgrel=1
pkgdesc="A network exploration tool and security/port scanner"
arch=('armv6h' 'armv7h' 'i686' 'x86_64')
url="httpss://nmap.org"
license=('GPLv2' 'custom:nmap')
depends=('pcre' 'openssl' 'libpcap>=1.0.0' 'lua52' 'libnl')
makedepends=('python2' 'subversion') # python is needed for zenmap
optdepends=('pygtk: zenmap'
            'sudo: privilege escalation for zenmap'
            'xterm: privilege escalation for zenmap'
            'kdebase-runtime: privilege escalation for zenmap'
            'gksu: privilege escalation for zenmap')
options=('!makeflags')
source=("https://nmap.org/dist/nmap-5.51.tar.bz2")
provides=("nmap")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/nmap-${pkgver}"
  local ver="5.51"
  printf "%s" "${ver//[[:alpha:]]}"
}

build() {
  cd "${srcdir}/nmap-${pkgver}"

  sed -i 's# @LIBS@# @LIBS@ -lnl-3#' ncat/Makefile.in

  ./configure \
    --prefix=/usr \
    PYTHON="python2" \
    --libexecdir=/usr/lib \
    --mandir=/usr/share/man \
    --with-libpcap=included \
    --with-openssl=/usr \
    --with-liblua=included

  cd "ncat/"
  make
  cd "../"
  make
}

package() {
  cd "${srcdir}/nmap-${pkgver}"
  make DESTDIR="${pkgdir}" install
  python2 -m compileall "${pkgdir}/usr/lib/python2.7/site-packages/zenmapCore"

  # remove zenmap uninstall script
  rm "${pkgdir}/usr/bin/uninstall_zenmap"

  # install custom GPL2 license
  install -Dm644 'COPYING' "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set et sw=2 sts=2 tw=80:


Then add to /etc/pacman.conf:

IgnorePkg = nmap

Deryk (talk) 09:19, 14 January 2016 (UTC)Reply

This nmap version 5.51 is not mandatory for any of the standard scans provided by OpenVAS. Those version would be required if you want to run any of the NSE wrapper for nmap (found within the nmap_nse/ folder) Wzgp8irex (talk)

gsad Configuration

The note "Note: By default, gsad will bind to port 80. If you are already running a webserver, this will obviously cause problems. You can modify the ports and listen addresses in the file /etc/default/gsad" seems wrong.

The corresponding service file does not point to /etc/default/gsad but to /usr/etc/default/gsad. Therefore, I was not surprised when configurations I put into the former had no effect after a restart of gsad.service.

Furthermore, the default port configured in /usr/etc/default/gsad is not 80 but 9392.

I'm not sure whether I'm overlooking something though. Otherwise I'd change it right away.

—This unsigned comment is by Fortw (talk) 16:38, 23 April 2021‎ (UTC). Please sign your posts with ~~~~!Reply

Most of the packages in the article are completely broken

As it said on the tile, the aur packages have a multitude of problems (refer to https://bbs.archlinux.org/viewtopic.php?id=283507). In an effort to address this issue, I've been trying to contact the maintainer of the broken packages to see if they can fix the issue. However, I have not yet received a response. Also this documentation may need to be review because is possibly severely out of date.

—This unsigned comment is by Hubbleexplorer (talk) 15:48, 16 February 2023. Please sign your posts with ~~~~!

By the looks of the AUR packages, it seems to be bad dependency management within the PKGBUILD.
The maintainer is yet to update the package, if I get some time I will attempt to contact them and ask if they would like help or plan to maintain the package anymore, if I do not get a response I will submit a orphan request.
PolarianDev (talk) 11:04, 10 March 2023 (UTC)Reply
https://aur.archlinux.org/packages/openvas-scanner#comment-978638 the AUR maintainer of openvas-scanner says he can build it. If we can reproduce his results, maybe we can remove the warning. Lmat (talk) 15:19, 16 July 2024 (UTC)Reply

Complete rewrite

Hello,

This page needs a complete rewrite to comply with the ArchWiki guidelines, there is so many exotic sections here, which completely diverge from the conventional categories which are meant be used.

Anyone willing to do this?

PolarianDev (talk) 11:11, 10 March 2023 (UTC)Reply

response to Complete rewrite:

- Hi, I may be able to help with this, I am going to reinstall it first on my system.

--Rek2 (talk) 13:42, 14 June 2023 (UTC)Reply

Please read Help:Discussion, and remember to indent your responses so talk pages are easier to follow.
Also ensure you stick to the common style, that being the introduction then "Installation" section, then "Configuration" (if required, examples?) then "Usage" (mainly for command line tools) etc, this is all covered in Help:Style I believe.
After reviewing the flag, it was a little petty, but if you are willing to improve the page go ahead.
Good luck, PolarianDev (talk) 13:52, 14 June 2023 (UTC)Reply