找回密码
 加入计匠网
搜索
热搜: BIOS ACPI CPU Windows
查看: 15384|回复: 0

[转载]Keyboard Interrupt Hook using I/O APIC

[复制链接]
发表于 2007-11-16 12:13:14 | 显示全部楼层 |阅读模式
Keyboard Interrupt Hook using I/O APIC(ZT)
0 P8 K7 U" s# E! G+ o
" B% z* l3 L+ a7 ?Keyboard Interrupt Hook using I/O APIC- U/ H) ~7 o# |9 ?2 C
( Z8 a2 I5 S* W; f
By: chpie( n% M1 j% B9 v& l/ w( K
Keyboard Interrupt Hooking by manipulating the I/O APIC
6 S+ i9 A8 Z; d: V6 Q. m9 O$ ktested on the winXP, Pentium D Hyper-threading Enabled.
. Z8 |- c5 V* x0 c" C2 ~( C* X4 K. K! y" I1 A5 }- V

' M, Y" s7 {; Y# @' ?Summary :: Using the 8259a compatible PIC to be deliver the interrupt
; i8 f6 Q0 @" R4 @4 h  F2 Rsignal by Delivery mode of the I/O APIC to be the ExtINT,
* G! b5 F& h  A  O$ l' Dthe interrupt related by the IRQ 1 able to be not refer! E; }! [  F1 c6 Z
the I/O APIC's Redirection Table.6 [2 o# \% H0 d
6 r& t$ r% l$ `$ T2 p
- It is higher priority of the hooking than the direct$ |; l+ ~0 o9 N6 ~8 K9 J
modification of the I/O APIC's vector.
, a) Y6 K7 Z3 P2 V3 c7 m- The vector can be hidden on the thread getting the keyboard/ r3 {; u+ h4 G3 G5 c$ H1 K8 f
vector from the I/O APIC.
2 C; V2 Z) c+ F  ^
) D6 Y! C4 X. SFlow ::
. N6 U3 K% H' t! G
5 I8 m) q0 y+ b' I/ r! y1. IRQ 1 Assert !!!5 \. d! {7 T* Q" d8 \( Y# B
2. The I/O APIC receives the signal and refers the I/O Redirection table.
% P3 B% l" o. W! E/ ?# m; p8 ?$ t3. Sending the signal from the destination Local APIC.5 h' X6 G1 x. q* Z5 T! z
4. Local APIC pass the signal to the processor for its delivery mode ExtINT% y  ]  N- J" K# I7 G4 r
5. A processor receives the signal.7 I" Z4 Q5 B+ k/ G
6. The processor Assert the INTA signal.7 a" e0 @9 T. d& a
7. The I/O APIC acknowledged.
8 c6 ~/ w' m! a( e+ V. K8. The processor Assert the second INTA signal.! o, |7 l+ N& d7 v
9. The I/O APIC delivers the signal to the 8259a compatible PIC
1 T0 q* B+ C9 n) z8 Q* d: q# ]for ExtINT to its Delivery mode.
% n" B0 U3 ]' T+ U* _10. 8259a compatible PIC sends 2 bytes after second INTA pulse.
) w4 ]/ |* o! Q2 E/ m$ f2 K( k11. The processor execute 2 bytes sended.+ @) u. v. S; ~" z. z6 d: L6 p
12. our interrupt handler executed.$ L) u& Y9 ]- }4 L; ?, }

0 V# ]$ }) z' N& |/ i. U1 Z' l" @5 @
' G4 M, k% f- ]* L0 \& Q& ssourcecode and binary are available on the3 r' a3 K" V8 r- N6 U
http://www.rootkit.com/vault/chpie/apic_keyboard.zip

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入计匠网

×
您需要登录后才可以回帖 登录 | 加入计匠网

本版积分规则

Archiver|手机版|小黑屋|计匠网

GMT+8, 2026-11-13 16:06 , Processed in 0.081492 second(s), 17 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表