티스토리 뷰

System Study

x86 32bit system call convention

marshimaro aSiagaming 2017. 7. 7. 20:14

32-bit ELF binary system call convention note



   0x0806cc41 <+1>: mov    edx,DWORD PTR [esp+0x10]

   0x0806cc45 <+5>: mov    ecx,DWORD PTR [esp+0xc]

   0x0806cc49 <+9>: mov    ebx,DWORD PTR [esp+0x8]

   0x0806cc4d <+13>: mov    eax,0xb

   0x0806cc52 <+18>: call   DWORD PTR ds:0x80ea9f0




eax -> system call number

ebx -> edx : arguments



'System Study' 카테고리의 다른 글

unsafe unlink exploit [ Heap exploit ]  (0) 2017.07.10
Analyze heap structure ( glibc malloc )  (0) 2017.07.09
x86 32bit system call convention  (0) 2017.07.07
GDB-PEDA 명령어  (0) 2017.07.07
checksec vs pwntools ELF function  (0) 2017.07.04
mmap function fd -1  (0) 2017.06.30
댓글
댓글쓰기 폼