[Openvas-commits] r713 - in trunk/openvas-plugins: . docs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 13 10:01:46 CET 2008


Author: jan
Date: 2008-03-13 10:01:45 +0100 (Thu, 13 Mar 2008)
New Revision: 713

Removed:
   trunk/openvas-plugins/docs/nessus-update-plugins-gpl.8
   trunk/openvas-plugins/docs/nessus-update-plugins.8
   trunk/openvas-plugins/nessus-update-plugins-gpl.in
   trunk/openvas-plugins/nessus-update-plugins.in
Modified:
   trunk/openvas-plugins/ChangeLog
Log:
* nessus-update-plugins.in, nessus-update-plugins-gpl.in,
docs/nessus-update-plugins-gpl.8, docs/nessus-update-plugins.8:
Removed obsolete scripts and corresponding documentation.



Modified: trunk/openvas-plugins/ChangeLog
===================================================================
--- trunk/openvas-plugins/ChangeLog	2008-03-12 20:16:35 UTC (rev 712)
+++ trunk/openvas-plugins/ChangeLog	2008-03-13 09:01:45 UTC (rev 713)
@@ -1,3 +1,9 @@
+2008-03-13  Jan-Oliver Wagner <jan-oliver.wagner at intevation.de>
+
+	* nessus-update-plugins.in, nessus-update-plugins-gpl.in,
+	docs/nessus-update-plugins-gpl.8, docs/nessus-update-plugins.8:
+	Removed obsolete scripts and corresponding documentation.
+
 2008-03-11  Thomas Reinke <reinke at securityspace.com>
 
 	* scripts/deb_1513_1.nasl, scripts/deb_1514_1.nasl,

Deleted: trunk/openvas-plugins/docs/nessus-update-plugins-gpl.8
===================================================================
--- trunk/openvas-plugins/docs/nessus-update-plugins-gpl.8	2008-03-12 20:16:35 UTC (rev 712)
+++ trunk/openvas-plugins/docs/nessus-update-plugins-gpl.8	2008-03-13 09:01:45 UTC (rev 713)
@@ -1,96 +0,0 @@
-.TH NESSUS-UPDATE-PLUGINS 8 "May 2000" "The Nessus Project" "User Manuals"
-.SH NAME
-nessus-update-plugins-gpl \- updates the Nessus security checks automatically
-.SH SYNOPSIS
-.B nessus-update-plugins 
-[-v] [-r <pluginname>] [-h] [-i <pluginname>]
-
-
-.SH DESCRIPTION
-
-The 
-.B Nessus Security Scanner
-performs several security checks, each of them being coded as an external plugin coded in NASL. As new security holes are published every day, new plugins appear on the Nessus web-site (www.nessus.org), and having an up-to-date nessusd server can be difficult and time consuming.
-.br
-The script 
-.B nessus-update-plugins-gpl
-will fetch all the newest GPL security checks for you, install them at the proper location, and restart nessusd(8) so that it take them into account.
-.br
-.B nessus-update-plugins
-uses lynx(1), tar(1) and gzip(1) to do its job.
-
-This script has been superceeded by the 
-.B nessus-update-plugins
-program and is only provided for those users that do not use the registered
-plugin feed. Use of the registered plugin feed, however, is encouraged.
-
-.SH OPTION
-.IP "-v"
-Will make 
-.B nessus-update-plugins-gpl
-display the name of the newly installed plugins.
-
-.IP "-r <pluginname>"
-
-Make
-.B nessus-update-plugins-gpl
-display the source code of the plugin
-.I "<pluginname>"
-
-.IP "-i <pluginname>"
-
-Only install the plugin
-.I pluginname
-
-
-.IP "-h" 
-Show the help summary
-
-.SH PROXIES
-
-If you are behind a web proxy, then read the manual page of
-.I openvas-fetch
-to configure openvas-fetch with a proper proxy support.
-
-.br
-.SH SECURITY NOTES
-
-nessus-update-plugins-gpl uses lynx(1) to retrieve the archive of the new plugins, at http://www.nessus.org/nasl/all-2.0.tar.gz. 
-.B "The scripts are not signed"
-so a cracker may poison your DNS server and force this script to retrieve
-scripts on another web server, and then force your nessusd to execute
-nasl scripts that do something else.
-Even if this can not do much harm (see the NASL reference guide
-for more information on that subject) you should be extra careful
-regarding this.
-
-So
-.B "use this script with caution"
-
-
-.SH SEE ALSO
-
-lynx(1), gzip(1), tar(1)
-.br
-nessus(1), nessusd(8), nessus-adduser(8)
-
-.SH MORE INFORMATION ABOUT THE NESSUS PROJECT
-
-The canonical places where you will find more information 
-about the Nessus project are : 
-.br
-.br
-	http://www.nessus.org (Official site)
-.br
-	http://cvs.nessus.org (Developers site)
-			
-.SH AUTHOR
-
-Renaud Deraison <deraison at cvs.nessus.org>. This script has been released
-under the GPL
-
-
-
-
-
-

