[New plugin] pop3pw_banner.nasl

From: Vincent Renardias (vincentat_private)
Date: Tue Mar 18 2003 - 07:32:06 PST

  • Next message: Michel Arboi: "smtpscan"

    Similar to previous script: displays the pop3pw banner based on my
    lastest patch to find_service.c
    
    -- 
    Vincent Renardias <vincentat_private>
    
    
    #
    # This script was written by Vincent Renardias <vincentat_private>
    #
    # License : GPLv2
    #
    
    if(description)
    {
     script_id(FIXME);
     script_version ("$Revision$");
     
     name["english"] = "pop3pw Banner";
     script_name(english:name["english"]);
     
     desc["english"] = "
    Displays the pop3pw service banner.
    
    Risk factor: None";
    
     script_description(english:desc["english"]);
     
     summary["english"] = "displays the pop3pw banner";
     script_summary(english:summary["english"]);
     script_category(ACT_GATHER_INFO);
     
     
     script_copyright(english:"This script is Copyright (C) 2003 StrongHoldNet",
     		  francais:"Ce script est Copyright (C) 2003 StrongHoldNet");
     
     family["english"] = "General";
     script_family(english:family["english"]); 
     script_dependencie("find_service.nes");
    		       		     
     script_require_ports("Services/pop3pw", 106);
     exit(0);
    }
    
    include("misc_func.inc");
    
    port = get_kb_item("Services/pop3pw");
    if(!port) port = 106;
    banner = get_kb_item(string("pop3pw/banner/", port));
    
    if(banner)
    {
     if(!known_service(port) && !ereg(pattern:"^200", string:banner)) exit(0);
     report = string("The remote pop3pw server banner is :\n",banner,
     "\nVersions and types should be omitted where possible.\nChange the pop3pw banner to something generic.");
     security_note(port:port, data:report);
    }
    



    This archive was generated by hypermail 2b30 : Tue Mar 18 2003 - 07:32:26 PST