2 # Filename: grml-nessus
3 # Purpose: prepare nessus for use on grml system
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2.
7 ################################################################################
9 PATH=${PATH:-'/bin/:/sbin/:/usr/local/bin:/usr/bin:/usr/sbin'}
12 [ "`id -u`" != "0" ] && exec sudo "$0" "$@"
13 . /etc/grml/lsb-functions
16 dialog --stdout --title "$PN" --msgbox "Welcome to $PN!
18 This script will prepare your grml system
19 for use with nessus[d].
21 Report bugs, send wishes and feedback to the grml team:
22 http://www.grml.org/ - contact (at) grml.org
26 dialog --stdout --title "$PN" --yesno "Run nessus-adduser for adding user?" 0 0
30 einfo "Adding user for nessusd."
31 nessus-adduser ; eend $?
34 ewarn "Cancel pressed."
42 dialog --stdout --title "$PN" --yesno "Run nessus-mkcert?" 0 0
46 einfo "Running nessus-mkcert."
47 nessus-mkcert ; eend $?
52 dialog --stdout --title "$PN" --yesno "Start nessus daemon now?" 0 0
56 einfo "Starting nessus daemon. This might take some time [for initializing plugins]."
57 if [ -r /etc/nessus/nessus-services ] ; then
58 [ -L /var/lib/nessus/nessus-services ] || ln -s /etc/nessus/nessus-services /var/lib/nessus/nessus-services
60 [ -d /var/lib/nessus/nessus-services ] || mkdir /var/lib/nessus/nessus-services
65 ewarn "Cancel pressed."
73 dialog --stdout --title "$PN" --msgbox "Thanks for using $PN!
75 For more information on nessus take a look at the manpage
76 (man 1 nessus) and the nessus webpage at www.nessus.org
78 #######################################################
80 Report bugs, send wishes and feedback to the grml team:
81 http://www.grml.org/ - contact (at) grml.org
86 dialog --stdout --title "$PN" --yesno "Run nessus client (requires X window system) now?" 0 0
94 ewarn "Cancel pressed."
101 ## END OF FILE #################################################################