Just randomly choosing a plugin to rewrite, here is what I came up with.
  Nothing here was taking from the Tenable plugin.  I left the ID blank
as I didn't know if it should be a new ID or use the Tenable
subversion_detect ID (not what I would expect).  I did some basic
testing, but please let me know if this does not work.

Thanks

--
MadHat (at) Unspecific.com
"The true man wants two things: danger and play.
  For that reason he wants woman, as the most dangerous plaything."
                           - Friedrich Nietzsche

#
# This script was written by MadHat Unspecific <[EMAIL PROTECTED]>
#
# GPL
#

if(description)
{
  script_id();
  script_version ("$Revision: 1 $");
 
  script_name(english:"Subversion detection");
 
  desc["english"] = "Subversion is running on this host.

Subversion (SVN) is an open source version control system initiated in 
2000 by CollabNet Inc. It is used to maintain current and historical 
versions of files such as source code, web pages, and documentation. 
Its goal is to be a mostly-compatible successor to the widely used 
Concurrent Versions System (CVS).

Ref: http://subversion.tigris.org/
Ref: http://en.wikipedia.org/wiki/Subversion_(software)

Risk factor : None / Low";

  script_description(english:desc["english"]);
 
  summary["english"] = "Detect Subversion server";
  script_summary(english:summary["english"]);
 
  script_category(ACT_GATHER_INFO);
 
  script_copyright(english:"This script is Copyright (C) 2008 MadHat 
Unspecific");
  family["english"] = "General";
  script_family(english:family["english"]);
  script_require_ports("Services/subversion", 3690); 
  exit(0);
}

port = get_kb_item("Services/subversion");
if (! port) port = 3690;

if(!get_port_state(port))exit(0);

sochand = open_sock_tcp(port);
if (!sochand) exit(0);

read = recv_line(socket:sochand, length:32);

if (ereg(pattern:'^\\( success \\( [0-9] [0-9] \\( ANONYMOUS \\) \\( ', 
string:read))
{
  security_note(port);
}
close(sochand);
exit(0);


_______________________________________________
Openvas-plugins mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins

Reply via email to