Changeset 186


Ignore:
Timestamp:
10/03/09 02:59:58 (4 years ago)
Author:
jabra
Message:

added -template so that users can modify the template location easily

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fierce2/branch/fierce

    r185 r186  
    107107                                (Single domain, Multiple domains (Comma seperated) 
    108108                                or File list(one domain per line) ) 
    109     -range                      Scan an internal IP range (must be combined with  
     109    -range [111.222.333.1-100]  Scan an internal IP range (must be combined with  
    110110                                -dnsserver).  Note, that this does not support a pattern 
    111111                                and will simply output anything it finds. 
     
    114114                                One of the following: [txt || xml || html]      
    115115    -output [output]            Output file 
     116    -template [dir]             Template Directory 
    116117 
    117118    -prefix [prefix file]       Prefix list for bruteforce attack 
     
    147148    -wide                       Scan the entire class C after finding any matching 
    148149                                hostnames in that class C.   
    149          
     150     
    150151        -debug                  Debug option  
    151152        -verbose                Verbose option  
     
    173174    \%options, 
    174175    'dns=s',   'format=s', 'no=s', 'all', 'wide', 'traverse=i',  
    175     'delay=i', 
     176    'delay=i','template=s', 
    176177    'tcptimeout=i', 'udptimeout=i', 'threads=i', 'subdomains=s', 'search=s', 
    177178    'dnsserver=s',  'ztstop',       'prefix=s',   
     
    326327} 
    327328 
     329my $include_path = "tt/$format"; 
     330my $template; 
     331if ($options{template} ) { 
     332    if ( -d $options{template} ) { 
     333        $template = $options{template}; 
     334        $include_path = "$template/$format"; 
     335    } 
     336} 
     337 
    328338# some useful options (see below for full list) 
    329339my $config = { 
    330     INCLUDE_PATH => "tt/$format",    # or list ref 
     340    INCLUDE_PATH => "$include_path",    # or list ref 
    331341    INTERPOLATE  => 1,               # expand "$var" in plain text 
    332342    POST_CHOMP   => 1,               # cleanup whitespace 
     
    399409        foreach($oct2..$oct3) { 
    400410            chomp; 
    401             print "adding $group.$_\n"; 
    402411            push(@ipranges,"$group.$_");    
    403412        } 
     
    455464        my ( $whois, $wildcard, $ext_bf, $find_nearby ); 
    456465 
    457         my ( $zt_vars, $ns_vars, $prefix_bf_vars, $subdomain_bf_vars ); 
    458         my ( $reverse_lookup_vars, $find_mx_vars, $whois_vars ); 
    459         my ( $wildcard_vars,       $ext_bf_vars,  $vhost_vars ); 
    460         my ($find_nearby_vars); 
    461  
    462         my ( %output_data, $ns_output, $vhost_output, $vhost_result ); 
    463         my ( $subdomain_bf_result,   $subdomain_bf_output ); 
    464         my ( $prefix_bf_result,      $prefix_bf_output ); 
    465         my ( $wildcard_result,       $wildcard_output ); 
    466         my ( $reverse_lookup_result, $reverse_lookup_output ); 
    467         my ( $find_mx_result,        $find_mx_output ); 
    468         my ( $whois_result,          $whois_output ); 
    469         my ( $ext_bf_result,         $ext_bf_output ); 
    470         my ( $zt_result,             $zt_output ); 
    471         my ( $find_nearby_result,    $find_nearby_output ); 
     466        my ( %output_data, $vhost_result ); 
     467        my ( $subdomain_bf_result, $prefix_bf_result);     
     468        my ( $wildcard_result, $reverse_lookup_result);  
     469        my ( $find_mx_result, $whois_result);           
     470        my ( $ext_bf_result, $zt_result);            
     471        my ( $find_nearby_result);    
    472472 
    473473        print "Nameservers for $dns\n" 
Note: See TracChangeset for help on using the changeset viewer.