Deleted: trunk/openvas-plugins/docs/nessus-update-plugins.8
===================================================================
--- trunk/openvas-plugins/docs/nessus-update-plugins.8	2008-03-12 20:16:35 UTC (rev 712)
+++ trunk/openvas-plugins/docs/nessus-update-plugins.8	2008-03-13 09:01:45 UTC (rev 713)
@@ -1,60 +0,0 @@
-.TH NESSUS-UPDATE-PLUGINS 8 "Feb 2005" "The Nessus Project" "User Manuals"
-.SH NAME
-nessus-update-plugins \- updates the Nessus security checks automatically
-.SH SYNOPSIS
-.B nessus-update-plugins 
-[-v[v]] [-h] 
-
-
-.SH DESCRIPTION
-
-The 
-.B Nessus Security Scanner
-performs several security checks, each of them being coded as an external plugin coded in NASL. As new security holes are published every day, new plugins appear on the Nessus web-site (www.nessus.org), and having an up-to-date nessusd server can be difficult and time consuming.
-.br
-The script 
-.B nessus-update-plugins
-will fetch all the newest security checks for you, install them at the proper location, and restart nessusd(8) so that it take them into account.
-.br
-.B nessus-update-plugins
-uses openvas-fetch(1) (part of openvas-server), tar(1) and gzip(1) to do its job.
-
-.SH OPTION
-.IP "-v"
-Will make 
-.B nessus-update-plugins
-display the name of the newly installed plugins.
-
-.IP "-h" 
-Show the help summary
-
-.SH PROXIES
-
-If you are behind a web proxy, then read the manual page of
-.I openvas-fetch
-to configure openvas-fetch with a proper proxy support.
-
-.br
-
-.SH SEE ALSO
-
-openvas-fetch(1), gzip(1), tar(1)
-.br
-nessus(1), nessusd(8), nessus-adduser(8)
-
-.SH MORE INFORMATION ABOUT THE NESSUS PROJECT
-
-The canonical places where you will find more information 
-about the Nessus project are : 
-.br
-.br
-	http://www.nessus.org (Official site)
-.br
-	http://cvs.nessus.org (Developers site)
-			
-.SH AUTHOR
-
-Renaud Deraison <deraison at cvs.nessus.org>. This script has been released
-under the GPL
-
-

