2006-09-07 16:14:53 +02:00
|
|
|
format ELF
|
2007-10-15 11:42:17 +02:00
|
|
|
;include "public_stdcall.inc"
|
|
|
|
|
|
|
|
public _ksys_get_process_table
|
2020-12-07 22:19:51 +01:00
|
|
|
public _ksys_kill_process
|
2007-10-15 11:42:17 +02:00
|
|
|
|
2006-09-07 16:14:53 +02:00
|
|
|
section '.text' executable
|
2007-10-15 11:42:17 +02:00
|
|
|
|
|
|
|
_ksys_get_process_table:
|
2006-09-07 16:14:53 +02:00
|
|
|
;arg1 - pointer to information
|
|
|
|
;arg2 - pid
|
2020-12-07 22:19:51 +01:00
|
|
|
mov eax,9
|
|
|
|
mov ebx,[esp+4]
|
|
|
|
mov ecx,[esp+8]
|
|
|
|
int 0x40
|
|
|
|
ret 8
|
2007-10-15 11:42:17 +02:00
|
|
|
|
2020-12-07 22:19:51 +01:00
|
|
|
_ksys_kill_process:
|
|
|
|
;arg - pid
|
|
|
|
mov eax, 18
|
|
|
|
mov ebx, 18
|
|
|
|
mov ecx,[esp+4]
|
|
|
|
int 0x40
|
|
|
|
ret 4
|