[15258] 2020-04-16_USB流量取证分析

文档创建者:s7ckTeam
浏览次数:3
最后更新:2025-01-18
2020-04-16_USB流量取证分析 U S B p o l e m o   F r e e B u f   2 0 2 0 - 0 4 - 1 6 U S B   U n i v e r s a l S e r i a l   B u s 线 线 线 线 L i n u x 使 l s u s b U S B L i n u x W i n d o w s 1 . 1   U S B 1 . 2   使 使 W i r e s h a r k 使 W i r e s h a r k u s b p c a p W i r e s h a r k u s b W i r e s h a r k U S B L e f t o v e r   C a p t u r e   D a t a 使 t s h a r k W i n d o w s t s h a r k . e x e t s h a r k . e x e   - r   b . p c a p   - T   f i e l d s   - e   u s b . c a p d a t a   > b . t x t   / / b . p c a p b . t x t b . t x t b . t x t
m a t l a b p y t h o n m a t p l o t l i b 便 使 p y t h o n   U s b M i c e D a t a H a c k e r . p y   b . p c a p   L E F T   / / b . p c a p p y t h o n 2 m a t p l o t l i b n u m p y 2 . 1   8 3 8 3 0 0 0 0 U S B     k e y b o a r d 1 6
2 . 2   使 使 W i r e s h a r k X C T F e z _ m e m & u s b 使 使 p c a p * p o l e m o F r e e B u f . C O M #   c o d i n g : u t f - 8 i m p o r t   s y s i m p o r t   o s u s b _ c o d e s   =   {         0 x 0 4 :   " a A " ,   0 x 0 5 :   " b B " ,   0 x 0 6 :   " c C " ,   0 x 0 7 :   " d D " ,   0 x 0 8 :   " e E " ,   0 x 0 9 :   " f F " ,         0 x 0 A :   " g G " ,   0 x 0 B :   " h H " ,   0 x 0 C :   " i I " ,   0 x 0 D :   " j J " ,   0 x 0 E :   " k K " ,   0 x 0 F :   " l L " ,         0 x 1 0 :   " m M "         l i n e s   =   [ ]         p o s   =   0         f o r   x   i n   o p e n ( f i l e p a t h ,   " r " ) . r e a d l i n e s ( ) :                 c o d e   =   i n t ( x [ 6 : 8 ] ,   1 6 )     #                   i f   c o d e   = =   0 :                         c o n t i n u e                 #   n e w l i n e   o r   d o w n   a r r o w   -   m o v e   d o w n                 i f   c o d e   = =   0 x 5 1   o r   c o d e   = =   0 x 2 8 :                         p o s   + =   1                         c o n t i n u e                 #   u p   a r r o w   -   m o v e   u p                 i f   c o d e   = =   0 x 5 2 :                         p o s   - =   1                         c o n t i n u e                 #   s e l e c t   t h e   c h a r a c t e r   b a s e d   o n   t h e   S h i f t   k e y                 w h i l e   l e n ( l i n e s )   < =   p o s :                         l i n e s . a p p e n d ( " " )                 i f   c o d e   i n   r a n g e ( 4 ,   8 1 ) :                         i f   i n t ( x [ 0 : 2 ] ,   1 6 )   = =   2 :                                 l i n e s [ p o s ]   + =   u s b _ c o d e s [ c o d e ] [ 1 ]                         e l s e :                                 l i n e s [ p o s ]   + =   u s b _ c o d e s [ c o d e ] [ 0 ]         f o r   x   i n   l i n e s :                 p r i n t ( x ) i f   _ _ n a m e _ _   = =   " _ _ m a i n _ _ " :         c o d e 2 c h r ( ' E : / / C T F / / 1 8 e 4 c 1 0 3 d 4 d e 4 f 0 7 b 3 3 a 4 2 c b 1 f 0 e a a 1 d / 0 0 0 0 0 1 2 2 / u s b d a t a . t x t ' )

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

本版积分规则