[19158] 2017-11-21_围观C语言吧主如何调戏勒索软件大黑客(续)

文档创建者:s7ckTeam
浏览次数:5
最后更新:2025-01-18
2017-11-21_围观C语言吧主如何调戏勒索软件大黑客(续) C   i   2 0 1 7 - 1 1 - 2 1 C   C   , X i a o b a , ,
, , , X i a o b a , , , , P l a y   A g a i n , M , , s t e a m O n e K e y   C r a c k e r   I T X i a o B a
使 o l l y d b u g
使 E x e I n f o s E x e I n f o s e c t i o n s
S e c t i o n   N a m e X i a o B a 1 0 0 使 S e c t i o n   N a m e 8 B 5 4 2 4 0 4 8 B 4 C 2 4 0 8 8 5 D 2 7 5 0 D

便 r e t 2

S E   V M P 使 S D K x i a o b a . e x e w a n n a d i e . e x e # i n c l u d e < W i n d o w s . h > # i n c l u d e < t l h e l p 3 2 . h > # i n c l u d e < i o s t r e a m > # i n c l u d e < f s t r e a m > # i n c l u d e < s t d i o . h > # d e f i n e E X E J _ E X E N A M E   " W a n n a D i e . e x e " s t a t i c   u n s i g n e d c h a r   c o n s t b i n [ ] = { 0 x 8 3 , 0 x f 8 , 0 x 0 0 , 0 x b 8 , 0 x 0 0 , 0 x 0 0 , 0 x 0 0 , 0 x 0 0 , 0 x 0 f , 0 x 9 4 , 0 x c 0 , 0 x 8 9 , 0 x 4 5 , 0 x f 8 , 0 x 8 b , 0 x 5 d , 0 x f c , 0 x 8 5 , 0 x d b , 0 x 7 4 , 0 x 0 9 } ; s t a t i c   u n s i g n e d c h a r   c o n s t c r k b i n [ ] = { 0 x 3 3 , 0 x c 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 , 0 x 9 0 } ; v o i d M E S S A G E ( c h a r   * s ) {                   M e s s a g e B o x ( N U L L , s , " " , M B _ O K ) ; } i n t   m a i n ( ) {                   c h a r   b u f f e r 1 k [ 1 0 2 4 ] ;                   u n s i g n e d   i n t   o f t = 0 ;                   i n t   b f o u n d = F A L S E ;                   H A N D L E   p r o c S n a p   = C r e a t e T o o l h e l p 3 2 S n a p s h o t ( T H 3 2 C S _ S N A P P R O C E S S ,   0 ) ;                   i f ( p r o c S n a p   = =   I N V A L I D _ H A N D L E _ V A L U E )                   {                                       M E S S A G E ( " n " ) ;                                       r e t u r n   0 ;                   }                   / /                   P R O C E S S E N T R Y 3 2   p r o c E n t r y   =   {   0   } ;                   p r o c E n t r y . d w S i z e   = s i z e o f ( P R O C E S S E N T R Y 3 2 ) ;                   B O O L   b R e t   = P r o c e s s 3 2 F i r s t ( p r o c S n a p , & p r o c E n t r y ) ;                   w h i l e ( b R e t )
                  w h i l e ( b R e t )                   {                                       i f   ( s t r c m p ( p r o c E n t r y . s z E x e F i l e , E X E J _ E X E N A M E ) = = 0 )                                       {                                                         b f o u n d = T R U E ;                                                         b r e a k ;                                       }                                       b R e t   = P r o c e s s 3 2 N e x t ( p r o c S n a p , & p r o c E n t r y ) ;                   }                   i f   ( ! b f o u n d )                   {                                       M E S S A G E ( " n " ) ;                                       r e t u r n   0 ;                   }                   C l o s e H a n d l e ( p r o c S n a p ) ;                   H A N D L E   h P r o c e s s   =   O p e n P r o c e s s ( P R O C E S S _ A L L _ A C C E S S , F A L S E ,   p r o c E n t r y . t h 3 2 P r o c e s s I D ) ;                                   i f   ( ! h P r o c e s s )                   {                                       M E S S A G E ( " n " ) ;                                       r e t u r n   0 ;                   }                   D W O R D   o l d P r o t e c t , f w , p = 1 ;                   w h i l e ( o f t < 0 x 7 f f f f f f f - s i z e o f ( b u f f e r 1 k ) )                   {                                       V i r t u a l P r o t e c t E x (   h P r o c e s s , ( L P V O I D ) o f t ,   s i z e o f ( b u f f e r 1 k ) ,   P A G E _ E X E C U T E _ R E A D W R I T E ,   & o l d P r o t e c t   ) ;                                       R e a d P r o c e s s M e m o r y (   h P r o c e s s , ( L P V O I D ) o f t ,   b u f f e r 1 k ,   s i z e o f ( b u f f e r 1 k ) ,   N U L L ) ;                                       f o r   ( i n t s o f t = 0 ; s o f t < s i z e o f ( b u f f e r 1 k ) - s i z e o f ( b i n ) ; s o f t + + )                                       {                                                         i f ( m e m c m p ( b u f f e r 1 k + s o f t , b i n , s i z e o f ( b i n ) ) = = 0 & & ! ( p - - ) )                                                         {                                                                           W r i t e P r o c e s s M e m o r y ( h P r o c e s s , ( L P V O I D ) ( o f t + s o f t - s i z e o f ( c r k b i n ) ) , c r k b i n , s i z e o f ( c r k b i n ) , & f w ) ;                                                                           i f   ( f w = = 0 )                                                                           {                                                                                               b r e a k ;                                                                           }                                                                           i f ( f w = = s i z e o f ( c r k b i n ) )                                                                           {                                                                                               M E S S A G E ( " ! " ) ;                                                                                               C l o s e H a n d l e ( h P r o c e s s ) ;                                                                                               r e t u r n 0 ;                                                                           }                                                         }                                       }                                       / / V i r t u a l P r o t e c t E x (   h P r o c e s s , ( L P V O I D ) o f t ,   s i z e o f ( b u f f e r 1 k ) ,   o l d P r o t e c t ,   N U L L   ) ;                                       o f t + = ( s i z e o f ( b u f f e r 1 k ) - s i z e o f ( b i n ) ) ;                   }                   M E S S A G E ( " " ) ; }
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则