[14354] 2019-07-16_一封钓鱼邮件带来的乐趣

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-18
2019-07-16_一封钓鱼邮件带来的乐趣 y a n g y a n g w i t h g n u   F r e e B u f   2 0 1 9 - 0 7 - 1 6   I P 便 便   W e   r e c e i v e d   t h i s   P N G   f i l e ,   b u t   w e r e   a   b i t   c o n c e r n e d   t h e   t r a n s m i s s i o n   m a y   h a v e   n o t   q u i t e   b e e n   p e r f e c t   y a n g f o o b a r @ s c . c h i n a m o b i l e . c o m   s w a k s     @ 1 1 0 . c o m     8 9   5 0   4 E   4 7   0 A   1 A   0 A     P N G I H D R I D A T I E N D     P N G   I E N D   p o w e r s h e l l     I n v o k e - P S I m a g e     w e b     w e b     g e t s h e l l     s h e l l c o d e   w i r e s h a r k     C C     I P   P l a i d C T F     2 0 1 5     P N G _ U n c o r r u p t   P N G   f i l e     P N G     8 9   5 0   4 E   4 7   0 D   0 A   1 A   0 A     0 D   0 A     0 D     n e w . p n g c o o l B U T   0 x 0 0 0 7 1     I D A T     C R C     I D A T     1 3 1 0 7 2     C R C     2   8   1 3 1 0 7 2   P N G   c h u n k l e n g t h c h u n k   t y p e   c o d e c h u n k   c o n t e n t C R C c y c l i c   r e d u n d a n c y c h e c k 4   4   4     0 x 0 0 0 7 1  
0 x 0 0 0 2 0 0 0 0 I D A T   1 1 2   +   0 x 0 5   P N G   P N G     I D A T     I D A T     I D A T     I D A T   退   4   退   4     I D A T   I D A T   退   4   +   4     D D     1 3 1 1 8 4   +   0 x 0 3   0 x 2 0 0 0 0   1 3 1 0 7 2   ( 1 3 1 1 8 4   +   0 x 0 3 )   -   ( 1 1 2   +   0 x 0 5 )   +   1   1 3 1 0 7 1   0 x 0 0 0 7 1   I D A T     1 3 1 0 7 2   1 3 1 0 7 2   -   1 3 1 0 7 1   2   *   8   1 3 1 0 7 2   = 3 3 5 5 4 4 3 2   P N G     C R C 3 2     [ 0 ,   2 5 5 ]     C R C 3 2   p y t h o n     z l i b . c r c 3 2 ( )     C R C 3 2     b y t e s     0 x 0 0 0 7 1     I D A T     i d a t 1   2 0 s     5 5 3   0 x 0 A   0 x 0 A     0 x 0 D   I D A T     0 x 0 A     0 x 0 D   P N G   w i n     0 x 0 D 0 x 0 A     l i n u x     0 x 0 A     P N G   0 x 0 D 0 x 0 A     0 x 0 A   0 x 0 A     0 x 0 D   0 x 0 A     0 x 0 D
  i d a t 1     n e w . p n g     1 1 3     i d a t 1     5 5 3     n e w . p n g     1 1 3   +   5 5 3     6 6 6     0 x 0 D     n e w _ f i x 1 . p n g W T F   I D A T     0 x 0 0 0 7 1     I D A T   l i n u x     P N G   C R C     w i n     w i n     n e w _ f i x 1 . p n g W O W   - )   w i n   . s o r r y   1 3 1 1 9 6     I D A T     n e w . p n g     1 3 1 1 8 4   +   0 x 0 C  
  2 6 2 2 5 6   +   0 x 0 C     s a v e   a s   d u m p   i d a t 2   0 x 0 2 0 0 0 0     ( 2 6 2 2 5 6   +   0 x 0 C )   -   ( 1 3 1 1 8 4   +   0 x 0 C   +   4 )   +   1     3     0 x 0 A     0 x 0 D   3     1   a a a a   a     1   x   a     x     x a a a a a x a a a a a x a a a a a x a     a     2   x     x a x a a a x a a x a a x a a a x a a x a x a a a x a a x a a a x a x a   4     1       4     2   p y t h o n     i t e r t o o l s . c o m b i n a t i o n s ( )     0 x 0 A   n e w l i n e _ i d x s l o s t _ b y t e s _ c n t   a a a a   a     0 1 2 3   a     0     x     a     x 使   1   +   1     x a a a a   3     a     a a a x a   2     a     a a x a x a   0 x 0 D  
  1 M     i d a t 2   i d a t 2     n e w . p n g   1 3 1 1 9 6     n e w . p n g   1 3 1 1 9 6   +   1 2 5 1 3 1     2 5 6 3 2 7 1 3 1 1 9 6   +   2 6 2 7 4     1 5 7 4 7 0 1 3 1 1 9 6   +   5 0 2     1 3 1 6 9 8 i d a t 1     6 6 6   2 5 6 3 2 7 1 5 7 4 7 0 1 3 1 6 9 8 6 6 6     0 x 0 D   1 8 +   n e w _ f i x 2 . p n g   I D A T     I D A T     I D A T     I D A T  
  I D A T     I D A T     0 x 0 A     0 x 0 D   P n g I n c o m p l e t e I d a t C h u n k s   0 x 0 D   怀   0 x 0 D   n e w . p n g     P n g I n c o m p l e t e I d a t C h u n k s     s u g g e s t ( ) f i x ( )     P o C   i m p o r t   r e i m p o r t   o s i m p o r t   z l i b i m p o r t   t y p i n g i m p o r t   i t e r t o o l s #     I D A T   c l a s s   P n g I n c o m p l e t e I d a t C h u n k s :         d e f   _ _ i n i t _ _ ( s e l f ,   p n g _ f i l e _ p a t h :   s t r ) :                 w i t h   o p e n ( p n g _ f i l e _ p a t h ,   ' r b ' )   a s   f :                         s e l f . _ p n g _ d a t a   =   f . r e a d ( )                 s e l f . _ g e t I n c o m p l e t e I d a t C h u n k s ( )                 s e l f . _ c h e c k ( )         d e f   _ g e t I n c o m p l e t e I d a t C h u n k s ( s e l f ) :                 s e l f . _ i d a t _ c h u n k s   =   l i s t ( )                 c u r _ i d x   =   0                 w h i l e   T r u e :                         c u r _ i d a t _ t y p e c o d e _ i d x   =   s e l f . _ p n g _ d a t a . f i n d ( B ' I D A T ' ,   c u r _ i d x )                         i f   c u r _ i d a t _ t y p e c o d e _ i d x   = =   - 1 :                                 b r e a k                         #                           l e n g t h   =   s e l f . _ p n g _ d a t a [ c u r _ i d a t _ t y p e c o d e _ i d x   -   4 :   c u r _ i d a t _ t y p e c o d e _ i d x ]                         #                           n e x t _ t y p e c o d e _ i d x   =   s e l f . _ p n g _ d a t a . f i n d ( B ' I D A T ' ,   c u r _ i d a t _ t y p e c o d e _ i d x   +   4 )                         i f   n e x t _ t y p e c o d e _ i d x   = =   - 1 :                                 n e x t _ t y p e c o d e _ i d x   =   s e l f . _ p n g _ d a t a . f i n d ( B ' I E N D ' ,   c u r _ i d a t _ t y p e c o d e _ i d x   +   4 )                         i d a t _ c o n t e n t _ e n d _ i d x   =   n e x t _ t y p e c o d e _ i d x   -   4   -   4                         i d a t _ c o n t e n t _ b e g _ i d x   =   c u r _ i d a t _ t y p e c o d e _ i d x   +   4
                        #                           c r c 3 2   =   s e l f . _ p n g _ d a t a [ i d a t _ c o n t e n t _ e n d _ i d x :   i d a t _ c o n t e n t _ e n d _ i d x   +   4 ]                         s e l f . _ i d a t _ c h u n k s . a p p e n d ( ( l e n g t h ,   ( i d a t _ c o n t e n t _ b e g _ i d x ,   i d a t _ c o n t e n t _ e n d _ i d x ) ,   c r c 3 2 ) )                         c u r _ i d x   =   n e x t _ t y p e c o d e _ i d x         d e f   g e t I d a t C h u n k s C n t ( s e l f ) :                 r e t u r n ( l e n ( s e l f . _ i d a t _ c h u n k s ) )         d e f   g e t I d a t C h u n k s ( s e l f ) :                 f o r   ( l e n g t h ,   ( c o n t e n t _ b e g _ i d x ,   c o n t e n t _ e n d _ i d x ) ,   c r c 3 2 )   i n   s e l f . _ i d a t _ c h u n k s :                         y i e l d ( i n t ( l e n g t h . h e x ( ) ,   1 6 ) ,   ( c o n t e n t _ b e g _ i d x ,   c o n t e n t _ e n d _ i d x ) ,   i n t ( c r c 3 2 . h e x ( ) ,   1 6 ) )         @ s t a t i c m e t h o d         d e f   _ _ _ i n s e r t E l e m s ( d a t a :   b y t e s ,   i n s e r t _ i d x s :   t y p i n g . T u p l e [ i n t ,   . . . ] ,   e l e m :   b y t e s )   - >   b y t e s :                 i n s e r t _ i d x s _ r e v _ s o r t e d   =   s o r t e d ( i n s e r t _ i d x s ,   r e v e r s e = T r u e )                 f o r   i n s e r t _ i d x   i n   i n s e r t _ i d x s _ r e v _ s o r t e d :                         d a t a   =   d a t a [ : i n s e r t _ i d x ]   +   e l e m   +   d a t a [ i n s e r t _ i d x : ]                 r e t u r n ( d a t a )         @ s t a t i c m e t h o d         d e f   _ _ _ c h e c k C h u n k B y I n s e r t R e t u r n B e f o r e N e w l i n e ( t y p e c o d e _ n _ c o n t e n t :   b y t e s ,   t y p e c o d e _ b e g _ i d x :   i n t ,   l o s t _ b y t e s _ c n t :   i n t ,   c r c 3 2 )   - >   t y p i n g . L i s t [ i n t ] :                 n e w l i n e _ i d x s   =   ( m . s t a r t ( )   f o r   m   i n   r e . f i n d i t e r ( b y t e s . f r o m h e x ( ' 0 A ' ) ,   t y p e c o d e _ n _ c o n t e n t ) )                 m a y b e _ r e t u r n _ i d x s _ c o m b i n   =   i t e r t o o l s . c o m b i n a t i o n s ( n e w l i n e _ i d x s ,   l o s t _ b y t e s _ c n t )                 f o r   m a y b e _ r e t u r n _ i d x s   i n   m a y b e _ r e t u r n _ i d x s _ c o m b i n :                         p r i n t ( ' r ' ,   ' t r y   t o   i n s e r t   0 x 0 D   a t ' ,   * m a y b e _ r e t u r n _ i d x s ,   e n d = ' ' )                         d a t a _ f i x   =   P n g I n c o m p l e t e I d a t C h u n k s . _ _ _ i n s e r t E l e m s ( t y p e c o d e _ n _ c o n t e n t ,   m a y b e _ r e t u r n _ i d x s ,   b y t e s . f r o m h e x ( ' 0 D ' ) )                         i f   z l i b . c r c 3 2 ( d a t a _ f i x )   = =   c r c 3 2 :                                 r e t u r n _ i d x s   =   [ i d x   +   t y p e c o d e _ b e g _ i d x   f o r   i d x   i n   m a y b e _ r e t u r n _ i d x s ]     #                                   p r i n t ( ' r ' ,   ' b i n g o ! ! ! !   i n s e r t   0 x 0 D   a t ' ,   * r e t u r n _ i d x s )                                 r e t u r n ( l i s t ( r e t u r n _ i d x s ) )                 p r i n t ( ' r ' ,   ' s o r r y !   I   c a n   n o t   r e p a i r   I D A T A   c h u n k .   ' ,   s e p = ' ' )                 r e t u r n ( l i s t ( ) )         d e f   _ c h e c k ( s e l f ) :                 s e l f . _ l o s t _ r e t u r n _ i d x s _ r e v e r s e _ s o r t e d   =   l i s t ( )                 f o r   ( l e n g t h ,   ( c o n t e n t _ b e g _ i d x ,   c o n t e n t _ e n d _ i d x ) ,   c r c 3 2 )   i n   s e l f . g e t I d a t C h u n k s ( ) :                         p r i n t ( F ' c h e c k   [ { c o n t e n t _ b e g _ i d x   -   4 } ,   { c o n t e n t _ e n d _ i d x } )   I D A T :   ' ,   e n d = ' ' )                         c o n t e x t _ b y t e s _ c n t   =   c o n t e n t _ e n d _ i d x   -   c o n t e n t _ b e g _ i d x                         i f   l e n g t h   = =   c o n t e x t _ b y t e s _ c n t :                                 p r i n t ( ' o k .   ' )                                 c o n t i n u e                         e l i f   l e n g t h   <   c o n t e x t _ b y t e s _ c n t :                                 p r i n t ( ' t o o   m a n y   b y t e s .   ' )                                 c o n t i n u e                         l o s t _ b y t e s _ c n t   =   l e n g t h   -   c o n t e x t _ b y t e s _ c n t                         p r i n t ( F ' l o s t   { l o s t _ b y t e s _ c n t }   b y t e s ,   g u e s s   . . . ' )                         l o s t _ r e t u r n _ i d x s   =   s e l f . _ _ _ c h e c k C h u n k B y I n s e r t R e t u r n B e f o r e N e w l i n e ( s e l f . _ p n g _ d a t a [ c o n t e n t _ b e g _ i d x   -   4 :   c o n t e n t _ e n d _ i d x ] ,   c o n t e n t _ b e g _ i d x   -   4 ,   l o s t _ b y t e s _ c n t ,   c r c 3 2 )                         s e l f . _ l o s t _ r e t u r n _ i d x s _ r e v e r s e _ s o r t e d . e x t e n d ( l o s t _ r e t u r n _ i d x s )         d e f   s u g g e s t ( s e l f ) :                 p r i n t ( ' - '   *   1 6 )                 p r i n t ( ' n o w ,   I   s u g g e s t   U   i n s e r t   0 x 0 D   _ O N E _ B Y _ O N E _   a t ' ,   * s e l f . _ l o s t _ r e t u r n _ i d x s _ r e v e r s e _ s o r t e d )         d e f   f i x ( s e l f ,   s a v e a s _ p a t h :   s t r ) :                 w i t h   o p e n ( s a v e a s _ p a t h ,   ' w b ' )   a s   f :                         f . w r i t e ( s e l f . _ _ _ i n s e r t E l e m s ( s e l f . _ p n g _ d a t a ,   t u p l e ( s e l f . _ l o s t _ r e t u r n _ i d x s _ r e v e r s e _ s o r t e d ) ,   b y t e s . f r o m h e x ( ' 0 D ' ) ) )                 p r i n t ( ' - '   *   1 6 )                 p r i n t ( ' n o w ,   I   f i x e d   i t   f o r   U ,   b y   i n s e r t   0 x 0 D   _ O N E _ B Y _ O N E _   a t ' ,   * s e l f . _ l o s t _ r e t u r n _ i d x s _ r e v e r s e _ s o r t e d ,   ' ,   a n d   s a v e   a s ' ,   o s . p a t h . a b s p a t h ( s a v e a s _ p a t h ) ) p n g _ i n c o m p l e t e _ i d a t _ c h u n k s   =   P n g I n c o m p l e t e I d a t C h u n k s ( ' . / n e w . p n g ' ) p n g _ i n c o m p l e t e _ i d a t _ c h u n k s . f i x ( ' . / n e w _ f i x e d . p n g ' )
  f l a g   f l a g   n e w _ f i x e d . p n g     f l a g     f l a g . p n g   O C R   f l a g     C C   线 线   7   ×   2 4   B T W   I M     L X     * y a n g y a n g w i t h g n u   F r e e B u f  

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则