Ignore:
Timestamp:
07/04/09 05:02:22 (4 years ago)
Author:
jabra
Message:

use tCheckWildCard in the tBruteForceDNS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fierce2/branch/lib/Fierce/Domain/tBruteForceDNS.pm

    r120 r125  
    1212    use Thread::Queue; 
    1313    use Net::hostent; 
     14    use Fierce::Domain::tCheckWildCard; 
    1415    use Data::Validate::IP qw(is_public_ipv4 is_ipv4); 
    1516 
     
    3334    # Base Configuration infomation 
    3435    my @base : Field : Arg(base) : All(base) : Type(Base); 
     36     
     37    my @has_wildcard : Field : Arg(has_wildcard) : Get(has_wildcard); 
    3538 
    3639    ### populated parameters 
     
    6164 
    6265        my $stream = Thread::Queue->new(); 
     66         
     67        $wildcard = tCheckWildCard->new(); 
     68        $wildcard = $wildcard->execute($domain_obj); 
    6369 
     70        $self->has_wildcard($wildcard->check()); 
     71  
    6472        foreach my $prefix ( @{ $self->prefix_list } ) { 
    6573            $stream->enqueue($prefix); 
     
    113121                ); 
    114122                push( @{ $result[$$self] }, $node ); 
    115                 my $wildcard_dns = 1e11 - int( rand(1e10) ) . "." . $domain; 
    116                 my $h            = gethost("$wildcard_dns"); 
    117                 if ( !$h or $self->test_with_wildcard == 1 ) { 
     123                if ( $self->test_with_wildcard == 0 or $self->test_with_wildcard == 1 ) { 
    118124                    $prefix =~ s/01$|1$//g; 
    119125                    while ( $i <= $max ) { 
Note: See TracChangeset for help on using the changeset viewer.