Deleted: trunk/openvas-plugins/nessus-update-plugins-gpl.in
===================================================================
--- trunk/openvas-plugins/nessus-update-plugins-gpl.in	2008-03-12 20:16:35 UTC (rev 712)
+++ trunk/openvas-plugins/nessus-update-plugins-gpl.in	2008-03-13 09:01:45 UTC (rev 713)
@@ -1,343 +0,0 @@
-#!/bin/sh -e
-#
-# nessus-update-plugins-gpl
-#
-# This script will retrieve all the newest GPL plugins from 
-# www.openvas.org.
-#
-# 
-# Author  : Renaud Deraison <deraison at cvs.nessus.org>
-#           Tim Brown <timb at openvas.org>
-# License : GPL (but for two lines of script, does it matter ?)
-#           I think we all know the answer ;)
-# 
-#
-# usage : nessus-update-plugins-gpl [-v] [-r name] [-d dir]
-# 
-#
-# -d <dir>  : use <dir> as the plugin dir
-# -r <name> : read a plugin name
-# -v        : be verbose
-# -vv       : be more verbose (debug)
-#
-
-
-
-# Proxy users
-#
-# If you are behind a proxy, you can set this options here
-# or in ~/.nessus-update-pluginsrc
-#
-# If you edit THIS file, then the proxy (and proxy username/password)
-# will be system-wide. 
-
-proxy_user=
-proxy_passwd=
-proxy=
-location="http://www.openvas.org/nasl/all-2.0.tar.gz"
-location_md5="http://www.openvas.org/nasl/all-2.0.tar.gz.md5"
-location_sig="http://www.openvas.org/nasl/all-2.0.sig"
-
-# Examples :
-# proxy_user="renaud"
-# proxy_passwd="topsecr3t"
-# proxy="proxy.fr.nessus.org:8080"
-#
-# You can copy the lines above and put them
-# in your ~/.nessus-update-pluginsrc
-
-
-
-#
-# The command we use to retrieve the plugins
-#
-fetch_cmd="@FETCHCMD@"
-
-#
-# The arguments of this command :
-#    -source for lynx/links
-#    -q -O -  for wget
-#    -s -o - for curl
-#
-if [ "`echo $fetch_cmd | grep wget`" ]
-then
-	fetch_args="-q -O - "
-else
-	echo Looks like we couldn\'t find wget during the install
-	echo You\'ll need to tweak fetch_cmd and fetch_args in this file
-	exit 1
-fi
-
-
-
-
-#-------------- DO NOT EDIT THIS FILE BEYOND THAT POINT ---------------------#
-
-
-
-gzip=@GZIP@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-datadir=@datadir@
-sysconfdir=@sysconfdir@
-sharedstatedir=@sharedstatedir@
-localstatedir=@localstatedir@
-libdir=@libdir@
-includedir=@includedir@
-oldincludedir=@oldincludedir@
-infodir=@infodir@
-mandir=@mandir@
-
-pluginsdir="$libdir/openvas/plugins"
-
-case `id` in uid=0*) ;; *)
-    echo "only root should use nessus-update-plugins-gpl"
-        exit 1
-	esac
-	
-
-
-if [ ! -r "$sysconfdir/openvas/openvasd.conf" ]; then
-	if [ ! -e "$sysconfdir/openvas/openvasd.conf" ]; then
-	echo "$sysconfdir/openvas/openvasd.conf does not exist!"
-	echo "Do you have the openvas daemon installed?"
-	else
-	echo "I cannot read $sysconfdir/openvas/openvasd.conf."
-	echo "Are you root?"
-	fi
-	exit 1
-fi
-newdir=`awk '/plugins_folder/ {print $3}' $sysconfdir/openvas/openvasd.conf`
-test -n "$newdir" && pluginsdir="$newdir"
-
-
-
-test -z "$fetch_cmd" && {
-	echo "\$fetch_cmd not set in $0 - aborting"
-	exit 1
-	}
-
-
-fetchprogram=`echo $fetch_cmd | cut -d " " -f 1`
-if [ -n "$fetchprogram" -a ! -x "$fetchprogram" ]
-then
-  echo "The program '$fetchprogram' can not be found or executed"
-  echo "Please configure this script by changing the option"
-  echo "\$fetch_cmd or by installing $fetchprogram"
-  exit 1
-fi
-
-#
-# Read the configuration file, if any
-#
-test -f ~/.nessus-update-pluginsrc && . ~/.nessus-update-pluginsrc
-
-help_screen()
-{
- echo "nessus-update-plugins-gpl, by Renaud Deraison <deraison at cvs.nessus.org>"
- echo "updated by Tim Brown <timb at openvas.org>"
- echo
- echo
- echo "Usage : nessus-update-plugins-gpl [-v[v][-h] [-r name] [-d dir]"
- echo
- echo "-v              : be verbose"
- echo "-vv             : be more verbose (debug)"
- echo "-h              : this help screen"
- echo "-d DIR          : install plugins in DIR"
- echo "-r NAME         : read plugin named NAME"
- echo
- echo "Default action  : update the openvasd plugins"
- exit 0
-}
-
-
-
-proxyopts=""
-
-echo "$fetch_cmd" | grep "lynx" 2>&1 > /dev/null &&
-{
- test -n "$proxy" && http_proxy="http://$proxy/"
- test -n "$proxy_user" && proxyopts="-pauth=\"$proxy_user:$proxy_passwd\""
-} 
-
-echo "$fetch_cmd" | grep "wget" 2>&1 > /dev/null &&
-{
- test -n "$proxy" && http_proxy="http://$proxy/"
- test -n "$proxy_user" && proxyopts="--proxy=on --proxy-user=$proxy_user --proxy-passwd=$proxy_passwd"
-}
-
-
-export http_proxy
-
-opts=`getopt "vld:r:hi:" $*`
-
-for i in $opts
-do
- case $i in
- -h)
-   help_screen
-   ;;
-   
-  -v)
-   if [ -z "$verbose" ];
-    then
-      verbose="y"
-     else
-       set -x
-   fi
-   ;;
- 
- -r)
-   expect_r="y"
-   ;;
-
- -d)
-   expect_d="y"
-   ;;
-   
-  -i)
-   expect_i="y"
-   ;;
-    
-  *)
-   test -n "$expect_d" &&
-     {
-      pluginsdir="$i"
-      unset expect_d
-     }
-
-   test -n "$expect_r" &&
-     {
-      plug_name="$i"
-      unset expect_r
-     }
-     
-   test -n "$expect_i" &&
-     {
-      install_plug="$i"
-      unset expect_i
-     }  
-   ;;
- esac
-done   
-
-
-
-test -n "$plug_name" && view_plugin "$plug_name"
-test -n "$install_plug" && install_plugin "$install_plug"
-
-tar="-xf"	
-test -z "$verbose" || tar="-xvf"
-
-
-
-if [ ! -d $pluginsdir ] ; then
-	echo "Plugindir $pluginsdir is not a directory!"
-	exit 1
-fi
-
-
-	
-if [ -n "$fetch_cmd" -a -n "$gzip" ] ;
-then
-cwd=`pwd`
-tmpdir=$TEMPDIR
-test -z "$tmpdir" &&
-{
- tmpdir=$TMPDIR
- test -z "$tmpdir" && tmpdir=/tmp
-}
-mkdir "$tmpdir/nessus-update-plugins-$$" || {
-	echo "Could not create temporary directory ($tmpdir/nessus-update-plugins-$$)"
-	exit 1
-}
-cd "$tmpdir/nessus-update-plugins-$$"
-$fetch_cmd $fetch_args $proxyopts "$location_md5" > all-2.0.tar.gz.md5
-test -s "$pluginsdir/MD5" && {
-	if [ -x /usr/bin/diff ];
-	then 
-	 diff "$pluginsdir/MD5"  all-2.0.tar.gz.md5 > /dev/null && {
-	 cd "$cwd"
-	 rm -rf "$tmpdir/nessus-update-plugins-$$"
-	 exit 0
-	}
-	fi
-}
-	
-$fetch_cmd $fetch_args $proxyopts "$location_sig" > all-2.0.sig
-$fetch_cmd $fetch_args $proxyopts "$location" > all-2.0.tar.gz
-test -s all-2.0.tar.gz || {
-	echo "Downloading http://www.openvas.org/nasl/all-2.0.tar.gz failed"
-	cd "$cwd"
-	rm -rf "$tmpdir/nessus-update-plugins-$$"
-	exit 1
-	}
-
-# Check the archive signature
-test -x $sbindir/nessus-check-signature && {
-	$sbindir/nessus-check-signature all-2.0.tar.gz all-2.0.sig || {
-		echo "Aborting"
-		exit 1
-		}
-	}
-
-rm -f all-2.0.sig
-	
-cat all-2.0.tar.gz | $gzip -cd 2>/dev/null > all-2.0.tar
-test $? = 0 || {
- mv all-2.0.tar.gz all-2.0.tar	# Some version of lynx gunzip data on the fly
-}
-cat all-2.0.tar | tar $tar - 
-rm all-2.0.tar
-test -s nessus_detect.nasl || {
-	echo "Something went wrong when installing the plugins - uncompressing the plugins archive failed"
-	cd "$cwd"
-	rm -rf "$tmpdir/nessus-update-plugins-$$"
-	exit 1
-	}
-	
-find . -name "*.nasl" -exec cp {} "$pluginsdir/" \;
-find . -name "*.inc" -exec cp {} "$pluginsdir/" \;
-
-
-test -d "$pluginsdir/.bin" &&
-{ 
- precomp_support=y
- rm -rf "$pluginsdir/.bin"
- mkdir "$pluginsdir/.bin"
-}
-
-cp -p all-2.0.tar.gz.md5 "$pluginsdir/MD5"
-
-cd "$cwd"
-rm -rf "$tmpdir/nessus-update-plugins-$$"
-
-if [ -x /usr/bin/xargs ];
-then
- cd $pluginsdir
- ls | xargs -n 200 chown 0:0 
-else
- chown 0:0 $pluginsdir/*.nasl
- chown 0:0 $pluginsdir/*.inc
-fi
-
-# Recompile the plugins - Nessus 2.1.x and newer...
-test -n "$precomp_support" &&
-{
- $sbindir/openvasd -R
-}
-
-
-# HUP openvasd
-test -f @localstatedir@/openvas/openvasd.pid && {
-    pid=`cat @localstatedir@/openvas/openvasd.pid`
-    kill -1 $pid 2>/dev/null
-}
- exit 0
-else
- echo "Error \$fetch_cmd or \$gzip are not set - abort"
-exit 1
-fi

Deleted: trunk/openvas-plugins/nessus-update-plugins.in
===================================================================
--- trunk/openvas-plugins/nessus-update-plugins.in	2008-03-12 20:16:35 UTC (rev 712)
+++ trunk/openvas-plugins/nessus-update-plugins.in	2008-03-13 09:01:45 UTC (rev 713)
@@ -1,206 +0,0 @@
-#!/bin/sh
-#
-# nessus-update-plugins
-#
-# This script will retrieve all the newest plugins from 
-# www.nessus.org using the utility 'openvas-fetch'.
-# 
-# 
-# Author  : Renaud Deraison <deraison at cvs.nessus.org>
-# License : GPL (but for two lines of script, does it matter ?)
-# 
-#
-# usage : nessus-update-plugins [-v[v]] [-h]
-# 
-#
-# -v        : be verbose
-# -vv       : be more verbose (debug)
-#
-
-
-#
-# The command we use to retrieve the plugins
-#
-
-
-#-------------- DO NOT EDIT THIS FILE BEYOND THAT POINT ---------------------#
-
-
-
-gzip=@GZIP@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-datadir=@datadir@
-sysconfdir=@sysconfdir@
-sharedstatedir=@sharedstatedir@
-localstatedir=@localstatedir@
-libdir=@libdir@
-includedir=@includedir@
-oldincludedir=@oldincludedir@
-infodir=@infodir@
-mandir=@mandir@
-
-pluginsdir="$libdir/openvas/plugins"
-
-
-
-case `id` in uid=0*) ;; 
-   *euid=0*) ;;
-   *)
-    echo "only root should use nessus-update-plugins"
-        exit 1
-	esac
-	
-
-if [ ! -x "$bindir/openvas-fetch" ]; then
- echo "openvas-fetch(1) (part of openvas-server) is not installed on your system"
- echo "Hint (for Debian users): have you installed the openvasd package?"
- echo "Aborting"
- exit 1
-fi
-
-if [ ! -x "$gzip" ]; then
- echo "gzip is not installed on your system"
- echo "Aborting"
-fi
-
-if [ ! -r "$sysconfdir/openvas/openvasd.conf" ]; then
-	if [ ! -e "$sysconfdir/openvas/openvasd.conf" ]; then
-	echo "$sysconfdir/openvas/openvasd.conf does not exist!"
-	echo "Do you have the openvas daemon installed?"
-	else
-	echo "I cannot read $sysconfdir/openvas/openvasd.conf."
-	echo "Are you root?"
-	fi
-	exit 1
-fi
-newdir=`awk '/plugins_folder/ {print $3}' $sysconfdir/openvas/openvasd.conf`
-test -n "$newdir" && pluginsdir="$newdir"
-
-
-
-
-help_screen()
-{
- echo "nessus-update-plugins 2.0.0, by Renaud Deraison <deraison at cvs.nessus.org>"
- echo
- echo
- echo "Usage : nessus-update-plugins [-v[v] [-h]"
- echo
- echo "-v              : be verbose"
- echo "-vv             : be more verbose (debug)"
- echo "-h              : this help screen"
- echo
- echo "Default action  : update the openvasd plugins"
- exit 0
-}
-
-
-
-opts=`getopt "vh" $*`
-
-for i in $opts
-do
- case $i in
- -h)
-   help_screen
-   ;;
-   
-  -v)
-   if [ -z "$verbose" ];
-    then
-      verbose="y"
-     else
-       set -x
-   fi
-   ;;
- esac
-done
- 
-
-if [ -z "$verbose" ];
-then
- tar="-xf"	
-else
- tar="-xvf"
-fi
-
-
-
-if [ ! -d $pluginsdir ] ; then
-	echo "Plugindir $pluginsdir is not a directory!"
-	exit 1
-fi
-
-
-	
-cwd=`pwd`
-tmpdir=$TEMPDIR
-test -z "$tmpdir" &&
-{
- tmpdir=$TMPDIR
- test -z "$tmpdir" && tmpdir=/tmp
-}
-
-
-mkdir -m 0700 "$tmpdir/nessus-update-plugins-$$" || {
-	echo "Could not create temporary directory ($tmpdir/nessus-update-plugins-$$)"
-	exit 1
-}
-cd "$tmpdir/nessus-update-plugins-$$"
-$bindir/openvas-fetch --plugins-md5 || { 
-	echo "Could not retrieve the plugins MD5"
-	echo "Aborting"
-	exit 1
-	}
-
-test -s "$pluginsdir/MD5" && {
-	if [ -x /usr/bin/diff ];
-	then 
-	 diff "$pluginsdir/MD5"  all-2.0.tar.gz.md5 > /dev/null && {
-	 cd "$cwd"
-	 rm -rf "$tmpdir/nessus-update-plugins-$$"
-	 exit 0
-	}
-	fi
-}
-
-
-$bindir/openvas-fetch --plugins || {
-	echo "Could not retrieve the Nessus plugins"
-	echo "Aborting"
-	exit 1 
-	}
-	
-
-# Check the archive signature
-test -x $sbindir/nessus-check-signature && {
-	$sbindir/nessus-check-signature all-2.0.tar.gz all-2.0.sig || {
-		echo "Aborting"
-		exit 1
-		}
-	}
-
-rm -f all-2.0.sig
-	
-cd "$pluginsdir/"
-$gzip -cd "$tmpdir/nessus-update-plugins-$$/all-2.0.tar.gz" | tar $tar - 
-rm -f "$pluginsdir/MD5"
-mv "$tmpdir/nessus-update-plugins-$$/all-2.0.tar.gz.md5" "$pluginsdir/MD5"
-
-cd "$cwd"
-rm -rf "$tmpdir/nessus-update-plugins-$$"
-
-chown -R 0:0 "$pluginsdir/"
-
-
-# HUP openvasd
-test -f @localstatedir@/openvas/openvasd.pid && {
-    pid=`cat @localstatedir@/openvas/openvasd.pid`
-    kill -1 $pid 2>/dev/null
-}
-
-exit 0



More information about the Openvas-commits mailing list