Re: [Plugins-writers] Identification of the ManHunt service

From: Renaud Deraison (deraison@private)
Date: Sun Jan 09 2005 - 03:14:50 PST


On Sat, Jan 08, 2005 at 02:36:48PM -0800, Adam Baldwin wrote:
> I have figured out how to identify the ManHunt / Symantec Network
> Security service. As the management port for this product is
> configurable during setup it would have to be added to the
> find_service.c code.

You probably want to edit find_service2.nasl which is more flexible than
find_service.c.

> I figured somebody out there woudl be better suited to add it than I.
> I have been looking and thought that I could just add on to the
> massive if, else statement. Since there are 7 bytes that need
> validation I thought I could just chain them in the if as in
> 
> if(buffer[0] == 0x00 && buffer[1] == 0x01...etc
> 
> but when I put in more than 4 &&'s I get a compilation error that states..
> "comparison is always false due to limited range of data type"

That's probably because buffer[] is declared of type 'char' while you're
comparing it against values greater than 127. You probably want to
redeclare it as an unsigned char instead.



				-- Renaud
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Sun Jan 09 2005 - 03:16:35 PST