Linux, 工作, 生活, 家人

Linux

Linux Assembly

這個只是筆記,
沒有很深入的內容.


Writing resident programs under Linux
: nanosleep 的 example
List of Linux/i386 system calls: 查 system call 很好用
Linux Assembly Tutorial: 有一些好用的範例, 適合我這種很久沒有寫 Code 的人
Shellcoding for Linux and Windows Tutorial: 有我要的語法.

在 assembly 呼叫 nanosleep 的範例, 這會 delay 二秒.
[C]
starter:
mov ebx, t1_v
mov ecx, 0
mov eax, 162 ; sys_nanosleep
int 0x80
xor eax, eax
mov al, 1 ;exit the shellcode
xor ebx,ebx
int 0x80

ender:
call starter
t1_v: db 2,0,0,0,0,0,0,0

[/C]

發佈留言