[11853] 2017-10-03_如何在32位系统中使用ROP+Return-to-dl来绕过ASLR+DEP

文档创建者:s7ckTeam
浏览次数:4
最后更新:2025-01-18
2017-10-03_如何在32位系统中使用ROP+Return-to-dl来绕过ASLR+DEP 3 2 使 R O P + R e t u r n - t o - d l A S L R + D E P p w d m e   F r e e B u f   2 0 1 7 - 1 0 - 0 3 l i b c 使 使 E n v i r o n m e n t V u l n e r a b l e   c o d e : 使 使 r e t u r n - t o - p l t c a l l   w r i t e @ p l t : r e t u r n - t o - p l t + R O P A S L R   +   D E P R e t u r n - t o - d l - r e s o l v e d l - r e s o l v e A S L R D E P R O P A S L R r e t u r n - t o - p l t w r i t e @ p l t
: : p l t o b j d u m p   - d   - j . p l t   b o f
: R e l o c a t i o n   d i r e c t l y : w r i t e @ p l t R O P w r i t e @ p l t r e l o c _ o f f s e t 0 x 8 0 4 8 3 0 0
: : M a k e   f a k e   E l f 3 2 _ R e l   s t r u c t u r e : : : : w r i t e @ p l t r e l o c _ o f f s e t 0 x 1 8 E l f 3 2 _ R e l r e l o c _ o f f s e t b a s e _ s t a g e + 2 8 r e l o c _ o f f s e t   =   ( b a s e _ s t a g e + 2 8 )   -   a d d r _ r e l p l t w r i t e
: M a k e   f a k e   E l f 3 2 _ S y m   s t r u c t u r e : : : w r i t e E l f 3 2 _ R e l r _ i n f o   > >   8 E l f 3 2 _ S y m w r i t e r _ i n f o   > >   8   =   4 S Y M T A B [ 4 ] 0 x 8 0 4 8 1 c c   +   6 4 b a s e _ s t a g e   +   3 6
: 使 : : M a k e   f a k e   s t r i n g   t a b l e : : : E l f 3 2 _ R e l r _ i n f o b a s e _ s t a g e   +   3 6 p a d d i n g 0 x 1 0 p a d d i n g p a d d i n g E l f 3 2 _ S y m S T R T A B s t _ n a m e E l f 3 2 _ S y m
G e t   s h e l l : w r i t e x 0 0 s y s t e m x 0 0
:   R O P   s t a g e r   +   R e t u r n - t o - d l - r e s o l v e A S L R + D E P * p w d m e   F r e e B u f . C O M s y s t e m
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则