Changeset 78


Ignore:
Timestamp:
09/20/2008 04:31:59 PM (5 years ago)
Author:
deity
Message:

Fix for ticket #59

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/CHANGES.txt

    r76 r78  
    112008-09-20 plugins/nikto_core.plugin plugins/nikto_cgi.plugin nikto.pl 
     2           plugins/nikto_reports.plugin templates/xml_host_head.tmpl 
     3           docs/nikto.dtd 
    24        - Fixes to ensure nikto produces less perl warnings 
     5        - Fix for ticket #59: add vhost to xml output 
    362008-09-16 plugins/nikto_core.plugin plugins/nikto_httpoptions.plugin 
    47        - Fix for ticket #37 
  • trunk/docs/nikto.dtd

    r26 r78  
    1717<!ATTLIST scandetails itemstested CDATA #REQUIRED> 
    1818<!ATTLIST scandetails itemsfound CDATA #REQUIRED> 
     19<!ATTLIST scandetails hostheader CDATA> 
    1920 
    2021<!ELEMENT item (description,uri?,namelink?,iplink?)> 
  • trunk/plugins/nikto_reports.plugin

    r73 r78  
    117117    $variables{"#TEMPL_END"}                = $TARGETS{$CURRENT_HOST_ID}{ports}{$CURRENT_PORT}{stop_time_disp}; 
    118118    $variables{"#TEMPL_HOSTNAME"}           = simple_enc($TARGETS{$CURRENT_HOST_ID}{hostname}); 
     119    $variables{"#TEMPL_HOST_HEADER"}        = $TARGETS{$CURRENT_HOST_ID}{hostname}; 
     120    if (defined $TARGETS{$CURRENT_HOST_ID}{vhost}) 
     121    { 
     122       $variables{"#TEMPL_HOST_HEADER"}     = $TARGETS{$CURRENT_HOST_ID}{vhost}; 
     123    } 
    119124    $variables{"#TEMPL_IP"}                 = simple_enc($TARGETS{$CURRENT_HOST_ID}{ip}); 
    120125    $variables{"#TEMPL_ITEMS_TESTED"}       = $TARGETS{$CURRENT_HOST_ID}{total_checks}; 
  • trunk/templates/xml_host_head.tmpl

    r26 r78  
    1 <scandetails targetip="#TEMPL_IP" targethostname="#TEMPL_HOSTNAME" targetport="#TEMPL_PORT" targetbanner="#TEMPL_BANNER" starttime="#TEMPL_START" endtime="#TEMPL_END" elasped="#TEMPL_ELAPSED" sitename="#TEMPL_LINK_NAME" siteip="#TEMPL_LINK_IP" itemstested="#TEMPL_ITEMS_TESTED" itemsfound="#TEMPL_ITEMS_FOUND"> 
     1<scandetails targetip="#TEMPL_IP" targethostname="#TEMPL_HOSTNAME" targetport="#TEMPL_PORT" targetbanner="#TEMPL_BANNER" starttime="#TEMPL_START" endtime="#TEMPL_END" elasped="#TEMPL_ELAPSED" sitename="#TEMPL_LINK_NAME" siteip="#TEMPL_LINK_IP" itemstested="#TEMPL_ITEMS_TESTED" itemsfound="#TEMPL_ITEMS_FOUND" hostheader="#TMPL_HOST_HEADER"> 
Note: See TracChangeset for help on using the changeset viewer.