Blech...me and my typos.  The file IS committed.

Please check find_service2.nasl, which already
does what you are proposing.

Thomas

Thomas Reinke wrote:
> Couple notes,
> 
> If you do make a script that checks for a new type of service,
> the script itself should make a call to register_service,
> 
> e.g. register_service(port:port, proto:"subversion");
> 
> In this case, there seems to be some GPLed missing scripts
> that already do what you've done.  Specifically,
> find_service2.nasl was definitely in the GPL feed, was
> labelled as GPL post feed changes by Tenable, and afaict
> should be in OpenVAS.
> 
> Anyone know why this plugin wasn't committed?
> 
> Thomas
> 
> MadHat Unspecific wrote:
>> 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
>>
>>
>> ------------------------------------------------------------------------
>>
>> #
>> # 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
> 
> _______________________________________________
> Openvas-plugins mailing list
> [email protected]
> http://lists.wald.intevation.org/mailman/listinfo/openvas-plugins
> 

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

Reply via email to