Re: Guidelines for Writing Plugins?

From: Michel Arboi (mikhailat_private)
Date: Sat Aug 02 2003 - 03:01:23 PDT

  • Next message: George Theall: "imp_mime_viewer_html_xss.nasl"

    George Theall <theallat_private> writes:
    
    > Are there guidelines for writing plugins? 
    
    Not really. But you may find some usefule information in the NASL2
    reference manual.
    IIRC, the old manual gave more recipee (Renaud, did you take it off?)
    
    > o How do I pick a script ID?
    
    Get the last available number or ask Renaud.
    For your experimental plugin, it is safer to use a high number, so
    that it does not clash with newly added plugins if you run ccvs
    update.
    
    > o Do I simply post the plugin here to have it reviewed / included on
    >   nessus.org?
    
    Yes
    
    > o Any coding standards to follow? I notice others seem to keep=20
    >   comments and variable names to a minimum. Is there any particular
    >   reason for this?
    
    No. Comments are striped by the lexical analyzer.
    Short variable and functions names may speed up the lookup slightly (it
    computes hashes and then uses strcmp), but I am not sure that the
    difference can even be measured.
    
    So feel free to use long variables.
    



    This archive was generated by hypermail 2b30 : Sat Aug 02 2003 - 03:02:57 PDT