mirror of
https://github.com/nganhkhoa/CTF-All-In-One.git
synced 2025-06-24 04:05:03 +07:00
fix
This commit is contained in:
32
src/others/1.5.9_linux_kernel/sysenter.S
Normal file
32
src/others/1.5.9_linux_kernel/sysenter.S
Normal file
@ -0,0 +1,32 @@
|
||||
.data
|
||||
|
||||
msg:
|
||||
.ascii "Hello sysenter!\n"
|
||||
len = . - msg
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
|
||||
_start:
|
||||
movl $len, %edx
|
||||
movl $msg, %ecx
|
||||
movl $1, %ebx
|
||||
movl $4, %eax
|
||||
|
||||
pushl $sysenter_ret
|
||||
pushl %ecx
|
||||
pushl %edx
|
||||
pushl %ebp
|
||||
movl %esp, %ebp
|
||||
sysenter
|
||||
|
||||
sysenter_ret:
|
||||
movl $0, %ebx
|
||||
movl $1, %eax
|
||||
|
||||
pushl $sysenter_ret
|
||||
pushl %ecx
|
||||
pushl %edx
|
||||
pushl %ebp
|
||||
movl %esp, %ebp
|
||||
sysenter
|
Reference in New Issue
Block a user