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