Changeset 5540

Show
Ignore:
Timestamp:
06/25/08 18:04:19 (3 months ago)
Author:
hdm
Message:

Updated to not log DNS queries by default

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/auxiliary/server/fakedns.rb

    r5482 r5540  
    6060 
    6161                @port = datastore['SRVPORT'].to_i 
     62 
     63 
     64                # LOG REQUESTS? 
     65                @log_requests = false 
     66                 
    6267 
    6368        # MacOS X workaround 
     
    153158                        print_status("DNS #{addr[3]}:#{addr[1]} XID #{request.id} (#{lst.join(", ")})") 
    154159                         
    155                         report_note( 
    156                                 :host => addr[3], 
    157                                 :type => "dns_lookup", 
    158                                 :data => "#{addr[3]}:#{addr[1]} XID #{request.id} (#{lst.join(", ")})" 
    159                         ) if lst.length > 0 
     160                        if(@log_requests) 
     161                                report_note( 
     162                                        :host => addr[3], 
     163                                        :type => "dns_lookup", 
     164                                        :data => "#{addr[3]}:#{addr[1]} XID #{request.id} (#{lst.join(", ")})" 
     165                                ) if lst.length > 0 
     166                        end 
    160167                         
    161168            @sock.send(request.encode(), 0, addr[3], addr[1])