|
|
Keyboard Interrupt Hook using I/O APIC(ZT)5 ]! ^1 ~6 `/ y+ j# Z6 A+ x
5 K1 R u2 D# ]* `8 }7 E, Q- jKeyboard Interrupt Hook using I/O APIC
" M1 \) P! i/ c$ M( d8 T$ _4 n+ d5 w* W# B
By: chpie
0 T% o- S$ b) r' }5 lKeyboard Interrupt Hooking by manipulating the I/O APIC# {9 C" N$ O1 d# {6 k& h* s
tested on the winXP, Pentium D Hyper-threading Enabled.
4 v% z5 P; [% p& t4 d9 x; |% U
/ A, X' D2 H3 E) E; f$ b2 E! Z* |! D6 n- g7 q
Summary :: Using the 8259a compatible PIC to be deliver the interrupt1 N5 E- A: [* O; q
signal by Delivery mode of the I/O APIC to be the ExtINT,% }6 B) E: v9 t* P) R
the interrupt related by the IRQ 1 able to be not refer
V; O- R5 @" K$ ^! n% t: T7 h1 w; T& Vthe I/O APIC's Redirection Table.
- [/ {* p& |% }, k: _& p. U
8 u' G2 x. L+ O3 J& } R- It is higher priority of the hooking than the direct# `; ?! ]/ g0 G: Y; ]# W
modification of the I/O APIC's vector.
% {) e. @2 L" m: R- The vector can be hidden on the thread getting the keyboard
2 i4 r& ~+ I6 R) p& G) fvector from the I/O APIC.1 Q7 ]& H2 J+ y+ X
. J' L; q! c7 Y+ l2 u" V6 Y, m3 s6 L
Flow ::8 w: H. V* j* |+ M0 Z6 ?9 i
/ M, x& ]0 D q+ t) J! {' k& |! f0 h$ K
1. IRQ 1 Assert !!!5 M4 i" t' R: j0 I& y2 Q5 I
2. The I/O APIC receives the signal and refers the I/O Redirection table.
. e5 t0 m" [# _3. Sending the signal from the destination Local APIC.
- k$ }" M; D2 E! a4. Local APIC pass the signal to the processor for its delivery mode ExtINT' \, M4 q6 o% @* t
5. A processor receives the signal.6 F: H& A7 W+ l" P; D
6. The processor Assert the INTA signal.$ r3 _) N/ r- p
7. The I/O APIC acknowledged.' S/ B; A: ?" B& j. ^
8. The processor Assert the second INTA signal.
; k. B4 E3 `* M3 O2 A9. The I/O APIC delivers the signal to the 8259a compatible PIC
0 g' p% J3 M8 I9 m9 r8 b% kfor ExtINT to its Delivery mode.
, ^& ]: M7 \4 X: Y10. 8259a compatible PIC sends 2 bytes after second INTA pulse.
2 U9 C6 z- N2 d$ Z11. The processor execute 2 bytes sended.5 c% `0 o" u& E" N
12. our interrupt handler executed.
+ P7 o! u% ~6 N9 L" G+ E
) {6 \) B) O& m1 `% ^
2 B8 k2 S" N& n5 Msourcecode and binary are available on the
# {: Z$ X1 M6 ?( khttp://www.rootkit.com/vault/chpie/apic_keyboard.zip |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入计匠网
×
|