Changeset 6088

Show
Ignore:
Timestamp:
01/07/09 17:57:28 (6 months ago)
Author:
cg
Message:

add scanner functionality to oracle_version.rb and removed some comments from options.rb

Location:
framework3/trunk/modules/auxiliary/scanner
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • framework3/trunk/modules/auxiliary/scanner/http/options.rb

    r5987 r6088  
    2323                        'Version'     => '$Revision: $', 
    2424                        'Description' => 'Display available HTTP options for each system', 
    25                         'Author'      => 'CG |at| carnal0wnage |dot| com', 
     25                        'Author'       => ['CG'], 
    2626                        'License'     => MSF_LICENSE 
    2727                ) 
     
    2929        end 
    3030 
    31         # Fingerprint a single host 
    3231        def run_host(ip) 
    3332 
     
    4948                                                wmap_target_ssl 
    5049                                ) 
    51                                 #not sure about this one, can you add columns in the db on the fly? 
     50                                 
    5251                                wmap_report(rep_id,'WEB_SERVER','OPTIONS',"#{res.headers['Allow']}",nil) 
    5352                        else 
  • framework3/trunk/modules/auxiliary/scanner/oracle/oracle_version.rb

    r6087 r6088  
    1111 
    1212        include Msf::Exploit::Remote::TNS 
     13        include Msf::Auxiliary::Scanner 
    1314 
    1415        def initialize(info = {}) 
     
    1617                        'Name'           => 'Oracle Version Enumeration.', 
    1718                        'Description'    => %q{ 
    18                                 This module simply queries the TNS listner for the Oracle build.. 
     19                                This module simply queries the TNS listner for the Oracle build. 
    1920                        }, 
    20                         'Author'         => [ 'CG'], 
     21                        'Author'         => ['CG'], 
    2122                        'License'        => MSF_LICENSE, 
    2223                        'Version'        => '$Revision$', 
     
    3031        end 
    3132 
    32         def run 
     33def run_host(ip) 
    3334 
    3435                connect_data = "(CONNECT_DATA=(COMMAND=VERSION))" 
     
    5051 
    5152                if ( data and data =~ /\\*.TNSLSNR for (.*)/ ) 
    52                         return print_status("Host #{rhost} is running: " + $1) 
     53                        return print_status("Host #{ip} is running: " + $1) 
    5354                else 
    54                         return print_error("Unable to determine version info for #{rhost}...") 
     55                        return print_error("Unable to determine version info for #{ip}...") 
    5556 
    5657                disconnect 
    57  
     58                 
    5859                end 
    5960        end